log_process.proto 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. syntax = "proto2";
  2. package message;
  3. import "message_base.proto";
  4. import "parkspace_allocation_message.proto"; //数据库消息
  5. import "measure_message.proto"; //测量消息
  6. import "dispatch_message.proto"; //调度消息
  7. import "central_control_message.proto"; //手动操作消息
  8. //与节点通讯数据,请求反馈数据
  9. message Node_log
  10. {
  11. oneof request{
  12. Parkspace_allocation_request_msg alloc_request=1;
  13. Parkspace_search_request_msg search_request=3;
  14. Parkspace_release_request_msg release_request=5;
  15. Parkspace_confirm_alloc_request_msg confirm_request=7;
  16. Measure_request_msg measure_request=9;
  17. Dispatch_request_msg dispatch_request=11;
  18. }
  19. oneof response{
  20. Parkspace_allocation_response_msg alloc_response=2;
  21. Parkspace_search_response_msg search_response=4;
  22. Parkspace_release_response_msg release_response=6;
  23. Parkspace_confirm_alloc_response_msg confirm_response=8;
  24. Measure_response_msg measure_response=10;
  25. Dispatch_response_msg dispatch_response=12;
  26. }
  27. optional string description=13;
  28. }
  29. //手动操作数据
  30. message Manual_operation_log
  31. {
  32. required Process_manual_operation_msg manual_operation=1;
  33. optional string description=2;
  34. }
  35. message Log_data
  36. {
  37. enum Severity
  38. {
  39. INFO=0;
  40. WARNING=1;
  41. ERROR=2;
  42. }
  43. required Severity log_severity=1;
  44. oneof data {
  45. string str_log=2;
  46. Node_log node_log=3;
  47. Manual_operation_log manual_operator_log=4;
  48. }
  49. }
  50. message Process_log
  51. {
  52. required Process_type process_type=1;
  53. repeated Log_data log_data=2;
  54. }