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 optional string hostname = 7; 22 } 23 // Occurs when adevice exits for any reason 24 message AdeviceExitEvent { 25 optional Duration duration = 1; 26 optional int32 exit_code = 2; 27 optional string stacktrace = 3; 28 optional string logs = 4; 29 } 30 // Occurs when an action is performed by adevice 31 message AdeviceActionEvent { 32 optional string action = 1; 33 optional string outcome = 2; 34 repeated string file_changed = 3; 35 optional Duration duration = 4; 36 } 37 // ------------------------ 38 // FIELDS FOR ADEVICELOGEVENT 39 // ------------------------ 40 optional string user_key = 1; 41 optional string run_id = 2; 42 oneof event { 43 AdeviceStartEvent adevice_start_event = 3; 44 AdeviceExitEvent adevice_exit_event = 4; 45 AdeviceActionEvent adevice_action_event = 5; 46 } 47 optional string invocation_id = 6; 48} 49