매크로 구성은 LogicService.proto 파일에 설명되어 있습니다.
각 매크로는 다음으로 구성됩니다:
mode는 일반 정보를 포함합니다:
time_zone − 매크로가 시간에 따라 실행되어야 하는 경우의 시간대 ID
"time_zone": {
"timezone_id": "6fb68cf4-ca6a-46a1-b2e3-ab4cfdaa0444"
} |
자동 규칙
자동 규칙 실행을 위한 일반 정보를 포함합니다.
|
지속적인 매크로
지속적인 매크로 실행을 위한 일반적인 정보는 다음과 같습니다.
|
다음 옵션을 사용할 수 있습니다(이벤트 기반 매크로에 대한 필터 설정, 통계 데이터 기반 매크로 트리거 참조)
detector
"detector": {
"event_type": "sitDown",
"source_ap": "hosts/Server1/HumanBoneDetector.1/EventSupplier",
"state": "BEGAN",
"details": []
} |
timezone
"timezone": {
"timezone_id": "6fb68cf4-ca6a-46a1-b2e3-ab4cfdaa0444",
"boundary_case": "TB_BEGINING"
} |
alert
"alert": {
"zone_ap": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0",
"alert_case": "AC_ALERT_DANGEROUS"
} |
device
"device": {
"device": "hosts/Server1/DeviceIpint.69",
"state": "IPDS_CONNECTED",
"threshold": 0
} |
archive_write
"archive_write": {
"camera": "hosts/Server1/DeviceIpint.28/SourceEndpoint.video:0:0",
"state": "ON"
} |
relay
"relay": {
"relay": "hosts/Server1/DeviceIpint.10/StateControl.relay0:0",
"state": "ON"
} |
volume_health
"volume_health": {
"storage": "hosts/Server1/MultimediaStorage.AliceBlue/MultimediaStorage",
"volume": "",
"health": "VH_CORRUPTED"
} |
server_state
observer − 매크로가 실행되는 서버 subject − 상태를 받아야 하는 서버
|
text
이벤트 소스 객체가 생성되어야 합니다 (Event source object 참조).
|
arm
카메라 활성화
|
recognition
"recognition": {
"camera": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
"list": "797703ea-6917-4341-888b-b6f0579f5d91",
"type": "DT_Plate",
"objects": [
"53502573-a985-4198-a5b6-69db476cc755"
]
} |
statistics
"statistics": {
"point": "archive_usage",
"item": "hosts/Server1/MultimediaStorage.AntiqueWhite/MultimediaStorage",
"value": 100,
"delta": 0,
"trend": "ET_RISING"
} |
규칙에는 매크로에서 실행되어야 하는 작업이 포함됩니다 (작업에 대한 특정 설정 참조).
action
"action": {
"timeout_ms": 0,
"cancel_conditions": {},
"action": {
"goto_ptz": {
"telemetry": "hosts/Server1/DeviceIpint.71/TelemetryControl.0",
"preset_number": 1,
"speed": 1
}
}
} |
wait
"wait": {
"timeout_ms": 30000,
"cancel_conditions": {
"0": {
"path": "/E:0/C:0",
"server_state": {
"observer": "Server1",
"subject": "Server2",
"state": "SS_ONLINE"
}
}
}, |
timeout
"timeout": {
"timeout_ms": 5000
} |
check
"check": {
"check": {
"camera": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
"archive": "hosts/Server1/MultimediaStorage.AntiqueWhite/MultimediaStorage",
"depth_ms": 60000,
"type": "CT_CHECK_RECORD_SAFETY"
},
"success_rules": {},
"failure_rules": {}
} |