summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yangster-mac <yanglu@google.com> 2018-01-18 16:40:57 -0800
committer Yangster-mac <yanglu@google.com> 2018-01-18 16:40:57 -0800
commit6622e942def136eafeeb3978d2fc62648658e285 (patch)
treec05eff2b3bf0d17ee4d3a32c041428721f27e638
parent940ba0c8fe9f24e2696f4910262be098bb152fc1 (diff)
Revert the field number change to make statsd_config proto backward-compatible.
Test: statsd unit test passed. Change-Id: I28b28c0706d35da3617ec9dba4c5bfeb2527befc
-rw-r--r--cmds/statsd/src/statsd_config.proto24
1 files changed, 12 insertions, 12 deletions
diff --git a/cmds/statsd/src/statsd_config.proto b/cmds/statsd/src/statsd_config.proto
index ae8a835f0d12..afb0bc4bcbc5 100644
--- a/cmds/statsd/src/statsd_config.proto
+++ b/cmds/statsd/src/statsd_config.proto
@@ -180,11 +180,11 @@ message CountMetric {
optional FieldMatcher dimensions_in_what = 4;
- optional FieldMatcher dimensions_in_condition = 5;
+ optional FieldMatcher dimensions_in_condition = 7;
- optional TimeUnit bucket = 6;
+ optional TimeUnit bucket = 5;
- repeated MetricConditionLink links = 7;
+ repeated MetricConditionLink links = 6;
}
message DurationMetric {
@@ -205,9 +205,9 @@ message DurationMetric {
optional FieldMatcher dimensions_in_what = 6;
- optional FieldMatcher dimensions_in_condition = 7;
+ optional FieldMatcher dimensions_in_condition = 8;
- optional TimeUnit bucket = 8;
+ optional TimeUnit bucket = 7;
}
message GaugeMetric {
@@ -221,11 +221,11 @@ message GaugeMetric {
optional FieldMatcher dimensions_in_what = 5;
- optional FieldMatcher dimensions_in_condition = 6;
+ optional FieldMatcher dimensions_in_condition = 8;
- optional TimeUnit bucket = 7;
+ optional TimeUnit bucket = 6;
- repeated MetricConditionLink links = 8;
+ repeated MetricConditionLink links = 7;
}
message ValueMetric {
@@ -239,14 +239,14 @@ message ValueMetric {
optional FieldMatcher dimensions_in_what = 5;
- optional FieldMatcher dimensions_in_condition = 6;
+ optional FieldMatcher dimensions_in_condition = 9;
- optional TimeUnit bucket = 7;
+ optional TimeUnit bucket = 6;
- repeated MetricConditionLink links = 8;
+ repeated MetricConditionLink links = 7;
enum AggregationType { SUM = 1; }
- optional AggregationType aggregation_type = 9 [default = SUM];
+ optional AggregationType aggregation_type = 8 [default = SUM];
}
message Alert {