MetricNamespace Class

  • java.lang.Object
    • com.azure.developer.loadtesting.models.MetricNamespace

Implements

public final class MetricNamespace
implements JsonSerializable<MetricNamespace>

Metric namespace class specifies the metadata for a metric namespace.

Method Summary

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

Reads an instance of MetricNamespace from the JsonReader.

String getDescription()

Get the description property: The namespace description.

String getName()

Get the name property: The metric namespace name.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static MetricNamespace fromJson(JsonReader jsonReader)

Reads an instance of MetricNamespace from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getDescription

public String getDescription()

Get the description property: The namespace description.

Returns:

the description value.

getName

public String getName()

Get the name property: The metric namespace name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to