Class Criteria


  • public final class Criteria
    extends Object
    Specifies the criteria for converting log to metric.
    • Constructor Detail

      • Criteria

        public Criteria()
    • Method Detail

      • metricName

        public String metricName()
        Get the metricName property: Name of the metric.
        Returns:
        the metricName value.
      • withMetricName

        public Criteria withMetricName​(String metricName)
        Set the metricName property: Name of the metric.
        Parameters:
        metricName - the metricName value to set.
        Returns:
        the Criteria object itself.
      • dimensions

        public List<Dimension> dimensions()
        Get the dimensions property: List of Dimensions for creating metric.
        Returns:
        the dimensions value.
      • withDimensions

        public Criteria withDimensions​(List<Dimension> dimensions)
        Set the dimensions property: List of Dimensions for creating metric.
        Parameters:
        dimensions - the dimensions value to set.
        Returns:
        the Criteria object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.