Interface MetricUsage.Builder

  • Method Details

    • metricId

      MetricUsage.Builder metricId(String metricId)

      The metric this usage is for.

      Parameters:
      metricId - The metric this usage is for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • quantity

      MetricUsage.Builder quantity(String quantity)

      The metric's usage over the window, as a plain decimal string (for example, "1500" or "12.5"). For a SUM or COUNT metric this is the total; for a MAX metric it is the largest value recorded. Within a fixed window the value can only grow, as late-arriving events are counted.

      Parameters:
      quantity - The metric's usage over the window, as a plain decimal string (for example, "1500" or "12.5"). For a SUM or COUNT metric this is the total; for a MAX metric it is the largest value recorded. Within a fixed window the value can only grow, as late-arriving events are counted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.