ResourceMetricDefinitionInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. appservice. models. ProxyOnlyResource - com.
azure. resourcemanager. appservice. fluent. models. ResourceMetricDefinitionInner
- com.
- com.
- com.
public final class ResourceMetricDefinitionInner
extends ProxyOnlyResource
Metadata for the metrics.
Constructor Summary
Constructor | Description |
---|---|
ResourceMetricDefinitionInner() |
Creates an instance of Resource |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
List<Resource |
metricAvailabilities()
Get the metric |
String |
name()
Get the name property: The name of the resource. |
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: The type of the resource. |
String |
unit()
Get the unit property: Unit of the metric. |
void |
validate()
Validates the instance. |
Resource |
withKind(String kind)
Set the kind property: Kind of resource. |
Methods inherited from ProxyOnlyResource
Methods inherited from java.lang.Object
Constructor Details
ResourceMetricDefinitionInner
public ResourceMetricDefinitionInner()
Creates an instance of ResourceMetricDefinitionInner class.
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: Fully qualified resource Id for the resource.
Overrides:
ResourceMetricDefinitionInner.id()Returns:
metricAvailabilities
public List
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: The name of the resource.
Overrides:
ResourceMetricDefinitionInner.name()Returns:
primaryAggregationType
public String primaryAggregationType()
Get the primaryAggregationType property: Primary aggregation type.
Returns:
properties
public Map
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: The type of the resource.
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()withKind
public ResourceMetricDefinitionInner withKind(String kind)
Set the kind property: Kind of resource.
Overrides:
ResourceMetricDefinitionInner.withKind(String kind)Parameters:
Applies to
Azure SDK for Java