Class Metric.Builder

  • Enclosing class:
    Metric

    public static final class Metric.Builder
    extends MetricInfo.Builder
    A builder for Metric objects.
    • Method Detail

      • setName

        @CanIgnoreReturnValue
        public Metric.Builder setName​(String name)
        Description copied from class: MetricInfo.Builder
        Sets the name of the metric. Example: severe-errors. Metric identifiers are limited to 1000 characters and can include only the following characters: A-Z, a-z, 0-9, and the special characters _-.,+!*',()%/\. The forward-slash character (/) denotes a hierarchy of name pieces, and it cannot be the first character of the name.
        Specified by:
        setName in class MetricInfo.Builder