Zhuoyao Zhang | 7b11b71 | 2024-04-24 22:58:20 +0000 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
| 3 | package tools.asuite.tool_event_logger; |
| 4 | |
| 5 | message 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 Zhang | d067588 | 2024-06-21 20:47:57 +0000 | [diff] [blame] | 30 | // Name of the host workstation. |
| 31 | string host_name = 7; |
Zhuoyao Zhang | 7b11b71 | 2024-04-24 22:58:20 +0000 | [diff] [blame] | 32 | |
| 33 | oneof event { |
| 34 | InvocationStarted invocation_started = 4; |
| 35 | InvocationStopped invocation_stopped = 5; |
| 36 | } |
| 37 | } |