Package org.netxms.client
Class OTLPMetric
java.lang.Object
org.netxms.client.OTLPMetric
OTLP metric observed by the server for a node, as offered by the metric selector.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOTLPMetric(NXCPMessage msg, long baseId) Create OTLP metric from NXCP message. -
Method Summary
-
Field Details
-
GAUGE
public static final int GAUGE- See Also:
-
SUM
public static final int SUM- See Also:
-
HISTOGRAM
public static final int HISTOGRAM- See Also:
-
-
Constructor Details
-
OTLPMetric
Create OTLP metric from NXCP message. Record layout: baseId = name, baseId+1 = type, baseId+2 = attribute key count, baseId+3.. = key names.- Parameters:
msg- NXCP messagebaseId- base field ID of this record
-
-
Method Details
-
getFieldCount
public int getFieldCount()Number of NXCP fields occupied by this record (name, type, key count, and the keys). Used by the reader to advance to the next record.- Returns:
- number of NXCP fields in this record
-
getName
- Returns:
- metric name
-
getType
public int getType()- Returns:
- metric type (GAUGE, SUM, or HISTOGRAM)
-
getTypeName
- Returns:
- human-readable metric type name
-
getAttributeKeys
- Returns:
- list of attribute key names observed for this metric
-