syntax = "proto3";
|
package protomsg;
|
|
import "sdk.proto";
|
import "rule.proto";
|
import "protomsg.proto";
|
|
message TaskBasicInfo {
|
string CamId = 1;
|
string CamName = 2;
|
string TaskID = 3;
|
string TaskName = 4;
|
string HandleTime = 5;
|
int64 ImageId = 6;
|
string ImageTime = 7;
|
bool IsEndRecord = 8;
|
string FileId = 9; // 数据栈中的文件id
|
}
|
|
message RuleParams {
|
string SdkArgAlias = 1;
|
string Operator = 2;
|
string OperatorType = 3;
|
string SdkArgValue = 4;
|
}
|
|
message SoRule {
|
string Id = 1;
|
string CameraId = 2;
|
string PolygonId = 3;
|
string SdkId = 4;
|
int32 Sort = 5;
|
string RuleWithPre = 6;
|
bool IsSaveAnyhow =7;
|
string GroupId = 8;
|
repeated RuleParams Params = 9;
|
}
|
|
message SoTarget {
|
Target SrcTarget = 1;
|
string AreaId = 2;
|
string AreaName = 3;
|
string BelongsTargetID = 4;
|
repeated RuleBaseCompareInfo CompDbInfo = 5;
|
int64 ImageId = 6;
|
}
|
|
message SOResult {
|
bool IsEvent = 1;
|
bool IsEndRecord = 2;
|
repeated SoTarget Targets = 3;
|
Image FirstImage = 4;
|
Image CacheImage = 5;
|
SoRule SoRule = 6;
|
GroupRule GroupRule = 7;
|
string SoType = 8;
|
}
|
|
|
|
|
message EventCache {
|
map<uint64, SoTarget> Targets = 1;
|
map<string, GroupRule> RuleGroups = 2;
|
map<int64, Image> Images = 3;
|
}
|
|
message TargetCache {
|
repeated SoTarget Target = 1;
|
map<string, GroupRule> RuleGroups = 2;
|
Image Image = 3;
|
}
|
|
message FilterResult {
|
TaskBasicInfo BaseInfo = 1;
|
map<string, EventCache> Events = 2;
|
map<string, TargetCache> Targets = 3;
|
}
|