public final class ResourceMetricDefinitionInner extends ProxyOnlyResource
| Constructor and Description |
|---|
ResourceMetricDefinitionInner() |
| Modifier and Type | Method and Description |
|---|---|
List<ResourceMetricAvailability> |
metricAvailabilities()
Get the metricAvailabilities property: List of time grains supported for the metric together with retention
period.
|
String |
primaryAggregationType()
Get the primaryAggregationType property: Primary aggregation type.
|
Map<String,String> |
properties()
Get the properties property: Resource metric definition properties.
|
String |
resourceUri()
Get the resourceUri property: Resource URI.
|
String |
unit()
Get the unit property: Unit of the metric.
|
void |
validate()
Validates the instance.
|
ResourceMetricDefinitionInner |
withKind(String kind)
Set the kind property: Kind of resource.
|
kindpublic ResourceMetricDefinitionInner withKind(String kind)
withKind in class ProxyOnlyResourcekind - the kind value to set.public String unit()
public String primaryAggregationType()
public List<ResourceMetricAvailability> metricAvailabilities()
public String resourceUri()
public Map<String,String> properties()
public void validate()
validate in class ProxyOnlyResourceIllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.