Class TimeSeriesElement
- java.lang.Object
-
- com.microsoft.azure.management.monitor.TimeSeriesElement
-
public class TimeSeriesElement extends Object
A time series result type. The discriminator value is always TimeSeries in this case.
-
-
Constructor Summary
Constructors Constructor Description TimeSeriesElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<MetricValue>data()Get an array of data points representing the metric values.List<MetadataValue>metadatavalues()Get the metadata values returned if $filter was specified in the call.TimeSeriesElementwithData(List<MetricValue> data)Set an array of data points representing the metric values.TimeSeriesElementwithMetadatavalues(List<MetadataValue> metadatavalues)Set the metadata values returned if $filter was specified in the call.
-
-
-
Method Detail
-
metadatavalues
public List<MetadataValue> metadatavalues()
Get the metadata values returned if $filter was specified in the call.- Returns:
- the metadatavalues value
-
withMetadatavalues
public TimeSeriesElement withMetadatavalues(List<MetadataValue> metadatavalues)
Set the metadata values returned if $filter was specified in the call.- Parameters:
metadatavalues- the metadatavalues value to set- Returns:
- the TimeSeriesElement object itself.
-
data
public List<MetricValue> data()
Get an array of data points representing the metric values. This is only returned if a result type of data is specified.- Returns:
- the data value
-
withData
public TimeSeriesElement withData(List<MetricValue> data)
Set an array of data points representing the metric values. This is only returned if a result type of data is specified.- Parameters:
data- the data value to set- Returns:
- the TimeSeriesElement object itself.
-
-