ResourceMetricDefinitionInner Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. ProxyOnlyResource - com.
azure. resourcemanager. appservice. fluent. models. ResourceMetricDefinitionInner
- com.
- com.
public final class ResourceMetricDefinitionInner
extends ProxyOnlyResource
Metadata for the metrics.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
| String |
id()
Get the id property: Resource Id. |
|
List<Resource |
metricAvailabilities()
Get the metric |
| String |
name()
Get the name property: Resource Name. |
| String |
primaryAggregationType()
Get the primary |
| Map<String,String> |
properties()
Get the properties property: Resource metric definition properties. |
| String |
resourceUri()
Get the resource |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Resource type. |
| String |
unit()
Get the unit property: Unit of the metric. |
| void |
validate()
Validates the instance. |
Methods inherited from ProxyOnlyResource
Methods inherited from java.lang.Object
Method Details
fromJson
public static ResourceMetricDefinitionInner fromJson(JsonReader jsonReader)
Reads an instance of ResourceMetricDefinitionInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Resource Id.
Overrides:
ResourceMetricDefinitionInner.id()Returns:
metricAvailabilities
public List<ResourceMetricAvailability> metricAvailabilities()
Get the metricAvailabilities property: List of time grains supported for the metric together with retention period.
Returns:
name
public String name()
Get the name property: Resource Name.
Overrides:
ResourceMetricDefinitionInner.name()Returns:
primaryAggregationType
public String primaryAggregationType()
Get the primaryAggregationType property: Primary aggregation type.
Returns:
properties
public Map<String,String> properties()
Get the properties property: Resource metric definition properties.
Returns:
resourceUri
public String resourceUri()
Get the resourceUri property: Resource URI.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ResourceMetricDefinitionInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Resource type.
Overrides:
ResourceMetricDefinitionInner.type()Returns:
unit
public String unit()
Get the unit property: Unit of the metric.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
ResourceMetricDefinitionInner.validate()