public final class Metric extends Object
Constructor and Description |
---|
Metric(String id,
String type,
MetricUnit unit,
String metricsName,
List<MetricTimeSeriesElement> timeseries)
Creates an instance of the result data of a query.
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
Returns the metrics id.
|
String |
getMetricsName()
Returns the name of the metrics.
|
List<MetricTimeSeriesElement> |
getTimeSeries()
Returns the time series returned when a data query is performed.
|
String |
getType()
Returns the resource type of the metric resource.
|
MetricUnit |
getUnit()
Returns the metrics unit of the metrics.
|
public Metric(String id, String type, MetricUnit unit, String metricsName, List<MetricTimeSeriesElement> timeseries)
id
- The metrics id.type
- The resource type of the metrics resource.unit
- The metrics unit.metricsName
- The name of the metrics.timeseries
- The time series returned when the query is performed.public String getMetricsName()
public String getId()
public String getType()
public MetricUnit getUnit()
public List<MetricTimeSeriesElement> getTimeSeries()
Copyright © 2021. All rights reserved.