org.apache.storm.opentsdb

## Class OpenTsdbMetricDatapoint

- java.lang.Object
- - org.apache.storm.opentsdb.OpenTsdbMetricDatapoint

- All Implemented Interfaces:
    Serializable

      public class OpenTsdbMetricDatapoint
      extends Object
      implements Serializable

  This class represents a metric data point in OpenTSDB’s format.

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `OpenTsdbMetricDatapoint(String metric, Map<String,String> tags, long timestamp, Number value)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `String` | `getMetric()` Retrieve the metric name of this datapoint.
    `Map<String,String>` | `getTags()` Retrieve the map of tag/value pairs of this metric.
    `long` | `getTimestamp()` Retrieve the timestamp at which this metric occured.
    `Object` | `getValue()` Retrieve the value of this metric datapoint.
    `int` | `hashCode()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### OpenTsdbMetricDatapoint

          public OpenTsdbMetricDatapoint(String metric,
                                         Map<String,String> tags,
                                         long timestamp,
                                         Number value)

  - ### Method Detail

    - #### getMetric

          public String getMetric()

      Retrieve the metric name of this datapoint.

      Returns:
        metric name of this datapoint

    - #### getTags

          public Map<String,String> getTags()

      Retrieve the map of tag/value pairs of this metric.

      Returns:
        Map of tag/value pairs of this metric

    - #### getTimestamp

          public long getTimestamp()

      Retrieve the timestamp at which this metric occured.

      Returns:
        timestamp either in milliseconds or seconds at which this metric occurred

    - #### getValue

          public Object getValue()

      Retrieve the value of this metric datapoint.

      Returns:
        value of this metric datapoint

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

Copyright © 2019 The Apache Software Foundation. All rights reserved.