Partilhar via


MetricDimension Class

  • java.lang.Object
    • com.azure.resourcemanager.appplatform.models.MetricDimension

Implements

public final class MetricDimension
implements JsonSerializable<MetricDimension>

Specifications of the Dimension of metrics.

Constructor Summary

Constructor Description
MetricDimension()

Creates an instance of MetricDimension class.

Method Summary

Modifier and Type Method and Description
String displayName()

Get the displayName property: Localized friendly display name of the dimension.

static MetricDimension fromJson(JsonReader jsonReader)

Reads an instance of MetricDimension from the JsonReader.

String name()

Get the name property: Name of the dimension.

Boolean toBeExportedForShoebox()

Get the toBeExportedForShoebox property: Whether this dimension should be included for the Shoebox export scenario.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MetricDimension withDisplayName(String displayName)

Set the displayName property: Localized friendly display name of the dimension.

MetricDimension withName(String name)

Set the name property: Name of the dimension.

MetricDimension withToBeExportedForShoebox(Boolean toBeExportedForShoebox)

Set the toBeExportedForShoebox property: Whether this dimension should be included for the Shoebox export scenario.

Methods inherited from java.lang.Object

Constructor Details

MetricDimension

public MetricDimension()

Creates an instance of MetricDimension class.

Method Details

displayName

public String displayName()

Get the displayName property: Localized friendly display name of the dimension.

Returns:

the displayName value.

fromJson

public static MetricDimension fromJson(JsonReader jsonReader)

Reads an instance of MetricDimension from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Name of the dimension.

Returns:

the name value.

toBeExportedForShoebox

public Boolean toBeExportedForShoebox()

Get the toBeExportedForShoebox property: Whether this dimension should be included for the Shoebox export scenario.

Returns:

the toBeExportedForShoebox value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDisplayName

public MetricDimension withDisplayName(String displayName)

Set the displayName property: Localized friendly display name of the dimension.

Parameters:

displayName - the displayName value to set.

Returns:

the MetricDimension object itself.

withName

public MetricDimension withName(String name)

Set the name property: Name of the dimension.

Parameters:

name - the name value to set.

Returns:

the MetricDimension object itself.

withToBeExportedForShoebox

public MetricDimension withToBeExportedForShoebox(Boolean toBeExportedForShoebox)

Set the toBeExportedForShoebox property: Whether this dimension should be included for the Shoebox export scenario.

Parameters:

toBeExportedForShoebox - the toBeExportedForShoebox value to set.

Returns:

the MetricDimension object itself.

Applies to