Class InstrumentDescriptor
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.internal.descriptor.InstrumentDescriptor
-
- Direct Known Subclasses:
AutoValue_InstrumentDescriptor
@Immutable public abstract class InstrumentDescriptor extends java.lang.ObjectDescribes 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 Modifier and Type Field Description private inthashcodeprivate SourceInfosourceInfo
-
Constructor Summary
Constructors Constructor Description InstrumentDescriptor()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static InstrumentDescriptorcreate(java.lang.String name, java.lang.String description, java.lang.String unit, InstrumentType type, InstrumentValueType valueType, Advice advice)booleanequals(java.lang.Object o)Uses case-insensitive version ofgetName(), ignoresgetAdvice()(not part of instrument identity}, ignoresgetSourceInfo().abstract AdvicegetAdvice()Not part of instrument identity.abstract java.lang.StringgetDescription()abstract java.lang.StringgetName()SourceInfogetSourceInfo()Debugging information for this instrument.abstract InstrumentTypegetType()abstract java.lang.StringgetUnit()abstract InstrumentValueTypegetValueType()inthashCode()Uses case-insensitive version ofgetName(), ignoresgetAdvice()(not part of instrument identity}, ignoresgetSourceInfo().
-
-
-
Field Detail
-
sourceInfo
private final SourceInfo sourceInfo
-
hashcode
private int hashcode
-
-
Method Detail
-
create
public static InstrumentDescriptor create(java.lang.String name, java.lang.String description, java.lang.String unit, InstrumentType type, InstrumentValueType valueType, Advice advice)
-
getName
public abstract java.lang.String getName()
-
getDescription
public abstract java.lang.String getDescription()
-
getUnit
public abstract java.lang.String getUnit()
-
getType
public abstract InstrumentType getType()
-
getValueType
public abstract InstrumentValueType getValueType()
-
getAdvice
public abstract Advice getAdvice()
Not part of instrument identity. Ignored fromhashCode()andequals(Object).
-
getSourceInfo
public final SourceInfo 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().- Overrides:
hashCodein classjava.lang.Object
-
equals
public final boolean equals(java.lang.Object o)
Uses case-insensitive version ofgetName(), ignoresgetAdvice()(not part of instrument identity}, ignoresgetSourceInfo().- Overrides:
equalsin classjava.lang.Object
-
-