Yao Chen | ab273e2 | 2017-09-06 12:53:50 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
Stefan Lafon | cdb1a0e | 2017-09-27 20:24:15 -0700 | [diff] [blame] | 16 | |
Yao Chen | ab273e2 | 2017-09-06 12:53:50 -0700 | [diff] [blame] | 17 | syntax = "proto2"; |
| 18 | |
| 19 | package android.os.statsd; |
| 20 | |
Yao Chen | ab273e2 | 2017-09-06 12:53:50 -0700 | [diff] [blame] | 21 | option java_package = "com.android.os"; |
| 22 | option java_outer_classname = "StatsLog"; |
| 23 | |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 24 | import "frameworks/base/cmds/statsd/src/atoms.proto"; |
Yao Chen | ab273e2 | 2017-09-06 12:53:50 -0700 | [diff] [blame] | 25 | |
Yangster-mac | 2087716 | 2017-12-22 17:19:39 -0800 | [diff] [blame] | 26 | message DimensionsValue { |
| 27 | optional int32 field = 1; |
Yao Chen | ab273e2 | 2017-09-06 12:53:50 -0700 | [diff] [blame] | 28 | |
yro | 00698da | 2017-09-15 10:06:40 -0700 | [diff] [blame] | 29 | oneof value { |
| 30 | string value_str = 2; |
Chenjie Yu | d9dfda7 | 2017-12-11 17:41:20 -0800 | [diff] [blame] | 31 | int32 value_int = 3; |
| 32 | int64 value_long = 4; |
| 33 | bool value_bool = 5; |
| 34 | float value_float = 6; |
Yangster-mac | 2087716 | 2017-12-22 17:19:39 -0800 | [diff] [blame] | 35 | DimensionsValueTuple value_tuple = 7; |
Yangster-mac | 9def8e3 | 2018-04-17 13:55:51 -0700 | [diff] [blame] | 36 | uint64 value_str_hash = 8; |
Yao Chen | ab273e2 | 2017-09-06 12:53:50 -0700 | [diff] [blame] | 37 | } |
Yao Chen | ab273e2 | 2017-09-06 12:53:50 -0700 | [diff] [blame] | 38 | } |
| 39 | |
Yangster-mac | 2087716 | 2017-12-22 17:19:39 -0800 | [diff] [blame] | 40 | message DimensionsValueTuple { |
| 41 | repeated DimensionsValue dimensions_value = 1; |
| 42 | } |
| 43 | |
yro | 00698da | 2017-09-15 10:06:40 -0700 | [diff] [blame] | 44 | message EventMetricData { |
Yangster-mac | 330af58 | 2018-02-08 15:24:38 -0800 | [diff] [blame] | 45 | optional int64 elapsed_timestamp_nanos = 1; |
yro | 00698da | 2017-09-15 10:06:40 -0700 | [diff] [blame] | 46 | |
Stefan Lafon | ae2df01 | 2017-11-14 09:17:21 -0800 | [diff] [blame] | 47 | optional Atom atom = 2; |
Yangster-mac | 330af58 | 2018-02-08 15:24:38 -0800 | [diff] [blame] | 48 | |
Yangster-mac | 3fa5d7f | 2018-03-10 21:50:27 -0800 | [diff] [blame] | 49 | optional int64 wall_clock_timestamp_nanos = 3; |
yro | 00698da | 2017-09-15 10:06:40 -0700 | [diff] [blame] | 50 | } |
| 51 | |
| 52 | message CountBucketInfo { |
Yangster-mac | 330af58 | 2018-02-08 15:24:38 -0800 | [diff] [blame] | 53 | optional int64 start_bucket_elapsed_nanos = 1; |
yro | 00698da | 2017-09-15 10:06:40 -0700 | [diff] [blame] | 54 | |
Yangster-mac | 330af58 | 2018-02-08 15:24:38 -0800 | [diff] [blame] | 55 | optional int64 end_bucket_elapsed_nanos = 2; |
yro | 00698da | 2017-09-15 10:06:40 -0700 | [diff] [blame] | 56 | |
| 57 | optional int64 count = 3; |
Yangster-mac | 9def8e3 | 2018-04-17 13:55:51 -0700 | [diff] [blame] | 58 | |
| 59 | optional int64 bucket_num = 4; |
| 60 | |
| 61 | optional int64 start_bucket_elapsed_millis = 5; |
| 62 | |
| 63 | optional int64 end_bucket_elapsed_millis = 6; |
yro | 00698da | 2017-09-15 10:06:40 -0700 | [diff] [blame] | 64 | } |
| 65 | |
| 66 | message CountMetricData { |
Yangster-mac | 468ff04 | 2018-01-17 12:26:34 -0800 | [diff] [blame] | 67 | optional DimensionsValue dimensions_in_what = 1; |
| 68 | |
Yangster-mac | 16fc72f | 2018-01-18 13:18:01 -0800 | [diff] [blame] | 69 | optional DimensionsValue dimensions_in_condition = 2; |
yro | 00698da | 2017-09-15 10:06:40 -0700 | [diff] [blame] | 70 | |
Yangster-mac | 16fc72f | 2018-01-18 13:18:01 -0800 | [diff] [blame] | 71 | repeated CountBucketInfo bucket_info = 3; |
Yangster-mac | 9def8e3 | 2018-04-17 13:55:51 -0700 | [diff] [blame] | 72 | |
| 73 | repeated DimensionsValue dimension_leaf_values_in_what = 4; |
| 74 | |
| 75 | repeated DimensionsValue dimension_leaf_values_in_condition = 5; |
yro | 00698da | 2017-09-15 10:06:40 -0700 | [diff] [blame] | 76 | } |
| 77 | |
Yao Chen | caf339d | 2017-10-06 16:01:10 -0700 | [diff] [blame] | 78 | message DurationBucketInfo { |
Yangster-mac | 330af58 | 2018-02-08 15:24:38 -0800 | [diff] [blame] | 79 | optional int64 start_bucket_elapsed_nanos = 1; |
Yao Chen | caf339d | 2017-10-06 16:01:10 -0700 | [diff] [blame] | 80 | |
Yangster-mac | 330af58 | 2018-02-08 15:24:38 -0800 | [diff] [blame] | 81 | optional int64 end_bucket_elapsed_nanos = 2; |
Yao Chen | caf339d | 2017-10-06 16:01:10 -0700 | [diff] [blame] | 82 | |
| 83 | optional int64 duration_nanos = 3; |
Yangster-mac | 9def8e3 | 2018-04-17 13:55:51 -0700 | [diff] [blame] | 84 | |
| 85 | optional int64 bucket_num = 4; |
| 86 | |
| 87 | optional int64 start_bucket_elapsed_millis = 5; |
| 88 | |
| 89 | optional int64 end_bucket_elapsed_millis = 6; |
Yao Chen | caf339d | 2017-10-06 16:01:10 -0700 | [diff] [blame] | 90 | } |
| 91 | |
| 92 | message DurationMetricData { |
Yangster-mac | 468ff04 | 2018-01-17 12:26:34 -0800 | [diff] [blame] | 93 | optional DimensionsValue dimensions_in_what = 1; |
| 94 | |
Yangster-mac | 16fc72f | 2018-01-18 13:18:01 -0800 | [diff] [blame] | 95 | optional DimensionsValue dimensions_in_condition = 2; |
Yao Chen | caf339d | 2017-10-06 16:01:10 -0700 | [diff] [blame] | 96 | |
Yangster-mac | 16fc72f | 2018-01-18 13:18:01 -0800 | [diff] [blame] | 97 | repeated DurationBucketInfo bucket_info = 3; |
Yangster-mac | 9def8e3 | 2018-04-17 13:55:51 -0700 | [diff] [blame] | 98 | |
| 99 | repeated DimensionsValue dimension_leaf_values_in_what = 4; |
| 100 | |
| 101 | repeated DimensionsValue dimension_leaf_values_in_condition = 5; |
Yao Chen | caf339d | 2017-10-06 16:01:10 -0700 | [diff] [blame] | 102 | } |
| 103 | |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 104 | message ValueBucketInfo { |
Yangster-mac | 330af58 | 2018-02-08 15:24:38 -0800 | [diff] [blame] | 105 | optional int64 start_bucket_elapsed_nanos = 1; |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 106 | |
Yangster-mac | 330af58 | 2018-02-08 15:24:38 -0800 | [diff] [blame] | 107 | optional int64 end_bucket_elapsed_nanos = 2; |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 108 | |
| 109 | optional int64 value = 3; |
Yangster-mac | 9def8e3 | 2018-04-17 13:55:51 -0700 | [diff] [blame] | 110 | |
| 111 | optional int64 bucket_num = 4; |
| 112 | |
| 113 | optional int64 start_bucket_elapsed_millis = 5; |
| 114 | |
| 115 | optional int64 end_bucket_elapsed_millis = 6; |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 116 | } |
| 117 | |
| 118 | message ValueMetricData { |
Yangster-mac | 468ff04 | 2018-01-17 12:26:34 -0800 | [diff] [blame] | 119 | optional DimensionsValue dimensions_in_what = 1; |
| 120 | |
Yangster-mac | 16fc72f | 2018-01-18 13:18:01 -0800 | [diff] [blame] | 121 | optional DimensionsValue dimensions_in_condition = 2; |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 122 | |
Yangster-mac | 16fc72f | 2018-01-18 13:18:01 -0800 | [diff] [blame] | 123 | repeated ValueBucketInfo bucket_info = 3; |
Yangster-mac | 9def8e3 | 2018-04-17 13:55:51 -0700 | [diff] [blame] | 124 | |
| 125 | repeated DimensionsValue dimension_leaf_values_in_what = 4; |
| 126 | |
| 127 | repeated DimensionsValue dimension_leaf_values_in_condition = 5; |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 128 | } |
| 129 | |
| 130 | message GaugeBucketInfo { |
Yangster-mac | 15f6bbc | 2018-04-08 11:52:26 -0700 | [diff] [blame] | 131 | optional int64 start_bucket_elapsed_nanos = 1; |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 132 | |
Yangster-mac | 15f6bbc | 2018-04-08 11:52:26 -0700 | [diff] [blame] | 133 | optional int64 end_bucket_elapsed_nanos = 2; |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 134 | |
Yangster-mac | 34ea110 | 2018-01-29 12:40:55 -0800 | [diff] [blame] | 135 | repeated Atom atom = 3; |
| 136 | |
Yangster-mac | 330af58 | 2018-02-08 15:24:38 -0800 | [diff] [blame] | 137 | repeated int64 elapsed_timestamp_nanos = 4; |
Yangster-mac | 3fa5d7f | 2018-03-10 21:50:27 -0800 | [diff] [blame] | 138 | |
| 139 | repeated int64 wall_clock_timestamp_nanos = 5; |
Yangster-mac | 9def8e3 | 2018-04-17 13:55:51 -0700 | [diff] [blame] | 140 | |
| 141 | optional int64 bucket_num = 6; |
| 142 | |
| 143 | optional int64 start_bucket_elapsed_millis = 7; |
| 144 | |
| 145 | optional int64 end_bucket_elapsed_millis = 8; |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 146 | } |
| 147 | |
| 148 | message GaugeMetricData { |
Yangster-mac | 468ff04 | 2018-01-17 12:26:34 -0800 | [diff] [blame] | 149 | optional DimensionsValue dimensions_in_what = 1; |
| 150 | |
Yangster-mac | 16fc72f | 2018-01-18 13:18:01 -0800 | [diff] [blame] | 151 | optional DimensionsValue dimensions_in_condition = 2; |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 152 | |
Yangster-mac | 16fc72f | 2018-01-18 13:18:01 -0800 | [diff] [blame] | 153 | repeated GaugeBucketInfo bucket_info = 3; |
Yangster-mac | 9def8e3 | 2018-04-17 13:55:51 -0700 | [diff] [blame] | 154 | |
| 155 | repeated DimensionsValue dimension_leaf_values_in_what = 4; |
| 156 | |
| 157 | repeated DimensionsValue dimension_leaf_values_in_condition = 5; |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 158 | } |
| 159 | |
yro | 00698da | 2017-09-15 10:06:40 -0700 | [diff] [blame] | 160 | message StatsLogReport { |
Yangster-mac | 94e197c | 2018-01-02 16:03:03 -0800 | [diff] [blame] | 161 | optional int64 metric_id = 1; |
Yao Chen | ab273e2 | 2017-09-06 12:53:50 -0700 | [diff] [blame] | 162 | |
David Chen | 1604957 | 2018-02-01 18:27:51 -0800 | [diff] [blame] | 163 | // Fields 2 and 3 are reserved. |
yro | 00698da | 2017-09-15 10:06:40 -0700 | [diff] [blame] | 164 | |
David Chen | 81245fd | 2018-04-12 14:33:37 -0700 | [diff] [blame] | 165 | message SkippedBuckets { |
Yangster-mac | 9def8e3 | 2018-04-17 13:55:51 -0700 | [diff] [blame] | 166 | optional int64 start_bucket_elapsed_nanos = 1; |
| 167 | optional int64 end_bucket_elapsed_nanos = 2; |
| 168 | optional int64 start_bucket_elapsed_millis = 3; |
| 169 | optional int64 end_bucket_elapsed_millis = 4; |
David Chen | 81245fd | 2018-04-12 14:33:37 -0700 | [diff] [blame] | 170 | } |
| 171 | |
yro | 00698da | 2017-09-15 10:06:40 -0700 | [diff] [blame] | 172 | message EventMetricDataWrapper { |
| 173 | repeated EventMetricData data = 1; |
| 174 | } |
| 175 | message CountMetricDataWrapper { |
| 176 | repeated CountMetricData data = 1; |
| 177 | } |
Yao Chen | caf339d | 2017-10-06 16:01:10 -0700 | [diff] [blame] | 178 | message DurationMetricDataWrapper { |
Yao Chen | 729093d | 2017-10-16 10:33:26 -0700 | [diff] [blame] | 179 | repeated DurationMetricData data = 1; |
Yao Chen | caf339d | 2017-10-06 16:01:10 -0700 | [diff] [blame] | 180 | } |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 181 | message ValueMetricDataWrapper { |
| 182 | repeated ValueMetricData data = 1; |
David Chen | 81245fd | 2018-04-12 14:33:37 -0700 | [diff] [blame] | 183 | repeated SkippedBuckets skipped = 2; |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 184 | } |
Chenjie Yu | b3dda41 | 2017-10-24 13:41:59 -0700 | [diff] [blame] | 185 | |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 186 | message GaugeMetricDataWrapper { |
| 187 | repeated GaugeMetricData data = 1; |
David Chen | 81245fd | 2018-04-12 14:33:37 -0700 | [diff] [blame] | 188 | repeated SkippedBuckets skipped = 2; |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 189 | } |
Chenjie Yu | b3dda41 | 2017-10-24 13:41:59 -0700 | [diff] [blame] | 190 | |
yro | 00698da | 2017-09-15 10:06:40 -0700 | [diff] [blame] | 191 | oneof data { |
| 192 | EventMetricDataWrapper event_metrics = 4; |
| 193 | CountMetricDataWrapper count_metrics = 5; |
Yao Chen | caf339d | 2017-10-06 16:01:10 -0700 | [diff] [blame] | 194 | DurationMetricDataWrapper duration_metrics = 6; |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 195 | ValueMetricDataWrapper value_metrics = 7; |
| 196 | GaugeMetricDataWrapper gauge_metrics = 8; |
yro | 00698da | 2017-09-15 10:06:40 -0700 | [diff] [blame] | 197 | } |
Yangster-mac | 9def8e3 | 2018-04-17 13:55:51 -0700 | [diff] [blame] | 198 | |
| 199 | optional int64 time_base_elapsed_nano_seconds = 9; |
| 200 | |
| 201 | optional int64 bucket_size_nano_seconds = 10; |
| 202 | |
| 203 | optional DimensionsValue dimensions_path_in_what = 11; |
| 204 | |
| 205 | optional DimensionsValue dimensions_path_in_condition = 12; |
Yao Chen | ab273e2 | 2017-09-06 12:53:50 -0700 | [diff] [blame] | 206 | } |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 207 | |
David Chen | f384b90 | 2018-03-14 18:36:45 -0700 | [diff] [blame] | 208 | message UidMapping { |
| 209 | message PackageInfoSnapshot { |
| 210 | message PackageInfo { |
| 211 | optional string name = 1; |
| 212 | |
| 213 | optional int64 version = 2; |
| 214 | |
| 215 | optional int32 uid = 3; |
David Chen | bd12527 | 2018-04-04 19:02:50 -0700 | [diff] [blame] | 216 | |
| 217 | optional bool deleted = 4; |
Yangster-mac | 9def8e3 | 2018-04-17 13:55:51 -0700 | [diff] [blame] | 218 | |
| 219 | optional uint64 name_hash = 5; |
David Chen | f384b90 | 2018-03-14 18:36:45 -0700 | [diff] [blame] | 220 | } |
| 221 | optional int64 elapsed_timestamp_nanos = 1; |
| 222 | |
| 223 | repeated PackageInfo package_info = 2; |
| 224 | } |
| 225 | repeated PackageInfoSnapshot snapshots = 1; |
| 226 | |
| 227 | message Change { |
| 228 | optional bool deletion = 1; |
| 229 | |
| 230 | optional int64 elapsed_timestamp_nanos = 2; |
| 231 | optional string app = 3; |
| 232 | optional int32 uid = 4; |
| 233 | |
David Chen | bd12527 | 2018-04-04 19:02:50 -0700 | [diff] [blame] | 234 | optional int64 new_version = 5; |
| 235 | optional int64 prev_version = 6; |
Yangster-mac | 9def8e3 | 2018-04-17 13:55:51 -0700 | [diff] [blame] | 236 | optional uint64 app_hash = 7; |
David Chen | f384b90 | 2018-03-14 18:36:45 -0700 | [diff] [blame] | 237 | } |
| 238 | repeated Change changes = 2; |
| 239 | } |
| 240 | |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 241 | message ConfigMetricsReport { |
yro | 947fbce | 2017-11-15 22:50:23 -0800 | [diff] [blame] | 242 | repeated StatsLogReport metrics = 1; |
| 243 | |
| 244 | optional UidMapping uid_map = 2; |
David Chen | 1604957 | 2018-02-01 18:27:51 -0800 | [diff] [blame] | 245 | |
Yangster-mac | 330af58 | 2018-02-08 15:24:38 -0800 | [diff] [blame] | 246 | optional int64 last_report_elapsed_nanos = 3; |
David Chen | 1604957 | 2018-02-01 18:27:51 -0800 | [diff] [blame] | 247 | |
Yangster-mac | 330af58 | 2018-02-08 15:24:38 -0800 | [diff] [blame] | 248 | optional int64 current_report_elapsed_nanos = 4; |
Yangster-mac | 3fa5d7f | 2018-03-10 21:50:27 -0800 | [diff] [blame] | 249 | |
| 250 | optional int64 last_report_wall_clock_nanos = 5; |
| 251 | |
| 252 | optional int64 current_report_wall_clock_nanos = 6; |
David Chen | faa1af5 | 2018-03-30 15:14:04 -0700 | [diff] [blame] | 253 | |
Yangster-mac | 9def8e3 | 2018-04-17 13:55:51 -0700 | [diff] [blame] | 254 | message Annotation { |
| 255 | optional int64 field_int64 = 1; |
| 256 | optional int32 field_int32 = 2; |
| 257 | } |
| 258 | repeated Annotation annotation = 7; |
| 259 | |
Chenjie Yu | e36018b | 2018-04-16 15:18:30 -0700 | [diff] [blame] | 260 | enum DumpReportReason { |
| 261 | DEVICE_SHUTDOWN = 1; |
| 262 | CONFIG_UPDATED = 2; |
| 263 | CONFIG_REMOVED = 3; |
| 264 | GET_DATA_CALLED = 4; |
| 265 | ADB_DUMP = 5; |
| 266 | CONFIG_RESET = 6; |
| 267 | STATSCOMPANION_DIED = 7; |
Yang Lu | 658bc0e | 2018-10-19 09:03:51 -0700 | [diff] [blame] | 268 | TERMINATION_SIGNAL_RECEIVED = 8; |
Chenjie Yu | e36018b | 2018-04-16 15:18:30 -0700 | [diff] [blame] | 269 | } |
| 270 | optional DumpReportReason dump_report_reason = 8; |
| 271 | |
Yangster-mac | 9def8e3 | 2018-04-17 13:55:51 -0700 | [diff] [blame] | 272 | repeated string strings = 9; |
yro | 947fbce | 2017-11-15 22:50:23 -0800 | [diff] [blame] | 273 | } |
| 274 | |
| 275 | message ConfigMetricsReportList { |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 276 | message ConfigKey { |
| 277 | optional int32 uid = 1; |
Yangster-mac | 94e197c | 2018-01-02 16:03:03 -0800 | [diff] [blame] | 278 | optional int64 id = 2; |
Yangster | fa28aec | 2017-10-30 10:29:52 -0700 | [diff] [blame] | 279 | } |
| 280 | optional ConfigKey config_key = 1; |
| 281 | |
yro | 947fbce | 2017-11-15 22:50:23 -0800 | [diff] [blame] | 282 | repeated ConfigMetricsReport reports = 2; |
Chenjie Yu | e36018b | 2018-04-16 15:18:30 -0700 | [diff] [blame] | 283 | |
| 284 | reserved 10; |
Yangster-mac | 932ecec | 2018-02-01 10:23:52 -0800 | [diff] [blame] | 285 | } |
Yao Chen | 20e9e62 | 2018-02-28 11:18:51 -0800 | [diff] [blame] | 286 | |
| 287 | message StatsdStatsReport { |
| 288 | optional int32 stats_begin_time_sec = 1; |
| 289 | |
| 290 | optional int32 stats_end_time_sec = 2; |
| 291 | |
| 292 | message MatcherStats { |
| 293 | optional int64 id = 1; |
| 294 | optional int32 matched_times = 2; |
| 295 | } |
| 296 | |
| 297 | message ConditionStats { |
| 298 | optional int64 id = 1; |
| 299 | optional int32 max_tuple_counts = 2; |
| 300 | } |
| 301 | |
| 302 | message MetricStats { |
| 303 | optional int64 id = 1; |
| 304 | optional int32 max_tuple_counts = 2; |
| 305 | } |
| 306 | |
| 307 | message AlertStats { |
| 308 | optional int64 id = 1; |
| 309 | optional int32 alerted_times = 2; |
| 310 | } |
| 311 | |
| 312 | message ConfigStats { |
| 313 | optional int32 uid = 1; |
| 314 | optional int64 id = 2; |
| 315 | optional int32 creation_time_sec = 3; |
| 316 | optional int32 deletion_time_sec = 4; |
Yangster-mac | b142cc8 | 2018-03-30 15:22:08 -0700 | [diff] [blame] | 317 | optional int32 reset_time_sec = 19; |
Yao Chen | 20e9e62 | 2018-02-28 11:18:51 -0800 | [diff] [blame] | 318 | optional int32 metric_count = 5; |
| 319 | optional int32 condition_count = 6; |
| 320 | optional int32 matcher_count = 7; |
| 321 | optional int32 alert_count = 8; |
| 322 | optional bool is_valid = 9; |
Yao Chen | 20e9e62 | 2018-02-28 11:18:51 -0800 | [diff] [blame] | 323 | repeated int32 broadcast_sent_time_sec = 10; |
| 324 | repeated int32 data_drop_time_sec = 11; |
| 325 | repeated int32 dump_report_time_sec = 12; |
Yangster-mac | e68f3a5 | 2018-04-04 00:01:43 -0700 | [diff] [blame] | 326 | repeated int32 dump_report_data_size = 20; |
Yao Chen | 20e9e62 | 2018-02-28 11:18:51 -0800 | [diff] [blame] | 327 | repeated MatcherStats matcher_stats = 13; |
| 328 | repeated ConditionStats condition_stats = 14; |
| 329 | repeated MetricStats metric_stats = 15; |
| 330 | repeated AlertStats alert_stats = 16; |
Yangster-mac | 306ccc2 | 2018-03-24 15:03:40 -0700 | [diff] [blame] | 331 | repeated MetricStats metric_dimension_in_condition_stats = 17; |
David Chen | faa1af5 | 2018-03-30 15:14:04 -0700 | [diff] [blame] | 332 | message Annotation { |
| 333 | optional int64 field_int64 = 1; |
| 334 | optional int32 field_int32 = 2; |
| 335 | } |
| 336 | repeated Annotation annotation = 18; |
Yao Chen | 20e9e62 | 2018-02-28 11:18:51 -0800 | [diff] [blame] | 337 | } |
| 338 | |
| 339 | repeated ConfigStats config_stats = 3; |
| 340 | |
| 341 | message AtomStats { |
| 342 | optional int32 tag = 1; |
| 343 | optional int32 count = 2; |
| 344 | } |
| 345 | |
| 346 | repeated AtomStats atom_stats = 7; |
| 347 | |
| 348 | message UidMapStats { |
David Chen | bd12527 | 2018-04-04 19:02:50 -0700 | [diff] [blame] | 349 | optional int32 changes = 1; |
| 350 | optional int32 bytes_used = 2; |
| 351 | optional int32 dropped_changes = 3; |
| 352 | optional int32 deleted_apps = 4; |
Yao Chen | 20e9e62 | 2018-02-28 11:18:51 -0800 | [diff] [blame] | 353 | } |
| 354 | optional UidMapStats uidmap_stats = 8; |
| 355 | |
| 356 | message AnomalyAlarmStats { |
| 357 | optional int32 alarms_registered = 1; |
| 358 | } |
| 359 | optional AnomalyAlarmStats anomaly_alarm_stats = 9; |
| 360 | |
| 361 | message PulledAtomStats { |
| 362 | optional int32 atom_id = 1; |
| 363 | optional int64 total_pull = 2; |
| 364 | optional int64 total_pull_from_cache = 3; |
| 365 | optional int64 min_pull_interval_sec = 4; |
| 366 | } |
| 367 | repeated PulledAtomStats pulled_atom_stats = 10; |
| 368 | |
| 369 | message LoggerErrorStats { |
| 370 | optional int32 logger_disconnection_sec = 1; |
| 371 | optional int32 error_code = 2; |
| 372 | } |
| 373 | repeated LoggerErrorStats logger_error_stats = 11; |
Yangster-mac | b8382a1 | 2018-04-04 10:39:12 -0700 | [diff] [blame] | 374 | |
| 375 | message PeriodicAlarmStats { |
| 376 | optional int32 alarms_registered = 1; |
| 377 | } |
| 378 | optional PeriodicAlarmStats periodic_alarm_stats = 12; |
| 379 | |
| 380 | message SkippedLogEventStats { |
| 381 | optional int32 tag = 1; |
| 382 | optional int64 elapsed_timestamp_nanos = 2; |
| 383 | } |
| 384 | repeated SkippedLogEventStats skipped_log_event_stats = 13; |
Yao Chen | 163d260 | 2018-04-10 10:39:53 -0700 | [diff] [blame] | 385 | |
| 386 | repeated int64 log_loss_stats = 14; |
Yangster-mac | 892f3d3 | 2018-05-02 14:16:48 -0700 | [diff] [blame] | 387 | |
| 388 | repeated int32 system_restart_sec = 15; |
Yao Chen | 20e9e62 | 2018-02-28 11:18:51 -0800 | [diff] [blame] | 389 | } |