public class DiagnosticMetricSample extends Object
Constructor and Description |
---|
DiagnosticMetricSample() |
Modifier and Type | Method and Description |
---|---|
Boolean |
isAggregated()
Get whether the values are aggregates across all workers or not.
|
Double |
maximum()
Get maximum of the metric sampled during the time period.
|
Double |
minimum()
Get minimum of the metric sampled during the time period.
|
String |
roleInstance()
Get role Instance.
|
org.joda.time.DateTime |
timestamp()
Get time at which metric is measured.
|
Double |
total()
Get total value of the metric.
|
DiagnosticMetricSample |
withIsAggregated(Boolean isAggregated)
Set whether the values are aggregates across all workers or not.
|
DiagnosticMetricSample |
withMaximum(Double maximum)
Set maximum of the metric sampled during the time period.
|
DiagnosticMetricSample |
withMinimum(Double minimum)
Set minimum of the metric sampled during the time period.
|
DiagnosticMetricSample |
withRoleInstance(String roleInstance)
Set role Instance.
|
DiagnosticMetricSample |
withTimestamp(org.joda.time.DateTime timestamp)
Set time at which metric is measured.
|
DiagnosticMetricSample |
withTotal(Double total)
Set total value of the metric.
|
public org.joda.time.DateTime timestamp()
public DiagnosticMetricSample withTimestamp(org.joda.time.DateTime timestamp)
timestamp
- the timestamp value to setpublic String roleInstance()
public DiagnosticMetricSample withRoleInstance(String roleInstance)
roleInstance
- the roleInstance value to setpublic Double total()
public DiagnosticMetricSample withTotal(Double total)
total
- the total value to setpublic Double maximum()
public DiagnosticMetricSample withMaximum(Double maximum)
maximum
- the maximum value to setpublic Double minimum()
public DiagnosticMetricSample withMinimum(Double minimum)
minimum
- the minimum value to setpublic Boolean isAggregated()
public DiagnosticMetricSample withIsAggregated(Boolean isAggregated)
isAggregated
- the isAggregated value to setCopyright © 2019. All rights reserved.