public final class DiagnosticMetricSample extends Object
| Constructor and Description |
|---|
DiagnosticMetricSample() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
isAggregated()
Get the isAggregated property: Whether the values are aggregates across all workers or not.
|
Double |
maximum()
Get the maximum property: Maximum of the metric sampled during the time period.
|
Double |
minimum()
Get the minimum property: Minimum of the metric sampled during the time period.
|
String |
roleInstance()
Get the roleInstance property: Role Instance.
|
OffsetDateTime |
timestamp()
Get the timestamp property: Time at which metric is measured.
|
Double |
total()
Get the total property: Total value of the metric.
|
void |
validate()
Validates the instance.
|
DiagnosticMetricSample |
withIsAggregated(Boolean isAggregated)
Set the isAggregated property: Whether the values are aggregates across all workers or not.
|
DiagnosticMetricSample |
withMaximum(Double maximum)
Set the maximum property: Maximum of the metric sampled during the time period.
|
DiagnosticMetricSample |
withMinimum(Double minimum)
Set the minimum property: Minimum of the metric sampled during the time period.
|
DiagnosticMetricSample |
withRoleInstance(String roleInstance)
Set the roleInstance property: Role Instance.
|
DiagnosticMetricSample |
withTimestamp(OffsetDateTime timestamp)
Set the timestamp property: Time at which metric is measured.
|
DiagnosticMetricSample |
withTotal(Double total)
Set the total property: Total value of the metric.
|
public OffsetDateTime timestamp()
public DiagnosticMetricSample withTimestamp(OffsetDateTime timestamp)
timestamp - the timestamp value to set.public String roleInstance()
public DiagnosticMetricSample withRoleInstance(String roleInstance)
roleInstance - the roleInstance value to set.public Double total()
public DiagnosticMetricSample withTotal(Double total)
total - the total value to set.public Double maximum()
public DiagnosticMetricSample withMaximum(Double maximum)
maximum - the maximum value to set.public Double minimum()
public DiagnosticMetricSample withMinimum(Double minimum)
minimum - the minimum value to set.public Boolean isAggregated()
public DiagnosticMetricSample withIsAggregated(Boolean isAggregated)
isAggregated - the isAggregated value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.