Class DiagnosticMetricSample
java.lang.Object
com.azure.resourcemanager.appservice.models.DiagnosticMetricSample
Class representing Diagnostic Metric.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the isAggregated property: Whether the values are aggregates across all workers or not.maximum()
Get the maximum property: Maximum of the metric sampled during the time period.minimum()
Get the minimum property: Minimum of the metric sampled during the time period.Get the roleInstance property: Role Instance.Get the timestamp property: Time at which metric is measured.total()
Get the total property: Total value of the metric.void
validate()
Validates the instance.withIsAggregated
(Boolean isAggregated) Set the isAggregated property: Whether the values are aggregates across all workers or not.withMaximum
(Double maximum) Set the maximum property: Maximum of the metric sampled during the time period.withMinimum
(Double minimum) Set the minimum property: Minimum of the metric sampled during the time period.withRoleInstance
(String roleInstance) Set the roleInstance property: Role Instance.withTimestamp
(OffsetDateTime timestamp) Set the timestamp property: Time at which metric is measured.Set the total property: Total value of the metric.
-
Constructor Details
-
DiagnosticMetricSample
public DiagnosticMetricSample()
-
-
Method Details
-
timestamp
Get the timestamp property: Time at which metric is measured.- Returns:
- the timestamp value.
-
withTimestamp
Set the timestamp property: Time at which metric is measured.- Parameters:
timestamp
- the timestamp value to set.- Returns:
- the DiagnosticMetricSample object itself.
-
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:
- the roleInstance value.
-
withRoleInstance
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:
roleInstance
- the roleInstance value to set.- Returns:
- the DiagnosticMetricSample object itself.
-
total
Get the total property: Total value of the metric. If multiple measurements are made this will have sum of all.- Returns:
- the total value.
-
withTotal
Set the total property: 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 the maximum property: Maximum of the metric sampled during the time period.- Returns:
- the maximum value.
-
withMaximum
Set the maximum property: Maximum of the metric sampled during the time period.- Parameters:
maximum
- the maximum value to set.- Returns:
- the DiagnosticMetricSample object itself.
-
minimum
Get the minimum property: Minimum of the metric sampled during the time period.- Returns:
- the minimum value.
-
withMinimum
Set the minimum property: Minimum of the metric sampled during the time period.- Parameters:
minimum
- the minimum value to set.- Returns:
- the DiagnosticMetricSample object itself.
-
isAggregated
Get the isAggregated property: Whether the values are aggregates across all workers or not.- Returns:
- the isAggregated value.
-
withIsAggregated
Set the isAggregated property: Whether the values are aggregates across all workers or not.- Parameters:
isAggregated
- the isAggregated value to set.- Returns:
- the DiagnosticMetricSample object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-