Class DiagnosticMetricSet
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.DiagnosticMetricSet
-
public final class DiagnosticMetricSet extends Object
Class representing Diagnostic Metric information.
-
-
Constructor Summary
Constructors Constructor Description DiagnosticMetricSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTimeendTime()Get the endTime property: End time of the period.Stringname()Get the name property: Name of the metric.OffsetDateTimestartTime()Get the startTime property: Start time of the period.StringtimeGrain()Get the timeGrain property: Presented time grain.Stringunit()Get the unit property: Metric's unit.voidvalidate()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}.DiagnosticMetricSetwithEndTime(OffsetDateTime endTime)Set the endTime property: End time of the period.DiagnosticMetricSetwithName(String name)Set the name property: Name of the metric.DiagnosticMetricSetwithStartTime(OffsetDateTime startTime)Set the startTime property: Start time of the period.DiagnosticMetricSetwithTimeGrain(String timeGrain)Set the timeGrain property: Presented time grain.DiagnosticMetricSetwithUnit(String unit)Set the unit property: Metric's unit.DiagnosticMetricSetwithValues(List<DiagnosticMetricSample> values)Set the values property: Collection of metric values for the selected period based on the {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Name of the metric.- Returns:
- the name value.
-
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.
-
unit
public String unit()
Get the unit property: Metric's unit.- Returns:
- the unit value.
-
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.
-
startTime
public OffsetDateTime startTime()
Get the startTime property: Start time of the period.- Returns:
- the startTime value.
-
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.
-
endTime
public OffsetDateTime endTime()
Get the endTime property: End time of the period.- Returns:
- the endTime 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.
-
timeGrain
public String timeGrain()
Get the timeGrain property: Presented time grain. Supported grains at the moment are PT1M, PT1H, P1D.- Returns:
- the timeGrain value.
-
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.
-
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.
-
withValues
public 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}.- Parameters:
values- the values value to set.- Returns:
- the DiagnosticMetricSet object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-