Condividi tramite


ResourceMetricDefinitionInner Class

public final class ResourceMetricDefinitionInner
extends ProxyOnlyResource

Metadata for the metrics.

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: Resource Id.

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: Resource Name.

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

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 an error occurs while reading the ResourceMetricDefinitionInner.

id

public String id()

Get the id property: Resource Id.

Overrides:

ResourceMetricDefinitionInner.id()

Returns:

the id 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.

name

public String name()

Get the name property: Resource Name.

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<String,String> 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: Resource type.

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()

Applies to