Class OTLPMetric

java.lang.Object
org.netxms.client.OTLPMetric

public class OTLPMetric extends Object
OTLP metric observed by the server for a node, as offered by the metric selector.
  • Field Details

  • Constructor Details

    • OTLPMetric

      protected OTLPMetric(NXCPMessage msg, long baseId)
      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 message
      baseId - 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

      public String getName()
      Returns:
      metric name
    • getType

      public int getType()
      Returns:
      metric type (GAUGE, SUM, or HISTOGRAM)
    • getTypeName

      public String getTypeName()
      Returns:
      human-readable metric type name
    • getAttributeKeys

      public List<String> getAttributeKeys()
      Returns:
      list of attribute key names observed for this metric