io.opentelemetry.contrib.jmxmetrics.InstrumentDescriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opentelemetry-jmx-metrics Show documentation
Show all versions of opentelemetry-jmx-metrics Show documentation
JMX metrics gathering Groovy script runner
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.contrib.jmxmetrics;
import com.google.auto.value.AutoValue;
import io.opentelemetry.sdk.metrics.InstrumentType;
import io.opentelemetry.sdk.metrics.InstrumentValueType;
@AutoValue
abstract class InstrumentDescriptor {
static InstrumentDescriptor create(
String name,
String description,
String unit,
InstrumentType instrumentType,
InstrumentValueType valueType) {
return new AutoValue_InstrumentDescriptor(name, description, unit, instrumentType, valueType);
}
abstract String getName();
abstract String getDescription();
abstract String getUnit();
abstract InstrumentType getInstrumentType();
abstract InstrumentValueType getValueType();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy