DiagnosticMetricSample Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. DiagnosticMetricSample
- com.
Implements
public final class DiagnosticMetricSample
implements JsonSerializable<DiagnosticMetricSample>
Class representing Diagnostic Metric.
Constructor Summary
Constructor | Description |
---|---|
DiagnosticMetricSample() |
Creates an instance of Diagnostic |
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. |
Diagnostic |
withIsAggregated(Boolean isAggregated)
Set the is |
Diagnostic |
withMaximum(Double maximum)
Set the maximum property: Maximum of the metric sampled during the time period. |
Diagnostic |
withMinimum(Double minimum)
Set the minimum property: Minimum of the metric sampled during the time period. |
Diagnostic |
withRoleInstance(String roleInstance)
Set the role |
Diagnostic |
withTimestamp(OffsetDateTime timestamp)
Set the timestamp property: Time at which metric is measured. |
Diagnostic |
withTotal(Double total)
Set the total property: Total value of the metric. |
Methods inherited from java.lang.Object
Constructor Details
DiagnosticMetricSample
public DiagnosticMetricSample()
Creates an instance of DiagnosticMetricSample class.
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.
withIsAggregated
public DiagnosticMetricSample withIsAggregated(Boolean isAggregated)
Set the isAggregated property: Whether the values are aggregates across all workers or not.
Parameters:
Returns:
withMaximum
public DiagnosticMetricSample withMaximum(Double maximum)
Set the maximum property: Maximum of the metric sampled during the time period.
Parameters:
Returns:
withMinimum
public DiagnosticMetricSample withMinimum(Double minimum)
Set the minimum property: Minimum of the metric sampled during the time period.
Parameters:
Returns:
withRoleInstance
public DiagnosticMetricSample withRoleInstance(String roleInstance)
Set 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.
Parameters:
Returns:
withTimestamp
public DiagnosticMetricSample withTimestamp(OffsetDateTime timestamp)
Set the timestamp property: Time at which metric is measured.
Parameters:
Returns:
withTotal
public DiagnosticMetricSample withTotal(Double total)
Set the total property: Total value of the metric. If multiple measurements are made this will have sum of all.
Parameters:
Returns:
Applies to
Azure SDK for Java