Interface MetricOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Metric, Metric.Builder

public interface MetricOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    map<string, string> additional_tags = 30 [json_name = "additionalTags"];
    Deprecated.
    int
    map<string, string> additional_tags = 30 [json_name = "additionalTags"];
    map<string, string> additional_tags = 30 [json_name = "additionalTags"];
    map<string, string> additional_tags = 30 [json_name = "additionalTags"];
    map<string, string> additional_tags = 30 [json_name = "additionalTags"];
    string deployment_id = 7 [json_name = "deploymentId"];
    com.google.protobuf.ByteString
    string deployment_id = 7 [json_name = "deploymentId"];
    string environment_id = 2 [json_name = "environmentId"];
    com.google.protobuf.ByteString
    string environment_id = 2 [json_name = "environmentId"];
    long
    optional because we may not have an id when we're doing the initial publish
    .chalk.metrics.v4.MetricName name = 5 [json_name = "name"];
    .chalk.metrics.v4.MetricNamespace namespace = 3 [json_name = "namespace"];
    int
    .chalk.metrics.v4.MetricNamespace namespace = 3 [json_name = "namespace"];
    int
    .chalk.metrics.v4.MetricName name = 5 [json_name = "name"];
    double
    double numeric = 11 [json_name = "numeric"];
    com.google.protobuf.Timestamp
    optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];
    com.google.protobuf.TimestampOrBuilder
    optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];
    string sketch = 10 [json_name = "sketch"];
    com.google.protobuf.ByteString
    string sketch = 10 [json_name = "sketch"];
    string source = 4 [json_name = "source"];
    com.google.protobuf.ByteString
    string source = 4 [json_name = "source"];
    optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];
    optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];
    .chalk.metrics.v4.MetricType type = 6 [json_name = "type"];
    int
    .chalk.metrics.v4.MetricType type = 6 [json_name = "type"];
     
    boolean
    optional because we may not have an id when we're doing the initial publish
    boolean
    double numeric = 11 [json_name = "numeric"];
    boolean
    optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];
    boolean
    string sketch = 10 [json_name = "sketch"];
    boolean
    optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];

    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

    • hasId

      boolean hasId()
       optional because we may not have an id when we're doing the initial publish
       
      optional int64 id = 1 [json_name = "id"];
      Returns:
      Whether the id field is set.
    • getId

      long getId()
       optional because we may not have an id when we're doing the initial publish
       
      optional int64 id = 1 [json_name = "id"];
      Returns:
      The id.
    • getEnvironmentId

      String getEnvironmentId()
      string environment_id = 2 [json_name = "environmentId"];
      Returns:
      The environmentId.
    • getEnvironmentIdBytes

      com.google.protobuf.ByteString getEnvironmentIdBytes()
      string environment_id = 2 [json_name = "environmentId"];
      Returns:
      The bytes for environmentId.
    • getNamespaceValue

      int getNamespaceValue()
      .chalk.metrics.v4.MetricNamespace namespace = 3 [json_name = "namespace"];
      Returns:
      The enum numeric value on the wire for namespace.
    • getNamespace

      MetricNamespace getNamespace()
      .chalk.metrics.v4.MetricNamespace namespace = 3 [json_name = "namespace"];
      Returns:
      The namespace.
    • getSource

      String getSource()
      string source = 4 [json_name = "source"];
      Returns:
      The source.
    • getSourceBytes

      com.google.protobuf.ByteString getSourceBytes()
      string source = 4 [json_name = "source"];
      Returns:
      The bytes for source.
    • getNameValue

      int getNameValue()
      .chalk.metrics.v4.MetricName name = 5 [json_name = "name"];
      Returns:
      The enum numeric value on the wire for name.
    • getName

      MetricName getName()
      .chalk.metrics.v4.MetricName name = 5 [json_name = "name"];
      Returns:
      The name.
    • getTypeValue

      int getTypeValue()
      .chalk.metrics.v4.MetricType type = 6 [json_name = "type"];
      Returns:
      The enum numeric value on the wire for type.
    • getType

      MetricType getType()
      .chalk.metrics.v4.MetricType type = 6 [json_name = "type"];
      Returns:
      The type.
    • getDeploymentId

      String getDeploymentId()
      string deployment_id = 7 [json_name = "deploymentId"];
      Returns:
      The deploymentId.
    • getDeploymentIdBytes

      com.google.protobuf.ByteString getDeploymentIdBytes()
      string deployment_id = 7 [json_name = "deploymentId"];
      Returns:
      The bytes for deploymentId.
    • hasSketch

      boolean hasSketch()
      string sketch = 10 [json_name = "sketch"];
      Returns:
      Whether the sketch field is set.
    • getSketch

      String getSketch()
      string sketch = 10 [json_name = "sketch"];
      Returns:
      The sketch.
    • getSketchBytes

      com.google.protobuf.ByteString getSketchBytes()
      string sketch = 10 [json_name = "sketch"];
      Returns:
      The bytes for sketch.
    • hasNumeric

      boolean hasNumeric()
      double numeric = 11 [json_name = "numeric"];
      Returns:
      Whether the numeric field is set.
    • getNumeric

      double getNumeric()
      double numeric = 11 [json_name = "numeric"];
      Returns:
      The numeric.
    • hasStatistics

      boolean hasStatistics()
      optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];
      Returns:
      Whether the statistics field is set.
    • getStatistics

      MetricStatistics getStatistics()
      optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];
      Returns:
      The statistics.
    • getStatisticsOrBuilder

      MetricStatisticsOrBuilder getStatisticsOrBuilder()
      optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];
    • hasObservedAt

      boolean hasObservedAt()
      optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];
      Returns:
      Whether the observedAt field is set.
    • getObservedAt

      com.google.protobuf.Timestamp getObservedAt()
      optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];
      Returns:
      The observedAt.
    • getObservedAtOrBuilder

      com.google.protobuf.TimestampOrBuilder getObservedAtOrBuilder()
      optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];
    • getAdditionalTagsCount

      int getAdditionalTagsCount()
      map<string, string> additional_tags = 30 [json_name = "additionalTags"];
    • containsAdditionalTags

      boolean containsAdditionalTags(String key)
      map<string, string> additional_tags = 30 [json_name = "additionalTags"];
    • getAdditionalTags

      @Deprecated Map<String,String> getAdditionalTags()
      Deprecated.
    • getAdditionalTagsMap

      Map<String,String> getAdditionalTagsMap()
      map<string, string> additional_tags = 30 [json_name = "additionalTags"];
    • getAdditionalTagsOrDefault

      String getAdditionalTagsOrDefault(String key, String defaultValue)
      map<string, string> additional_tags = 30 [json_name = "additionalTags"];
    • getAdditionalTagsOrThrow

      String getAdditionalTagsOrThrow(String key)
      map<string, string> additional_tags = 30 [json_name = "additionalTags"];
    • getValueCase

      Metric.ValueCase getValueCase()