Class MetricSchema.Entry

java.lang.Object
com.codename1.backend.metrics.MetricSchema.Entry
Enclosing class:
MetricSchema

public static final class MetricSchema.Entry extends Object
One instrument of the schema.
  • Method Details

    • getName

      public String getName()
      The instrument's name, as the OTLP exporter and the JSON view send it.
    • getKind

      public int getKind()
      One of the Instrument kinds.
    • getUnit

      public String getUnit()
      The UCUM unit, as OpenTelemetry writes it: ms, s, By, or a {curly} annotation for a count.
    • getAttributes

      public String[] getAttributes()
      The attribute keys a point may carry, in order.
    • getTemporality

      public String getTemporality()
    • getAvailability

    • getMicrometer

      public String getMicrometer()
      The Micrometer meter a Spring Boot application reports the same figure under, or null when it has none.
    • getDescription

      public String getDescription()
    • getPrometheusName

      public String getPrometheusName()
      The name the Prometheus view exposes it under: dots become underscores, and a counter gains _total. A histogram's series add _bucket, _sum and _count to it.