Class DiagnosticMetricSample
java.lang.Object
com.microsoft.azure.management.appservice.DiagnosticMetricSample
Class representing Diagnostic Metric.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet whether the values are aggregates across all workers or not.maximum()
Get maximum of the metric sampled during the time period.minimum()
Get minimum of the metric sampled during the time period.Get role Instance.org.joda.time.DateTime
Get time at which metric is measured.total()
Get total value of the metric.withIsAggregated
(Boolean isAggregated) Set whether the values are aggregates across all workers or not.withMaximum
(Double maximum) Set maximum of the metric sampled during the time period.withMinimum
(Double minimum) Set minimum of the metric sampled during the time period.withRoleInstance
(String roleInstance) Set role Instance.withTimestamp
(org.joda.time.DateTime timestamp) Set time at which metric is measured.Set total value of the metric.
-
Constructor Details
-
DiagnosticMetricSample
public DiagnosticMetricSample()
-
-
Method Details
-
timestamp
public org.joda.time.DateTime timestamp()Get time at which metric is measured.- Returns:
- the timestamp value
-
withTimestamp
Set time at which metric is measured.- Parameters:
timestamp
- the timestamp value to set- Returns:
- the DiagnosticMetricSample object itself.
-
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
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
Get total value of the metric. If multiple measurements are made this will have sum of all.- Returns:
- the total value
-
withTotal
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
Get maximum of the metric sampled during the time period.- Returns:
- the maximum value
-
withMaximum
Set maximum of the metric sampled during the time period.- Parameters:
maximum
- the maximum value to set- Returns:
- the DiagnosticMetricSample object itself.
-
minimum
Get minimum of the metric sampled during the time period.- Returns:
- the minimum value
-
withMinimum
Set minimum of the metric sampled during the time period.- Parameters:
minimum
- the minimum value to set- Returns:
- the DiagnosticMetricSample object itself.
-
isAggregated
Get whether the values are aggregates across all workers or not.- Returns:
- the isAggregated value
-
withIsAggregated
Set whether the values are aggregates across all workers or not.- Parameters:
isAggregated
- the isAggregated value to set- Returns:
- the DiagnosticMetricSample object itself.
-