DiagnosticMetricSample Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. DiagnosticMetricSample
- com.
Implements
public final class DiagnosticMetricSample
implements JsonSerializable<DiagnosticMetricSample>
Class representing Diagnostic Metric.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Diagnostic |
fromJson(JsonReader jsonReader)
Reads an instance of Diagnostic |
| Boolean |
isAggregated()
Get the is |
| 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 role |
|
Offset |
timestamp()
Get the timestamp property: Time at which metric is measured. |
|
Json |
toJson(JsonWriter jsonWriter) |
| Double |
total()
Get the total property: Total value of the metric. |
| void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Method Details
fromJson
public static DiagnosticMetricSample fromJson(JsonReader jsonReader)
Reads an instance of DiagnosticMetricSample from the JsonReader.
Parameters:
Returns:
Throws:
isAggregated
public Boolean isAggregated()
Get the isAggregated property: Whether the values are aggregates across all workers or not.
Returns:
maximum
public Double maximum()
Get the maximum property: Maximum of the metric sampled during the time period.
Returns:
minimum
public Double minimum()
Get the minimum property: Minimum of the metric sampled during the time period.
Returns:
roleInstance
public String roleInstance()
Get the roleInstance property: 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:
timestamp
public OffsetDateTime timestamp()
Get the timestamp property: Time at which metric is measured.
Returns:
toJson
total
public Double total()
Get the total property: Total value of the metric. If multiple measurements are made this will have sum of all.
Returns:
validate
public void validate()
Validates the instance.