DiagnosticMetricSet Class

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

Implements

public final class DiagnosticMetricSet
implements JsonSerializable<DiagnosticMetricSet>

Class representing Diagnostic Metric information.

Constructor Summary

Constructor Description
DiagnosticMetricSet()

Creates an instance of DiagnosticMetricSet class.

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}.

DiagnosticMetricSet withEndTime(OffsetDateTime endTime)

Set the endTime property: End time of the period.

DiagnosticMetricSet withName(String name)

Set the name property: Name of the metric.

DiagnosticMetricSet withStartTime(OffsetDateTime startTime)

Set the startTime property: Start time of the period.

DiagnosticMetricSet withTimeGrain(String timeGrain)

Set the timeGrain property: Presented time grain.

DiagnosticMetricSet withUnit(String unit)

Set the unit property: Metric's unit.

DiagnosticMetricSet withValues(List<DiagnosticMetricSample> values)

Set 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

Constructor Details

DiagnosticMetricSet

public DiagnosticMetricSet()

Creates an instance of DiagnosticMetricSet class.

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 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.

withEndTime

public DiagnosticMetricSet withEndTime(OffsetDateTime endTime)

Set the endTime property: End time of the period.

Parameters:

endTime - the endTime value to set.

Returns:

the DiagnosticMetricSet object itself.

withName

public DiagnosticMetricSet withName(String name)

Set the name property: Name of the metric.

Parameters:

name - the name value to set.

Returns:

the DiagnosticMetricSet object itself.

withStartTime

public DiagnosticMetricSet withStartTime(OffsetDateTime startTime)

Set the startTime property: Start time of the period.

Parameters:

startTime - the startTime value to set.

Returns:

the DiagnosticMetricSet object itself.

withTimeGrain

public DiagnosticMetricSet withTimeGrain(String timeGrain)

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

Parameters:

timeGrain - the timeGrain value to set.

Returns:

the DiagnosticMetricSet object itself.

withUnit

public DiagnosticMetricSet withUnit(String unit)

Set the unit property: Metric's unit.

Parameters:

unit - the unit value to set.

Returns:

the DiagnosticMetricSet object itself.

withValues

public DiagnosticMetricSet withValues(List values)

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

Parameters:

values - the values value to set.

Returns:

the DiagnosticMetricSet object itself.

Applies to