Class DiagnosticMetricSet
java.lang.Object
com.microsoft.azure.management.appservice.DiagnosticMetricSet
Class representing Diagnostic Metric information.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.joda.time.DateTime
endTime()
Get end time of the period.name()
Get name of the metric.org.joda.time.DateTime
Get start time of the period.Get presented time grain.unit()
Get metric's unit.values()
Get collection of metric values for the selected period based on the {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}.withEndTime
(org.joda.time.DateTime endTime) Set end time of the period.Set name of the metric.withStartTime
(org.joda.time.DateTime startTime) Set start time of the period.withTimeGrain
(String timeGrain) Set presented time grain.Set metric's unit.withValues
(List<DiagnosticMetricSample> values) Set collection of metric values for the selected period based on the {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}.
-
Constructor Details
-
DiagnosticMetricSet
public DiagnosticMetricSet()
-
-
Method Details
-
name
Get name of the metric.- Returns:
- the name value
-
withName
Set name of the metric.- Parameters:
name
- the name value to set- Returns:
- the DiagnosticMetricSet object itself.
-
unit
Get metric's unit.- Returns:
- the unit value
-
withUnit
Set metric's unit.- Parameters:
unit
- the unit value to set- Returns:
- the DiagnosticMetricSet object itself.
-
startTime
public org.joda.time.DateTime startTime()Get start time of the period.- Returns:
- the startTime value
-
withStartTime
Set start time of the period.- Parameters:
startTime
- the startTime value to set- Returns:
- the DiagnosticMetricSet object itself.
-
endTime
public org.joda.time.DateTime endTime()Get end time of the period.- Returns:
- the endTime value
-
withEndTime
Set end time of the period.- Parameters:
endTime
- the endTime value to set- Returns:
- the DiagnosticMetricSet object itself.
-
timeGrain
Get presented time grain. Supported grains at the moment are PT1M, PT1H, P1D.- Returns:
- the timeGrain value
-
withTimeGrain
Set 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
Get collection of metric values for the selected period based on the {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}.- Returns:
- the values value
-
withValues
Set 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.
-