Share via


TimeSeriesElement Class

  • java.lang.Object
    • com.azure.monitor.query.models.TimeSeriesElement

public final class TimeSeriesElement

A time series result type.

Constructor Summary

Constructor Description
TimeSeriesElement(List<MetricValue> values, Map<String,String> metadata)

Creates an instance of TimeSeriesElement with a list of data points representing the metric values.

Method Summary

Modifier and Type Method and Description
Map<String,String> getMetadata()

Returns the metadata values if filter is specified in the request.

List<MetricValue> getValues()

Returns a list of data points representing the metric values.

Methods inherited from java.lang.Object

Constructor Details

TimeSeriesElement

public TimeSeriesElement(List<MetricValue> values, Map<String,String> metadata)

Creates an instance of TimeSeriesElement with a list of data points representing the metric values.

Parameters:

values - a list of data points representing the metric values.
metadata - the metadata values if filter is specified in the request.

Method Details

getMetadata

public Map<String,String> getMetadata()

Returns the metadata values if filter is specified in the request.

Returns:

the metadata values if filter is specified in the request.

getValues

public List<MetricValue> getValues()

Returns a list of data points representing the metric values.

Returns:

a list of data points representing the metric

Applies to