blob: 0e9ee03dd2cb8d08d53d7ad7f77be24b94f62576 [file] [log] [blame]
Chenjie Yuc7939cb2019-02-04 17:25:45 -08001/*
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
17syntax = "proto2";
18
19package android.os.statsd;
20option java_package = "com.android.os";
21option java_multiple_files = true;
22option java_outer_classname = "ActiveConfigProto";
23
24message 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
31message 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.
41message ActiveConfigList {
42 repeated ActiveConfig active_config = 1;
43}