Chenjie Yu | c7939cb | 2019-02-04 17:25:45 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2019 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 | */ |
| 16 | |
| 17 | syntax = "proto2"; |
| 18 | |
| 19 | package android.os.statsd; |
| 20 | option java_package = "com.android.os"; |
| 21 | option java_multiple_files = true; |
| 22 | option java_outer_classname = "ActiveConfigProto"; |
| 23 | |
| 24 | message ActiveMetric { |
| 25 | // metric id |
| 26 | optional int64 metric_id = 1; |
| 27 | // Remaining time to live in nano seconds. -1 for infinity. |
| 28 | optional int64 time_to_live_nanos = 2; |
| 29 | } |
| 30 | |
| 31 | message ActiveConfig { |
| 32 | // config id |
| 33 | optional int64 config_id = 1; |
| 34 | // config uid |
| 35 | optional int32 uid = 2; |
| 36 | // metrics |
| 37 | repeated ActiveMetric active_metric = 3; |
| 38 | } |
| 39 | |
| 40 | // all configs and their metrics on device. |
| 41 | message ActiveConfigList { |
| 42 | repeated ActiveConfig active_config = 1; |
| 43 | } |