Condividi tramite


ResourceMetricAvailability Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.ResourceMetricAvailability

Implements

public final class ResourceMetricAvailability
implements JsonSerializable<ResourceMetricAvailability>

Metrics availability and retention.

Method Summary

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

Reads an instance of ResourceMetricAvailability from the JsonReader.

String retention()

Get the retention property: Retention period for the current time grain.

String timeGrain()

Get the timeGrain property: Time grain .

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

fromJson

public static ResourceMetricAvailability fromJson(JsonReader jsonReader)

Reads an instance of ResourceMetricAvailability from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

retention

public String retention()

Get the retention property: Retention period for the current time grain.

Returns:

the retention value.

timeGrain

public String timeGrain()

Get the timeGrain property: Time grain .

Returns:

the timeGrain value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to