MetricResult Class
- java.
lang. Object - com.
azure. monitor. query. models. MetricResult
- com.
public final class MetricResult
The metrics result of a query.
Constructor Summary
| Constructor | Description |
|---|---|
| MetricResult(String id, String resourceType, MetricUnit unit, String metricName, List<TimeSeriesElement> timeSeries, String description, ResponseError httpResponseError) |
Creates an instance of the result data of a query. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
getDescription()
Returns the description of the metric. |
|
Response |
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<Time |
getTimeSeries()
Returns the time series returned when a data query is performed. |
|
Metric |
getUnit()
Returns the metrics unit of the metrics. |
Methods inherited from java.lang.Object
Constructor Details
MetricResult
public MetricResult(String id, String resourceType, MetricUnit unit, String metricName, List<TimeSeriesElement> timeSeries, String description, ResponseError httpResponseError)
Creates an instance of the result data of a query.
Parameters:
Method Details
getDescription
public String getDescription()
Returns the description of the metric.
Returns:
getError
public ResponseError getError()
Returns the error message encountered querying this specific metric.
Returns:
getId
public String getId()
Returns the metrics id.
Returns:
getMetricName
public String getMetricName()
Returns the name of the metrics.
Returns:
getResourceType
public String getResourceType()
Returns the resource type of the metric resource.
Returns:
getTimeSeries
public List<TimeSeriesElement> getTimeSeries()
Returns the time series returned when a data query is performed.
Returns:
getUnit
public MetricUnit getUnit()
Returns the metrics unit of the metrics.
Returns: