123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package v1;
- // 用于生成指定语言go的包名称
- option go_package = "smart-government-management/pb/v1";
- message AlarmListRequest{
- int32 page = 1;
- int64 start = 2;
- int64 end = 3;
- int32 page_size = 4;
- string filter = 5;
- int32 is_handle = 6;
- int64 project_id = 7;
- int32 device_code = 8;
- }
- message AlarmItem {
- string sn = 1;
- int64 project_id = 2;
- string reason = 3;
- bool is_handled = 4;
- string time = 5;
- string name = 6;
- string type_name = 7;
- int64 id = 8;
- string project_name = 9;
- string safety_record_no = 10;
- }
- message AlarmListReply{
- int64 total = 1;
- int32 page = 2;
- int32 page_size = 3;
- repeated AlarmItem list = 4;
- bool has_more = 5;
- int64 timestamp = 6;
- }
- message AlarmHandleRequest {
- int64 id = 1;
- // true 已处理 false 未处理
- bool handle = 2;
- }
- message AlarmHandleReply {
- }
- message AlarmProjectRequest {
- }
- message AlarmProjectItem {
- int64 project_id = 1;
- // 预警总数
- int64 total = 2;
- // 处理总数
- int64 handled = 3;
- // 整改率
- string percent = 4;
- string project_name = 5;
- }
- message AlarmProjectReply {
- repeated AlarmProjectItem list = 1;
- }
- message AlarmReasonStatisticRequest {
- }
- message AlarmReasonStatisticItem {
- // 报警原因
- string reason = 1;
- // 单项报警总数
- int64 total = 2;
- // 单项处理总数
- int64 handled = 3;
- // 单项报警总数占总报警数百分比
- string total_percent = 4;
- // 单项已处理报警总数占总的已处理报警数百分比
- string handled_percent = 5;
- }
- message AlarmReasonStatisticReply {
- // 总报警数
- int64 total = 1;
- // 总处理数
- int64 handled = 2;
- repeated AlarmReasonStatisticItem list = 3;
- }
- message AlarmDeviceStatisticRequest {
- }
- message AlarmDeviceStatisticReply {
- int64 dust_alarm_count = 1;
- int64 vehicle_alarm_count = 2;
- int64 staff_alarm_count = 3;
- int64 tower_alarm_count = 4;
- int64 total_alarm_count = 5;
- }
- message AlarmIncreaseStatisticRequest {
- }
- message AlarmIncreaseStatisticReply {
- int64 day_increase = 1;
- int64 month_increase = 2;
- int64 total = 3;
- }
- message AlarmPercentStatisticRequest {
- }
- message AlarmPercentStaticticItem {
- // 这天产生的告警的处理率
- double handled_percent = 1;
- // 这天产生的告警已处理数
- int64 handled_count = 2;
- // 这天产生的占30内总告警比例
- double alarm_percent = 3;
- // 这天产生的告警
- int64 alarm_count = 4;
- string date = 5;
- }
- message AlarmPercentStatisticReply {
- int64 total = 1;
- repeated AlarmPercentStaticticItem list = 2;
- }
|