MetricSpecification Class
- java.
lang. Object - com.
azure. resourcemanager. keyvault. models. MetricSpecification
- com.
Implements
public final class MetricSpecification
implements JsonSerializable<MetricSpecification>
Metric specification of operation.
Constructor Summary
Constructor | Description |
---|---|
MetricSpecification() |
Creates an instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
aggregationType()
Get the aggregation |
List<Dimension |
dimensions()
Get the dimensions property: The dimensions of metric. |
String |
displayDescription()
Get the display |
String |
displayName()
Get the display |
Boolean |
fillGapWithZero()
Get the fill |
static
Metric |
fromJson(JsonReader jsonReader)
Reads an instance of Metric |
String |
internalMetricName()
Get the internal |
String |
lockAggregationType()
Get the lock |
String |
name()
Get the name property: Name of metric specification. |
List<String> |
supportedAggregationTypes()
Get the supported |
List<String> |
supportedTimeGrainTypes()
Get the supported |
Json |
toJson(JsonWriter jsonWriter) |
String |
unit()
Get the unit property: The metric unit. |
void |
validate()
Validates the instance. |
Metric |
withAggregationType(String aggregationType)
Set the aggregation |
Metric |
withDimensions(List<DimensionProperties> dimensions)
Set the dimensions property: The dimensions of metric. |
Metric |
withDisplayDescription(String displayDescription)
Set the display |
Metric |
withDisplayName(String displayName)
Set the display |
Metric |
withFillGapWithZero(Boolean fillGapWithZero)
Set the fill |
Metric |
withInternalMetricName(String internalMetricName)
Set the internal |
Metric |
withLockAggregationType(String lockAggregationType)
Set the lock |
Metric |
withName(String name)
Set the name property: Name of metric specification. |
Metric |
withSupportedAggregationTypes(List<String> supportedAggregationTypes)
Set the supported |
Metric |
withSupportedTimeGrainTypes(List<String> supportedTimeGrainTypes)
Set the supported |
Metric |
withUnit(String unit)
Set the unit property: The metric unit. |
Methods inherited from java.lang.Object
Constructor Details
MetricSpecification
public MetricSpecification()
Creates an instance of MetricSpecification class.
Method Details
aggregationType
public String aggregationType()
Get the aggregationType property: The metric aggregation type. Possible values include: 'Average', 'Count', 'Total'.
Returns:
dimensions
public List
Get the dimensions property: The dimensions of metric.
Returns:
displayDescription
public String displayDescription()
Get the displayDescription property: Display description of metric specification.
Returns:
displayName
public String displayName()
Get the displayName property: Display name of metric specification.
Returns:
fillGapWithZero
public Boolean fillGapWithZero()
Get the fillGapWithZero property: Property to specify whether to fill gap with zero.
Returns:
fromJson
public static MetricSpecification fromJson(JsonReader jsonReader)
Reads an instance of MetricSpecification from the JsonReader.
Parameters:
Returns:
Throws:
internalMetricName
public String internalMetricName()
Get the internalMetricName property: The internal metric name.
Returns:
lockAggregationType
public String lockAggregationType()
Get the lockAggregationType property: The metric lock aggregation type.
Returns:
name
public String name()
Get the name property: Name of metric specification.
Returns:
supportedAggregationTypes
public List
Get the supportedAggregationTypes property: The supported aggregation types for the metrics.
Returns:
supportedTimeGrainTypes
public List
Get the supportedTimeGrainTypes property: The supported time grain types for the metrics.
Returns:
toJson
unit
public String unit()
Get the unit property: The metric unit. Possible values include: 'Bytes', 'Count', 'Milliseconds'.
Returns:
validate
public void validate()
Validates the instance.
withAggregationType
public MetricSpecification withAggregationType(String aggregationType)
Set the aggregationType property: The metric aggregation type. Possible values include: 'Average', 'Count', 'Total'.
Parameters:
Returns:
withDimensions
public MetricSpecification withDimensions(List
Set the dimensions property: The dimensions of metric.
Parameters:
Returns:
withDisplayDescription
public MetricSpecification withDisplayDescription(String displayDescription)
Set the displayDescription property: Display description of metric specification.
Parameters:
Returns:
withDisplayName
public MetricSpecification withDisplayName(String displayName)
Set the displayName property: Display name of metric specification.
Parameters:
Returns:
withFillGapWithZero
public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)
Set the fillGapWithZero property: Property to specify whether to fill gap with zero.
Parameters:
Returns:
withInternalMetricName
public MetricSpecification withInternalMetricName(String internalMetricName)
Set the internalMetricName property: The internal metric name.
Parameters:
Returns:
withLockAggregationType
public MetricSpecification withLockAggregationType(String lockAggregationType)
Set the lockAggregationType property: The metric lock aggregation type.
Parameters:
Returns:
withName
public MetricSpecification withName(String name)
Set the name property: Name of metric specification.
Parameters:
Returns:
withSupportedAggregationTypes
public MetricSpecification withSupportedAggregationTypes(List
Set the supportedAggregationTypes property: The supported aggregation types for the metrics.
Parameters:
Returns:
withSupportedTimeGrainTypes
public MetricSpecification withSupportedTimeGrainTypes(List
Set the supportedTimeGrainTypes property: The supported time grain types for the metrics.
Parameters:
Returns:
withUnit
public MetricSpecification withUnit(String unit)
Set the unit property: The metric unit. Possible values include: 'Bytes', 'Count', 'Milliseconds'.
Parameters:
Returns:
Applies to
Azure SDK for Java