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 */
16
17syntax = "proto2";
18option java_multiple_files = true;
19
20package android.os;
21
22// IncidentHeaderProto contains extra information the caller of incidentd wants
23// to attach in an incident report, the data should just be informative.
24message IncidentHeaderProto {
25    // From statsd config, the id of the anomaly alert, unique among alerts.
26    optional int64 alert_id = 1;
27
28    // Format a human readable reason why an incident report is requested.
29    // It's optional and may directly come from a user input clicking the
30    // bug-report button.
31    optional string reason = 2;
32
33    // Defines which stats config used to fire the request, incident report will
34    // only be uploaded if this value is given.
35    message StatsdConfigKey {
36      optional int32 uid = 1; // The uid pushes the config to statsd.
37      optional int64 id = 2; // The unique id of the statsd config.
38    }
39    optional StatsdConfigKey config_key = 3;
40}
41