Condividi tramite


DiagnosticMetricSet Class

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

Implements

public final class DiagnosticMetricSet
implements JsonSerializable<DiagnosticMetricSet>

Class representing Diagnostic Metric information.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endTime()

Get the endTime property: End time of the period.

static DiagnosticMetricSet fromJson(JsonReader jsonReader)

Reads an instance of DiagnosticMetricSet from the JsonReader.

String name()

Get the name property: Name of the metric.

OffsetDateTime startTime()

Get the startTime property: Start time of the period.

String timeGrain()

Get the timeGrain property: Presented time grain.

JsonWriter toJson(JsonWriter jsonWriter)
String unit()

Get the unit property: Metric's unit.

void validate()

Validates the instance.

List<DiagnosticMetricSample> values()

Get the values property: Collection of metric values for the selected period based on the {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}.

Methods inherited from java.lang.Object

Method Details

endTime

public OffsetDateTime endTime()

Get the endTime property: End time of the period.

Returns:

the endTime value.

fromJson

public static DiagnosticMetricSet fromJson(JsonReader jsonReader)

Reads an instance of DiagnosticMetricSet from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Name of the metric.

Returns:

the name value.

startTime

public OffsetDateTime startTime()

Get the startTime property: Start time of the period.

Returns:

the startTime value.

timeGrain

public String timeGrain()

Get the timeGrain property: Presented time grain. Supported grains at the moment are PT1M, PT1H, P1D.

Returns:

the timeGrain value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public String unit()

Get the unit property: Metric's unit.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

values

public List<DiagnosticMetricSample> values()

Get the values property: Collection of metric values for the selected period based on the {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}.

Returns:

the values value.

Applies to