MetricDefinitionInner Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.fluent.models.MetricDefinitionInner

Implements

public final class MetricDefinitionInner
implements JsonSerializable<MetricDefinitionInner>

The definition of a metric.

Constructor Summary

Constructor Description
MetricDefinitionInner()

Creates an instance of MetricDefinitionInner class.

Method Summary

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

Reads an instance of MetricDefinitionInner from the JsonReader.

List<MetricAvailability> metricAvailabilities()

Get the metricAvailabilities property: The list of metric availabilities for the account.

MetricName name()

Get the name property: The name information for the metric.

PrimaryAggregationType primaryAggregationType()

Get the primaryAggregationType property: The primary aggregation type of the metric.

String resourceUri()

Get the resourceUri property: The resource uri of the database.

JsonWriter toJson(JsonWriter jsonWriter)
UnitType unit()

Get the unit property: The unit of the metric.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

MetricDefinitionInner

public MetricDefinitionInner()

Creates an instance of MetricDefinitionInner class.

Method Details

fromJson

public static MetricDefinitionInner fromJson(JsonReader jsonReader)

Reads an instance of MetricDefinitionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MetricDefinitionInner 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 MetricDefinitionInner.

metricAvailabilities

public List metricAvailabilities()

Get the metricAvailabilities property: The list of metric availabilities for the account.

Returns:

the metricAvailabilities value.

name

public MetricName name()

Get the name property: The name information for the metric.

Returns:

the name value.

primaryAggregationType

public PrimaryAggregationType primaryAggregationType()

Get the primaryAggregationType property: The primary aggregation type of the metric.

Returns:

the primaryAggregationType value.

resourceUri

public String resourceUri()

Get the resourceUri property: The resource uri of the database.

Returns:

the resourceUri value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public UnitType unit()

Get the unit property: The unit of the metric.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

Applies to