Class DiagnosticMetricSample
- java.lang.Object
-
- com.microsoft.azure.management.appservice.DiagnosticMetricSample
-
public class DiagnosticMetricSample extends Object
Class representing Diagnostic Metric.
-
-
Constructor Summary
Constructors Constructor Description DiagnosticMetricSample()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanisAggregated()Get whether the values are aggregates across all workers or not.Doublemaximum()Get maximum of the metric sampled during the time period.Doubleminimum()Get minimum of the metric sampled during the time period.StringroleInstance()Get role Instance.org.joda.time.DateTimetimestamp()Get time at which metric is measured.Doubletotal()Get total value of the metric.DiagnosticMetricSamplewithIsAggregated(Boolean isAggregated)Set whether the values are aggregates across all workers or not.DiagnosticMetricSamplewithMaximum(Double maximum)Set maximum of the metric sampled during the time period.DiagnosticMetricSamplewithMinimum(Double minimum)Set minimum of the metric sampled during the time period.DiagnosticMetricSamplewithRoleInstance(String roleInstance)Set role Instance.DiagnosticMetricSamplewithTimestamp(org.joda.time.DateTime timestamp)Set time at which metric is measured.DiagnosticMetricSamplewithTotal(Double total)Set total value of the metric.
-
-
-
Method Detail
-
timestamp
public org.joda.time.DateTime timestamp()
Get time at which metric is measured.- Returns:
- the timestamp value
-
withTimestamp
public DiagnosticMetricSample withTimestamp(org.joda.time.DateTime timestamp)
Set time at which metric is measured.- Parameters:
timestamp- the timestamp value to set- Returns:
- the DiagnosticMetricSample object itself.
-
roleInstance
public String roleInstance()
Get role Instance. Null if this counter is not per instance This is returned and should be whichever instance name we desire to be returned i.e. CPU and Memory return RDWORKERNAME (LargeDed..._IN_0) where RDWORKERNAME is Machine name below and RoleInstance name in parenthesis.- Returns:
- the roleInstance value
-
withRoleInstance
public DiagnosticMetricSample withRoleInstance(String roleInstance)
Set role Instance. Null if this counter is not per instance This is returned and should be whichever instance name we desire to be returned i.e. CPU and Memory return RDWORKERNAME (LargeDed..._IN_0) where RDWORKERNAME is Machine name below and RoleInstance name in parenthesis.- Parameters:
roleInstance- the roleInstance value to set- Returns:
- the DiagnosticMetricSample object itself.
-
total
public Double total()
Get total value of the metric. If multiple measurements are made this will have sum of all.- Returns:
- the total value
-
withTotal
public DiagnosticMetricSample withTotal(Double total)
Set total value of the metric. If multiple measurements are made this will have sum of all.- Parameters:
total- the total value to set- Returns:
- the DiagnosticMetricSample object itself.
-
maximum
public Double maximum()
Get maximum of the metric sampled during the time period.- Returns:
- the maximum value
-
withMaximum
public DiagnosticMetricSample withMaximum(Double maximum)
Set maximum of the metric sampled during the time period.- Parameters:
maximum- the maximum value to set- Returns:
- the DiagnosticMetricSample object itself.
-
minimum
public Double minimum()
Get minimum of the metric sampled during the time period.- Returns:
- the minimum value
-
withMinimum
public DiagnosticMetricSample withMinimum(Double minimum)
Set minimum of the metric sampled during the time period.- Parameters:
minimum- the minimum value to set- Returns:
- the DiagnosticMetricSample object itself.
-
isAggregated
public Boolean isAggregated()
Get whether the values are aggregates across all workers or not.- Returns:
- the isAggregated value
-
withIsAggregated
public DiagnosticMetricSample withIsAggregated(Boolean isAggregated)
Set whether the values are aggregates across all workers or not.- Parameters:
isAggregated- the isAggregated value to set- Returns:
- the DiagnosticMetricSample object itself.
-
-