MetricDefinition Class
- java.
lang. Object - com.
azure. developer. loadtesting. models. MetricDefinition
- com.
Implements
public final class MetricDefinition
implements JsonSerializable<MetricDefinition>
Metric definition.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Metric |
fromJson(JsonReader jsonReader)
Reads an instance of Metric |
| String |
getDescription()
Get the description property: The metric description. |
|
List<Name |
getDimensions()
Get the dimensions property: List of dimensions. |
|
List<Metric |
getMetricAvailabilities()
Get the metric |
| String |
getName()
Get the name property: The metric name. |
| String |
getNamespace()
Get the namespace property: The namespace the metric belongs to. |
|
Aggregation |
getPrimaryAggregationType()
Get the primary |
| List<String> |
getSupportedAggregationTypes()
Get the supported |
|
Metric |
getUnit()
Get the unit property: The unit of the metric. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static MetricDefinition fromJson(JsonReader jsonReader)
Reads an instance of MetricDefinition from the JsonReader.
Parameters:
Returns:
Throws:
getDescription
public String getDescription()
Get the description property: The metric description.
Returns:
getDimensions
public List<NameAndDescription> getDimensions()
Get the dimensions property: List of dimensions.
Returns:
getMetricAvailabilities
public List<MetricAvailability> getMetricAvailabilities()
Get the metricAvailabilities property: Metric availability specifies the time grain (aggregation interval or frequency).
Returns:
getName
public String getName()
Get the name property: The metric name.
Returns:
getNamespace
public String getNamespace()
Get the namespace property: The namespace the metric belongs to.
Returns:
getPrimaryAggregationType
public AggregationType getPrimaryAggregationType()
Get the primaryAggregationType property: The primary aggregation type value defining how to use the values for display.
Returns:
getSupportedAggregationTypes
public List<String> getSupportedAggregationTypes()
Get the supportedAggregationTypes property: The collection of what all aggregation types are supported.
Returns:
getUnit
public MetricUnit getUnit()
Get the unit property: The unit of the metric.
Returns: