Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public static final class MetricSchema.Entry
- Object
- MetricSchema.Entry
One instrument of the schema.
Methods
public String getName() | The instrument’s name, as the OTLP exporter and the JSON view send it. |
public int getKind() | One of the Instrument kinds. |
public String getUnit() | The UCUM unit, as OpenTelemetry writes it: ms, s, By, or a {curly} annotation for a count. |
public String[] getAttributes() | The attribute keys a point may carry, in order. |
public String getTemporality() | CUMULATIVE or INSTANT. |
public String getAvailability() | ALWAYS, DATABASE or JVM. |
public String getMicrometer() | The Micrometer meter a Spring Boot application reports the same figure under, or null when it has none. |
public String getDescription() | |
public String getPrometheusName() | The name the Prometheus view exposes it under: dots become underscores, and a counter gains _total. |
Inherited methods
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()CUMULATIVE or INSTANT.getAvailability
public String 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.