Package ai.chalk.protos.chalk.metrics.v4
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 TypeMethodDescriptionbooleanmap<string, string> additional_tags = 30 [json_name = "additionalTags"];Deprecated.intmap<string, string> additional_tags = 30 [json_name = "additionalTags"];map<string, string> additional_tags = 30 [json_name = "additionalTags"];getAdditionalTagsOrDefault(String key, String defaultValue) 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.ByteStringstring deployment_id = 7 [json_name = "deploymentId"];string environment_id = 2 [json_name = "environmentId"];com.google.protobuf.ByteStringstring environment_id = 2 [json_name = "environmentId"];longgetId()optional because we may not have an id when we're doing the initial publishgetName().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"];doubledouble numeric = 11 [json_name = "numeric"];com.google.protobuf.Timestampoptional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];com.google.protobuf.TimestampOrBuilderoptional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];string sketch = 10 [json_name = "sketch"];com.google.protobuf.ByteStringstring sketch = 10 [json_name = "sketch"];string source = 4 [json_name = "source"];com.google.protobuf.ByteStringstring 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"];getType().chalk.metrics.v4.MetricType type = 6 [json_name = "type"];int.chalk.metrics.v4.MetricType type = 6 [json_name = "type"];booleanhasId()optional because we may not have an id when we're doing the initial publishbooleandouble numeric = 11 [json_name = "numeric"];booleanoptional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];booleanstring sketch = 10 [json_name = "sketch"];booleanoptional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods 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
map<string, string> additional_tags = 30 [json_name = "additionalTags"]; -
getAdditionalTags
Deprecated.UsegetAdditionalTagsMap()instead. -
getAdditionalTagsMap
map<string, string> additional_tags = 30 [json_name = "additionalTags"]; -
getAdditionalTagsOrDefault
map<string, string> additional_tags = 30 [json_name = "additionalTags"]; -
getAdditionalTagsOrThrow
map<string, string> additional_tags = 30 [json_name = "additionalTags"]; -
getValueCase
Metric.ValueCase getValueCase()
-