Class MetricSpecification
java.lang.Object
com.azure.resourcemanager.keyvault.models.MetricSpecification
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MetricSpecification>
public final class MetricSpecification
extends Object
implements com.azure.json.JsonSerializable<MetricSpecification>
Metric specification of operation.
-
Method Summary
Modifier and TypeMethodDescriptionGet the aggregationType property: The metric aggregation type.Get the dimensions property: The dimensions of metric.Get the displayDescription property: Display description of metric specification.Get the displayName property: Display name of metric specification.Get the fillGapWithZero property: Property to specify whether to fill gap with zero.static MetricSpecificationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MetricSpecification from the JsonReader.Get the internalMetricName property: The internal metric name.Get the lockAggregationType property: The metric lock aggregation type.name()Get the name property: Name of metric specification.Get the supportedAggregationTypes property: The supported aggregation types for the metrics.Get the supportedTimeGrainTypes property: The supported time grain types for the metrics.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) unit()Get the unit property: The metric unit.voidvalidate()Validates the instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
name
-
displayName
Get the displayName property: Display name of metric specification.- Returns:
- the displayName value.
-
displayDescription
Get the displayDescription property: Display description of metric specification.- Returns:
- the displayDescription value.
-
unit
Get the unit property: The metric unit. Possible values include: 'Bytes', 'Count', 'Milliseconds'.- Returns:
- the unit value.
-
aggregationType
Get the aggregationType property: The metric aggregation type. Possible values include: 'Average', 'Count', 'Total'.- Returns:
- the aggregationType value.
-
supportedAggregationTypes
-
supportedTimeGrainTypes
-
lockAggregationType
Get the lockAggregationType property: The metric lock aggregation type.- Returns:
- the lockAggregationType value.
-
dimensions
Get the dimensions property: The dimensions of metric.- Returns:
- the dimensions value.
-
fillGapWithZero
Get the fillGapWithZero property: Property to specify whether to fill gap with zero.- Returns:
- the fillGapWithZero value.
-
internalMetricName
Get the internalMetricName property: The internal metric name.- Returns:
- the internalMetricName value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MetricSpecification>- Throws:
IOException
-
fromJson
Reads an instance of MetricSpecification from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MetricSpecification if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the MetricSpecification.
-