primaryAggregationType
Get the primaryAggregationType property: the primary aggregation type value defining how to use the values for
display.
- Returns:
- the primaryAggregationType value.
com.azure.json.JsonSerializable<MetricDefinitionInner>
category()
static MetricDefinitionInner
fromJson(com.azure.json.JsonReader jsonReader)
id()
name()
com.azure.json.JsonWriter
toJson(com.azure.json.JsonWriter jsonWriter)
unit()
void
validate()
withCategory(String category)
withDimensions(List<LocalizableStringInner> dimensions)
withDisplayDescription(String displayDescription)
withIsDimensionRequired(Boolean isDimensionRequired)
withMetricAvailabilities(List<MetricAvailability> metricAvailabilities)
withMetricClass(MetricClass metricClass)
withNamespace(String namespace)
withPrimaryAggregationType(AggregationType primaryAggregationType)
withResourceId(String resourceId)
withSupportedAggregationTypes(List<AggregationType> supportedAggregationTypes)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toJson, toJson, toJsonBytes, toJsonString
isDimensionRequired
- the isDimensionRequired value to set.resourceId
- the resourceId value to set.namespace
- the namespace value to set.name
- the name value to set.displayDescription
- the displayDescription value to set.category
- the category value to set.metricClass
- the metricClass value to set.unit
- the unit value to set.primaryAggregationType
- the primaryAggregationType value to set.supportedAggregationTypes
- the supportedAggregationTypes value to set.metricAvailabilities
- the metricAvailabilities value to set.id
- the id value to set.dimensions
- the dimensions value to set.IllegalArgumentException
- thrown if the instance is not valid.toJson
in interface com.azure.json.JsonSerializable<MetricDefinitionInner>
IOException
jsonReader
- The JsonReader being read.IOException
- If an error occurs while reading the MetricDefinitionInner.