Metric: Add LabelKey type that has key and description. (#57)

pull/59/merge
Yang Song 7 years ago committed by GitHub
parent 562994bff2
commit ab82e5fdec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      opencensus/proto/stats/metrics/metrics.proto

@ -75,9 +75,17 @@ message MetricDescriptor {
}
Type type = 4;
// TODO: Consider to add LabelInfo{key, description} if needed.
// The label keys associated with the metric descriptor.
repeated string label_keys = 5;
repeated LabelKey label_keys = 5;
}
// Defines a label key associated with a metric descriptor.
message LabelKey {
// The key for the label.
string key = 1;
// A human-readable description of what this label key represents.
string description = 2;
}
// A collection of data points that describes the time-varying values

Loading…
Cancel
Save