Compartilhar via


OperationMetricSpecificationDefinition Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.OperationMetricSpecificationDefinition

Implements

public final class OperationMetricSpecificationDefinition
implements JsonSerializable<OperationMetricSpecificationDefinition>

The definition of Azure Monitoring metric.

Constructor Summary

Constructor Description
OperationMetricSpecificationDefinition()

Creates an instance of OperationMetricSpecificationDefinition class.

Method Summary

Modifier and Type Method and Description
String aggregationType()

Get the aggregationType property: Metric aggregation type.

String displayDescription()

Get the displayDescription property: Metric description.

String displayName()

Get the displayName property: Metric display name.

static OperationMetricSpecificationDefinition fromJson(JsonReader jsonReader)

Reads an instance of OperationMetricSpecificationDefinition from the JsonReader.

String internalMetricName()

Get the internalMetricName property: Internal metric name.

String name()

Get the name property: Metric name.

JsonWriter toJson(JsonWriter jsonWriter)
String unit()

Get the unit property: Metric unit.

void validate()

Validates the instance.

OperationMetricSpecificationDefinition withAggregationType(String aggregationType)

Set the aggregationType property: Metric aggregation type.

OperationMetricSpecificationDefinition withDisplayDescription(String displayDescription)

Set the displayDescription property: Metric description.

OperationMetricSpecificationDefinition withDisplayName(String displayName)

Set the displayName property: Metric display name.

OperationMetricSpecificationDefinition withInternalMetricName(String internalMetricName)

Set the internalMetricName property: Internal metric name.

OperationMetricSpecificationDefinition withName(String name)

Set the name property: Metric name.

OperationMetricSpecificationDefinition withUnit(String unit)

Set the unit property: Metric unit.

Methods inherited from java.lang.Object

Constructor Details

OperationMetricSpecificationDefinition

public OperationMetricSpecificationDefinition()

Creates an instance of OperationMetricSpecificationDefinition class.

Method Details

aggregationType

public String aggregationType()

Get the aggregationType property: Metric aggregation type.

Returns:

the aggregationType value.

displayDescription

public String displayDescription()

Get the displayDescription property: Metric description.

Returns:

the displayDescription value.

displayName

public String displayName()

Get the displayName property: Metric display name.

Returns:

the displayName value.

fromJson

public static OperationMetricSpecificationDefinition fromJson(JsonReader jsonReader)

Reads an instance of OperationMetricSpecificationDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

internalMetricName

public String internalMetricName()

Get the internalMetricName property: Internal metric name.

Returns:

the internalMetricName value.

name

public String name()

Get the name property: Metric name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public String unit()

Get the unit property: Metric unit.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

withAggregationType

public OperationMetricSpecificationDefinition withAggregationType(String aggregationType)

Set the aggregationType property: Metric aggregation type.

Parameters:

aggregationType - the aggregationType value to set.

Returns:

the OperationMetricSpecificationDefinition object itself.

withDisplayDescription

public OperationMetricSpecificationDefinition withDisplayDescription(String displayDescription)

Set the displayDescription property: Metric description.

Parameters:

displayDescription - the displayDescription value to set.

Returns:

the OperationMetricSpecificationDefinition object itself.

withDisplayName

public OperationMetricSpecificationDefinition withDisplayName(String displayName)

Set the displayName property: Metric display name.

Parameters:

displayName - the displayName value to set.

Returns:

the OperationMetricSpecificationDefinition object itself.

withInternalMetricName

public OperationMetricSpecificationDefinition withInternalMetricName(String internalMetricName)

Set the internalMetricName property: Internal metric name.

Parameters:

internalMetricName - the internalMetricName value to set.

Returns:

the OperationMetricSpecificationDefinition object itself.

withName

public OperationMetricSpecificationDefinition withName(String name)

Set the name property: Metric name.

Parameters:

name - the name value to set.

Returns:

the OperationMetricSpecificationDefinition object itself.

withUnit

public OperationMetricSpecificationDefinition withUnit(String unit)

Set the unit property: Metric unit.

Parameters:

unit - the unit value to set.

Returns:

the OperationMetricSpecificationDefinition object itself.

Applies to