Class DiagnosticMetricSet
- java.lang.Object
-
- com.microsoft.azure.management.appservice.DiagnosticMetricSet
-
public 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 org.joda.time.DateTimeendTime()Get end time of the period.Stringname()Get name of the metric.org.joda.time.DateTimestartTime()Get start time of the period.StringtimeGrain()Get presented time grain.Stringunit()Get metric's unit.List<DiagnosticMetricSample>values()Get collection of metric values for the selected period based on the {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}.DiagnosticMetricSetwithEndTime(org.joda.time.DateTime endTime)Set end time of the period.DiagnosticMetricSetwithName(String name)Set name of the metric.DiagnosticMetricSetwithStartTime(org.joda.time.DateTime startTime)Set start time of the period.DiagnosticMetricSetwithTimeGrain(String timeGrain)Set presented time grain.DiagnosticMetricSetwithUnit(String unit)Set metric's unit.DiagnosticMetricSetwithValues(List<DiagnosticMetricSample> values)Set collection of metric values for the selected period based on the {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}.
-
-
-
Method Detail
-
name
public String name()
Get name of the metric.- Returns:
- the name value
-
withName
public DiagnosticMetricSet withName(String name)
Set name of the metric.- Parameters:
name- the name value to set- Returns:
- the DiagnosticMetricSet object itself.
-
unit
public String unit()
Get metric's unit.- Returns:
- the unit value
-
withUnit
public DiagnosticMetricSet withUnit(String unit)
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
public DiagnosticMetricSet withStartTime(org.joda.time.DateTime startTime)
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
public DiagnosticMetricSet withEndTime(org.joda.time.DateTime endTime)
Set end time of the period.- Parameters:
endTime- the endTime value to set- Returns:
- the DiagnosticMetricSet object itself.
-
timeGrain
public String timeGrain()
Get presented time grain. Supported grains at the moment are PT1M, PT1H, P1D.- Returns:
- the timeGrain value
-
withTimeGrain
public DiagnosticMetricSet withTimeGrain(String timeGrain)
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
public List<DiagnosticMetricSample> values()
Get 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 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.
-
-