blob: 61e28a25e7061a021ddbcf668811189d9dc431c1 [file] [log] [blame]
Zhuoyao Zhang7b11b712024-04-24 22:58:20 +00001syntax = "proto3";
2
3package tools.asuite.tool_event_logger;
4
5message ToolEvent {
6 // Occurs immediately upon execution of the tool.
7 message InvocationStarted {
8 string command_args = 1;
9 string cwd = 2;
10 string os = 3;
11 }
12
13 // Occurs when tool exits for any reason.
14 message InvocationStopped {
15 int32 exit_code = 2;
16 string exit_log = 3;
17 }
18
19 // ------------------------
20 // FIELDS FOR ToolEvent
21 // ------------------------
22 // Random string generated to identify the invocation.
23 string invocation_id = 1;
24 // Internal user name.
25 string user_name = 2;
26 // The root of Android source.
27 string source_root = 3;
28 // Name of the tool used.
29 string tool_tag = 6;
30
31 oneof event {
32 InvocationStarted invocation_started = 4;
33 InvocationStopped invocation_stopped = 5;
34 }
35}