aboutsummaryrefslogtreecommitdiff
path: root/tools/tool_event_logger/proto/tool_event.proto
blob: 61e28a25e7061a021ddbcf668811189d9dc431c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
syntax = "proto3";

package tools.asuite.tool_event_logger;

message ToolEvent {
  // Occurs immediately upon execution of the tool.
  message InvocationStarted {
    string command_args = 1;
    string cwd = 2;
    string os = 3;
  }

  // Occurs when tool exits for any reason.
  message InvocationStopped {
    int32 exit_code = 2;
    string exit_log = 3;
  }

  // ------------------------
  // FIELDS FOR ToolEvent
  // ------------------------
  // Random string generated to identify the invocation.
  string invocation_id = 1;
  // Internal user name.
  string user_name = 2;
  // The root of Android source.
  string source_root = 3;
  // Name of the tool used.
  string tool_tag = 6;

  oneof event {
    InvocationStarted invocation_started = 4;
    InvocationStopped invocation_stopped = 5;
  }
}