Class MetricSeries

java.lang.Object
com.datadog.api.client.v2.model.MetricSeries

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class MetricSeries extends Object
A metric to submit to Datadog. See Datadog metrics.
  • Field Details

  • Constructor Details

    • MetricSeries

      public MetricSeries()
    • MetricSeries

      public MetricSeries(String metric, List<MetricPoint> points)
  • Method Details

    • interval

      public MetricSeries interval(Long interval)
    • getInterval

      @Nullable public Long getInterval()
      If the type of the metric is rate or count, define the corresponding interval in seconds.
      Returns:
      interval
    • setInterval

      public void setInterval(Long interval)
    • metadata

      public MetricSeries metadata(MetricMetadata metadata)
    • getMetadata

      @Nullable public MetricMetadata getMetadata()
      Metadata for the metric.
      Returns:
      metadata
    • setMetadata

      public void setMetadata(MetricMetadata metadata)
    • metric

      public MetricSeries metric(String metric)
    • getMetric

      public String getMetric()
      The name of the timeseries.
      Returns:
      metric
    • setMetric

      public void setMetric(String metric)
    • points

      public MetricSeries points(List<MetricPoint> points)
    • addPointsItem

      public MetricSeries addPointsItem(MetricPoint pointsItem)
    • getPoints

      public List<MetricPoint> getPoints()
      Points relating to a metric. All points must be objects with timestamp and a scalar value (cannot be a string). Timestamps should be in POSIX time in seconds, and cannot be more than ten minutes in the future or more than one hour in the past.
      Returns:
      points
    • setPoints

      public void setPoints(List<MetricPoint> points)
    • resources

      public MetricSeries resources(List<MetricResource> resources)
    • addResourcesItem

      public MetricSeries addResourcesItem(MetricResource resourcesItem)
    • getResources

      @Nullable public List<MetricResource> getResources()
      A list of resources to associate with this metric.
      Returns:
      resources
    • setResources

      public void setResources(List<MetricResource> resources)
    • sourceTypeName

      public MetricSeries sourceTypeName(String sourceTypeName)
    • getSourceTypeName

      @Nullable public String getSourceTypeName()
      The source type name.
      Returns:
      sourceTypeName
    • setSourceTypeName

      public void setSourceTypeName(String sourceTypeName)
    • tags

      public MetricSeries tags(List<String> tags)
    • addTagsItem

      public MetricSeries addTagsItem(String tagsItem)
    • getTags

      @Nullable public List<String> getTags()
      A list of tags associated with the metric.
      Returns:
      tags
    • setTags

      public void setTags(List<String> tags)
    • type

      public MetricSeries type(MetricIntakeType type)
    • getType

      @Nullable public MetricIntakeType getType()
      The type of metric. The available types are 0 (unspecified), 1 (count), 2 (rate), and 3 (gauge).
      Returns:
      type
    • setType

      public void setType(MetricIntakeType type)
    • unit

      public MetricSeries unit(String unit)
    • getUnit

      @Nullable public String getUnit()
      The unit of point value.
      Returns:
      unit
    • setUnit

      public void setUnit(String unit)
    • putAdditionalProperty

      public MetricSeries putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      MetricSeries
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this MetricSeries object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object