1syntax = "proto2"; 2 3message Duration { 4 required int64 seconds = 1; 5 required int32 nanos = 2; 6} 7 8// Proto used by Adevice Tool for Users 9message AdeviceLogEvent { 10 // ------------------------ 11 // EVENT DEFINITIONS 12 // ------------------------ 13 // Occurs immediately upon execution of adevice 14 message AdeviceStartEvent { 15 optional string command_line = 1; 16 repeated string test_references = 2; 17 optional string cwd = 3; 18 optional string os = 4; 19 optional string target = 5; 20 optional string source_root = 6; 21 } 22 // Occurs when adevice exits for any reason 23 message AdeviceExitEvent { 24 optional Duration duration = 1; 25 optional int32 exit_code = 2; 26 optional string stacktrace = 3; 27 optional string logs = 4; 28 } 29 // Occurs when an action is performed by adevice 30 message AdeviceActionEvent { 31 optional string action = 1; 32 optional string outcome = 2; 33 repeated string file_changed = 3; 34 optional Duration duration = 4; 35 } 36 // ------------------------ 37 // FIELDS FOR ADEVICELOGEVENT 38 // ------------------------ 39 optional string user_key = 1; 40 optional string run_id = 2; 41 oneof event { 42 AdeviceStartEvent adevice_start_event = 3; 43 AdeviceExitEvent adevice_exit_event = 4; 44 AdeviceActionEvent adevice_action_event = 5; 45 } 46 optional string invocation_id = 6; 47} 48