Class ResourceMetricDefinitionInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.appservice.models.ProxyOnlyResource
-
- com.azure.resourcemanager.appservice.fluent.models.ResourceMetricDefinitionInner
-
public final class ResourceMetricDefinitionInner extends ProxyOnlyResource
Metadata for the metrics.
-
-
Constructor Summary
Constructors Constructor Description ResourceMetricDefinitionInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResourceMetricAvailability>metricAvailabilities()Get the metricAvailabilities property: List of time grains supported for the metric together with retention period.StringprimaryAggregationType()Get the primaryAggregationType property: Primary aggregation type.Map<String,String>properties()Get the properties property: Resource metric definition properties.StringresourceUri()Get the resourceUri property: Resource URI.Stringunit()Get the unit property: Unit of the metric.voidvalidate()Validates the instance.ResourceMetricDefinitionInnerwithKind(String kind)Set the kind property: Kind of resource.-
Methods inherited from class com.azure.resourcemanager.appservice.models.ProxyOnlyResource
kind
-
-
-
-
Method Detail
-
withKind
public ResourceMetricDefinitionInner withKind(String kind)
Set the kind property: Kind of resource.- Overrides:
withKindin classProxyOnlyResource- Parameters:
kind- the kind value to set.- Returns:
- the ProxyOnlyResource object itself.
-
unit
public String unit()
Get the unit property: Unit of the metric.- Returns:
- the unit value.
-
primaryAggregationType
public String primaryAggregationType()
Get the primaryAggregationType property: Primary aggregation type.- Returns:
- the primaryAggregationType value.
-
metricAvailabilities
public List<ResourceMetricAvailability> metricAvailabilities()
Get the metricAvailabilities property: List of time grains supported for the metric together with retention period.- Returns:
- the metricAvailabilities value.
-
resourceUri
public String resourceUri()
Get the resourceUri property: Resource URI.- Returns:
- the resourceUri value.
-
properties
public Map<String,String> properties()
Get the properties property: Resource metric definition properties.- Returns:
- the properties value.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classProxyOnlyResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-