ResourceMetricDefinitionInner Class

public final class ResourceMetricDefinitionInner
extends ProxyOnlyResource

Metadata for the metrics.

Constructor Summary

Constructor Description
ResourceMetricDefinitionInner()

Creates an instance of ResourceMetricDefinitionInner class.

Method Summary

Modifier and Type Method and Description
static ResourceMetricDefinitionInner fromJson(JsonReader jsonReader)

Reads an instance of ResourceMetricDefinitionInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

List<ResourceMetricAvailability> metricAvailabilities()

Get the metricAvailabilities property: List of time grains supported for the metric together with retention period.

String name()

Get the name property: The name of the resource.

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.

JsonWriter 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.

ResourceMetricDefinitionInner 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:

jsonReader - The JsonReader being read.

Returns:

An instance of ResourceMetricDefinitionInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ResourceMetricDefinitionInner.id()

Returns:

the id value.

metricAvailabilities

public List metricAvailabilities()

Get the metricAvailabilities property: List of time grains supported for the metric together with retention period.

Returns:

the metricAvailabilities value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ResourceMetricDefinitionInner.name()

Returns:

the name value.

primaryAggregationType

public String primaryAggregationType()

Get the primaryAggregationType property: Primary aggregation type.

Returns:

the primaryAggregationType value.

properties

public Map properties()

Get the properties property: Resource metric definition properties.

Returns:

the properties value.

resourceUri

public String resourceUri()

Get the resourceUri property: Resource URI.

Returns:

the resourceUri value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ResourceMetricDefinitionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ResourceMetricDefinitionInner.type()

Returns:

the type value.

unit

public String unit()

Get the unit property: Unit of the metric.

Returns:

the unit value.

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:

kind

Applies to