Package prometheus

Interface Types.MetricMetadataOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Types.MetricMetadata, Types.MetricMetadata.Builder
Enclosing class:
Types

public static interface Types.MetricMetadataOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    string help = 4;
    com.google.protobuf.ByteString
    string help = 4;
    string metric_family_name = 2;
    com.google.protobuf.ByteString
    string metric_family_name = 2;
    Represents the metric type, these match the set from Prometheus.
    int
    Represents the metric type, these match the set from Prometheus.
    string unit = 5;
    com.google.protobuf.ByteString
    string unit = 5;

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getTypeValue

      int getTypeValue()
       Represents the metric type, these match the set from Prometheus.
       Refer to github.com/prometheus/common/model/metadata.go for details.
       
      .prometheus.MetricMetadata.MetricType type = 1;
      Returns:
      The enum numeric value on the wire for type.
    • getType

       Represents the metric type, these match the set from Prometheus.
       Refer to github.com/prometheus/common/model/metadata.go for details.
       
      .prometheus.MetricMetadata.MetricType type = 1;
      Returns:
      The type.
    • getMetricFamilyName

      String getMetricFamilyName()
      string metric_family_name = 2;
      Returns:
      The metricFamilyName.
    • getMetricFamilyNameBytes

      com.google.protobuf.ByteString getMetricFamilyNameBytes()
      string metric_family_name = 2;
      Returns:
      The bytes for metricFamilyName.
    • getHelp

      String getHelp()
      string help = 4;
      Returns:
      The help.
    • getHelpBytes

      com.google.protobuf.ByteString getHelpBytes()
      string help = 4;
      Returns:
      The bytes for help.
    • getUnit

      String getUnit()
      string unit = 5;
      Returns:
      The unit.
    • getUnitBytes

      com.google.protobuf.ByteString getUnitBytes()
      string unit = 5;
      Returns:
      The bytes for unit.