public class LightweightMeasurementSet extends Object implements MeasurementSet
CollectionJob
. List of metricId/values pairs with minimal redundancy (timestamp, nodeId, service
and interface are stored only once). The list of Measurement
will be generated on the fly.Constructor and Description |
---|
LightweightMeasurementSet() |
LightweightMeasurementSet(int nodeId,
String service,
String theInterface,
Date timestamp) |
Modifier and Type | Method and Description |
---|---|
void |
addMeasurement(String metricId,
String metricType,
String value,
String onmsLogicMetricId) |
String |
getJson() |
List<Measurement> |
getMeasurements() |
String |
getNetInterface() |
int |
getNodeId() |
String |
getService() |
Date |
getTimestamp() |
void |
setNetInterface(String theInterface) |
void |
setNodeId(int nodeId) |
void |
setService(String service) |
void |
setTimestamp(Date timestamp) |
String |
toString()
This toString method is for displaying reasons in the webapp NrtGrapher only.
|
public void addMeasurement(String metricId, String metricType, String value, String onmsLogicMetricId)
public List<Measurement> getMeasurements()
getMeasurements
in interface MeasurementSet
public void setNodeId(int nodeId)
public void setNetInterface(String theInterface)
public void setService(String service)
public void setTimestamp(Date timestamp)
public int getNodeId()
public String getNetInterface()
public String getService()
public Date getTimestamp()
public String getJson()
getJson
in interface MeasurementSet
Copyright © 2021. All rights reserved.