Class InstrumentDescriptor
java.lang.Object
io.opentelemetry.sdk.metrics.internal.descriptor.InstrumentDescriptor
- Direct Known Subclasses:
AutoValue_InstrumentDescriptor
Describes an instrument that was registered to record data.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InstrumentDescriptorcreate(String name, String description, String unit, InstrumentType type, InstrumentValueType valueType, Advice advice) final booleanUses case-insensitive version ofgetName(), ignoresgetAdvice()(not part of instrument identity}, ignoresgetSourceInfo().abstract AdviceNot part of instrument identity.abstract Stringabstract StringgetName()final SourceInfoDebugging information for this instrument.abstract InstrumentTypegetType()abstract StringgetUnit()abstract InstrumentValueTypefinal inthashCode()Uses case-insensitive version ofgetName(), ignoresgetAdvice()(not part of instrument identity}, ignoresgetSourceInfo().
-
Field Details
-
sourceInfo
-
hashcode
private int hashcode
-
-
Constructor Details
-
InstrumentDescriptor
InstrumentDescriptor()
-
-
Method Details
-
create
public static InstrumentDescriptor create(String name, String description, String unit, InstrumentType type, InstrumentValueType valueType, Advice advice) -
getName
-
getDescription
-
getUnit
-
getType
-
getValueType
-
getAdvice
Not part of instrument identity. Ignored fromhashCode()andequals(Object). -
getSourceInfo
Debugging information for this instrument. Ignored fromequals(Object)andObject.toString(). -
hashCode
public final int hashCode()Uses case-insensitive version ofgetName(), ignoresgetAdvice()(not part of instrument identity}, ignoresgetSourceInfo(). -
equals
Uses case-insensitive version ofgetName(), ignoresgetAdvice()(not part of instrument identity}, ignoresgetSourceInfo().
-