Interface MetricsDatabase.Builder

  • Enclosing interface:
    MetricsDatabase

    public static interface MetricsDatabase.Builder
    A builder of MetricsDatabase.
    • Method Detail

      • withMetricName

        MetricsDatabase.Builder withMetricName​(java.lang.String metricName)
        Sets the metric name.
        Parameters:
        metricName - metric name
        Returns:
        builder object
      • withResourceName

        MetricsDatabase.Builder withResourceName​(java.lang.String resourceName)
        Sets the resource name.
        Parameters:
        resourceName - resource name
        Returns:
        builder object
      • addMetricType

        MetricsDatabase.Builder addMetricType​(java.lang.String metricType)
        Add a new metric to be monitored.
        Parameters:
        metricType - control metric type
        Returns:
        builder object
      • build

        MetricsDatabase build()
        Builds a metric database instance.
        Returns:
        metric database instance