TimeSeriesElement Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. TimeSeriesElement
- com.
Implements
public final class TimeSeriesElement
implements JsonSerializable<TimeSeriesElement>
A time series result type. The discriminator value is always TimeSeries in this case.
Constructor Summary
Constructor | Description |
---|---|
TimeSeriesElement() |
Creates an instance of Time |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Metric |
data()
Get the data property: An array of data points representing the metric values. |
static
Time |
fromJson(JsonReader jsonReader)
Reads an instance of Time |
List<Metadata |
metadatavalues()
Get the metadatavalues property: the metadata values returned if $filter was specified in the call. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Time |
withData(List<MetricValue> data)
Set the data property: An array of data points representing the metric values. |
Time |
withMetadatavalues(List<MetadataValueInner> metadatavalues)
Set the metadatavalues property: the metadata values returned if $filter was specified in the call. |
Methods inherited from java.lang.Object
Constructor Details
TimeSeriesElement
public TimeSeriesElement()
Creates an instance of TimeSeriesElement class.
Method Details
data
public List
Get the data property: An array of data points representing the metric values. This is only returned if a result type of data is specified.
Returns:
fromJson
public static TimeSeriesElement fromJson(JsonReader jsonReader)
Reads an instance of TimeSeriesElement from the JsonReader.
Parameters:
Returns:
Throws:
metadatavalues
public List
Get the metadatavalues property: the metadata values returned if $filter was specified in the call.
Returns:
toJson
validate
public void validate()
Validates the instance.
withData
public TimeSeriesElement withData(List
Set the data property: An array of data points representing the metric values. This is only returned if a result type of data is specified.
Parameters:
Returns:
withMetadatavalues
public TimeSeriesElement withMetadatavalues(List
Set the metadatavalues property: the metadata values returned if $filter was specified in the call.
Parameters:
Returns:
Applies to
Azure SDK for Java