DiagnosticMetricSet Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. DiagnosticMetricSet
- com.
Implements
public final class DiagnosticMetricSet
implements JsonSerializable<DiagnosticMetricSet>
Class representing Diagnostic Metric information.
Constructor Summary
Constructor | Description |
---|---|
DiagnosticMetricSet() |
Creates an instance of Diagnostic |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
endTime()
Get the end |
static
Diagnostic |
fromJson(JsonReader jsonReader)
Reads an instance of Diagnostic |
String |
name()
Get the name property: Name of the metric. |
Offset |
startTime()
Get the start |
String |
timeGrain()
Get the time |
Json |
toJson(JsonWriter jsonWriter) |
String |
unit()
Get the unit property: Metric's unit. |
void |
validate()
Validates the instance. |
List<Diagnostic |
values()
Get the values property: Collection of metric values for the selected period based on the {Microsoft. |
Diagnostic |
withEndTime(OffsetDateTime endTime)
Set the end |
Diagnostic |
withName(String name)
Set the name property: Name of the metric. |
Diagnostic |
withStartTime(OffsetDateTime startTime)
Set the start |
Diagnostic |
withTimeGrain(String timeGrain)
Set the time |
Diagnostic |
withUnit(String unit)
Set the unit property: Metric's unit. |
Diagnostic |
withValues(List<DiagnosticMetricSample> values)
Set the values property: Collection of metric values for the selected period based on the {Microsoft. |
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:
fromJson
public static DiagnosticMetricSet fromJson(JsonReader jsonReader)
Reads an instance of DiagnosticMetricSet from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Name of the metric.
Returns:
startTime
public OffsetDateTime startTime()
Get the startTime property: Start time of the period.
Returns:
timeGrain
public String timeGrain()
Get the timeGrain property: Presented time grain. Supported grains at the moment are PT1M, PT1H, P1D.
Returns:
toJson
unit
public String unit()
Get the unit property: Metric's unit.
Returns:
validate
public void validate()
Validates the instance.
values
public List
Get the values property: Collection of metric values for the selected period based on the {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}.
Returns:
withEndTime
public DiagnosticMetricSet withEndTime(OffsetDateTime endTime)
Set the endTime property: End time of the period.
Parameters:
Returns:
withName
public DiagnosticMetricSet withName(String name)
Set the name property: Name of the metric.
Parameters:
Returns:
withStartTime
public DiagnosticMetricSet withStartTime(OffsetDateTime startTime)
Set the startTime property: Start time of the period.
Parameters:
Returns:
withTimeGrain
public DiagnosticMetricSet withTimeGrain(String timeGrain)
Set the timeGrain property: Presented time grain. Supported grains at the moment are PT1M, PT1H, P1D.
Parameters:
Returns:
withUnit
public DiagnosticMetricSet withUnit(String unit)
Set the unit property: Metric's unit.
Parameters:
Returns:
withValues
public DiagnosticMetricSet withValues(List
Set the values property: Collection of metric values for the selected period based on the {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}.
Parameters:
Returns:
Applies to
Azure SDK for Java