blob: ef71eac49e15e52cf40b36b07176349a27951368 [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;
Zhuoyao Zhangd0675882024-06-21 20:47:57 +000030 // Name of the host workstation.
31 string host_name = 7;
Zhuoyao Zhang7b11b712024-04-24 22:58:20 +000032
33 oneof event {
34 InvocationStarted invocation_started = 4;
35 InvocationStopped invocation_stopped = 5;
36 }
37}