public final class MetricResult extends Object
Constructor and Description |
---|
MetricResult(String id,
String resourceType,
MetricUnit unit,
String metricName,
List<TimeSeriesElement> timeSeries,
String description,
com.azure.core.experimental.models.HttpResponseError httpResponseError)
Creates an instance of the result data of a query.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns the description of the metric.
|
com.azure.core.experimental.models.HttpResponseError |
getError()
Returns the error message encountered querying this specific metric.
|
String |
getId()
Returns the metrics id.
|
String |
getMetricName()
Returns the name of the metrics.
|
String |
getResourceType()
Returns the resource type of the metric resource.
|
List<TimeSeriesElement> |
getTimeSeries()
Returns the time series returned when a data query is performed.
|
MetricUnit |
getUnit()
Returns the metrics unit of the metrics.
|
public MetricResult(String id, String resourceType, MetricUnit unit, String metricName, List<TimeSeriesElement> timeSeries, String description, com.azure.core.experimental.models.HttpResponseError httpResponseError)
id
- The metrics id.resourceType
- The resource type of the metrics resource.unit
- The metrics unit.metricName
- The name of the metrics.timeSeries
- The time series returned when the query is performed.description
- The display description of the metric.httpResponseError
- The error information if the request failed to fetch the queried metric.public String getMetricName()
public String getId()
public String getResourceType()
public MetricUnit getUnit()
public List<TimeSeriesElement> getTimeSeries()
public String getDescription()
public com.azure.core.experimental.models.HttpResponseError getError()
Copyright © 2021 Microsoft Corporation. All rights reserved.