This repository was archived by the owner on Oct 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
opencensus/proto/stats/metrics Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,12 +83,11 @@ message MetricDescriptor {
8383// A collection of data points that describes the time-varying values
8484// of a metric.
8585message TimeSeries {
86- // TODO: Wrap values to distinguish between empty-string and unset.
8786 // TODO: Add restrictions for characters that can be used for keys and values.
8887 // The set of label values that uniquely identify this timeseries. Apply to all
8988 // points. The order of label values must match that of label keys in the
9089 // metric descriptor.
91- repeated string label_values = 1 ;
90+ repeated LabelValue label_values = 1 ;
9291
9392 // The data points of this timeseries. Point type MUST match the MetricDescriptor.type, so for
9493 // a CUMULATIVE type only cumulative_points are present and for a GAUGE type only gauge_points
@@ -97,6 +96,13 @@ message TimeSeries {
9796 repeated CumulativePoint cumulative_points = 3 ;
9897}
9998
99+ message LabelValue {
100+ // The value for the label.
101+ string value = 1 ;
102+ // If false the value field is ignored and considered not set.
103+ bool has_value = 2 ;
104+ }
105+
100106// An instantaneous measurement of a value.
101107message GaugePoint {
102108 // The moment when this gauge point was recorded.
You can’t perform that action at this time.
0 commit comments