Class HelidonMetadata

  • All Implemented Interfaces:
    Metadata

    public class HelidonMetadata
    extends DefaultMetadata
    Class HelidonMetadata. In MP Metrics 2.0, Metadata is now immutable and a builder was added. This class allows creation of metadata directly using a constructor to avoid switching to a builder in dozens of locations. Can be used from other packages unfortunately.
    • Constructor Detail

      • HelidonMetadata

        public HelidonMetadata​(String name,
                               MetricType type)
        Construct immutable metadata.
        Parameters:
        name - Metric name.
        type - Metric type.
      • HelidonMetadata

        public HelidonMetadata​(String name,
                               String displayName,
                               String description,
                               MetricType type,
                               String unit,
                               boolean reusable)
        Construct immutable metadata.
        Parameters:
        name - Metric name.
        displayName - Metric display name.
        description - Metric description.
        type - Metric type.
        unit - Metric unit.
        reusable - Reusable flag.
      • HelidonMetadata

        public HelidonMetadata​(String name,
                               String displayName,
                               String description,
                               MetricType type,
                               String unit)
        Construct immutable metadata.
        Parameters:
        name - Metric name.
        displayName - Metric display name.
        description - Metric description.
        type - Metric type.
        unit - Metric unit.