Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6622e942 authored by Yangster-mac's avatar Yangster-mac
Browse files

Revert the field number change to make statsd_config proto backward-compatible.

Test: statsd unit test passed.
Change-Id: I28b28c0706d35da3617ec9dba4c5bfeb2527befc
parent 940ba0c8
Loading
Loading
Loading
Loading
+12 −12
Original line number Diff line number Diff line
@@ -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 {