Class DiagnosticMetricSample

java.lang.Object
com.azure.resourcemanager.appservice.models.DiagnosticMetricSample

public final class DiagnosticMetricSample extends Object
Class representing Diagnostic Metric.
  • Constructor Details

    • DiagnosticMetricSample

      public DiagnosticMetricSample()
  • Method Details

    • timestamp

      public OffsetDateTime timestamp()
      Get the timestamp property: Time at which metric is measured.
      Returns:
      the timestamp value.
    • withTimestamp

      public DiagnosticMetricSample withTimestamp(OffsetDateTime timestamp)
      Set the timestamp property: Time at which metric is measured.
      Parameters:
      timestamp - the timestamp value to set.
      Returns:
      the DiagnosticMetricSample object itself.
    • 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:
      the roleInstance value.
    • 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:
      roleInstance - the roleInstance value to set.
      Returns:
      the DiagnosticMetricSample object itself.
    • 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:
      the total value.
    • 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:
      total - the total value to set.
      Returns:
      the DiagnosticMetricSample object itself.
    • maximum

      public Double maximum()
      Get the maximum property: Maximum of the metric sampled during the time period.
      Returns:
      the maximum value.
    • withMaximum

      public DiagnosticMetricSample withMaximum(Double maximum)
      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

      public Double minimum()
      Get the minimum property: Minimum of the metric sampled during the time period.
      Returns:
      the minimum value.
    • withMinimum

      public DiagnosticMetricSample withMinimum(Double minimum)
      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

      public Boolean isAggregated()
      Get the isAggregated property: Whether the values are aggregates across all workers or not.
      Returns:
      the isAggregated value.
    • withIsAggregated

      public DiagnosticMetricSample withIsAggregated(Boolean isAggregated)
      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.