- 0 Login
- 1 System Settings
- 1.1 System Infomation
- 1.2 System Time
- 1.3 System Maintenance
- 1.4 Universal Asynchronous Receiver/Transmitter(UART)
- 1.5 General-purpose input/output(GPIO)
- 1.6 System Reboot
- 1.7 System Reset
- 1.8 System Memory
- 1.9 System Update
- 1.10 RS485
- 2 Network Settings
- 2.1 TCP/IP
- 2.2 4G Network
- 2.3 Wi-Fi Network
- 3 Platform Settings
- 4 Video Settings
- 5 Audio Settings
- 6 Intelligent Settings
- 7 Alarm Settings
- 8 Record Settings
- 9 Pan/Tilt/Zoom(PTZ) Settings
- Appendix
7.3.5 Adding Alarm Region
POST
/api/alarm/analytics
Request
Cookie Params
access_token
string
required
Default:
{{access_token}}
Body Params application/json
id
string
required
op
string
required
data
object
required
count
integer
required
vec
array [object {21}]
required
Example
{
"id": "GSF_ID_SVP_POLYGON",
"op": "G3C0S1",
"data": {
"count": 1,
"vec": [
{
"idx": -1,
"alarm_level": 9,
"alarm_labelidx": 0,
"alarm_audioidx": 7,
"alarmin_type": -1,
"alarmin_linkage": 0,
"alarmin_feedback": 0,
"alarmin_obtime": 0,
"alarm_gpionum": -1,
"alarm_gpiodur": 0,
"alarm_gpioextime": 0,
"alarm_cloud": 0,
"ref_point": 1,
"entry_type": 2,
"crowd_type": 0,
"crowd_thr": 9,
"alarm_delaytime": 0,
"alarm_tolertime": 0,
"points": {
"count": 4,
"vec": [
{
"x": 0.005000,
"y": 0.005000
},
{
"x": 0.005000,
"y": 0.995000
},
{
"x": 0.995000,
"y": 0.995000
},
{
"x": 0.995000,
"y": 0.005000
}
]
},
"osd": {
"enable": 0,
"mark_idx": 0,
"type": 0,
"color": 33488896,
"text": "",
"text2": "",
"font_color": 0,
"font_size": 0
}
}
]
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://192.168.0.168/api/alarm/analytics' \
--header 'Cookie: access_token=;access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "GSF_ID_SVP_POLYGON",
"op": "G3C0S1",
"data": {
"count": 1,
"vec": [
{
"idx": -1,
"alarm_level": 9,
"alarm_labelidx": 0,
"alarm_audioidx": 7,
"alarmin_type": -1,
"alarmin_linkage": 0,
"alarmin_feedback": 0,
"alarmin_obtime": 0,
"alarm_gpionum": -1,
"alarm_gpiodur": 0,
"alarm_gpioextime": 0,
"alarm_cloud": 0,
"ref_point": 1,
"entry_type": 2,
"crowd_type": 0,
"crowd_thr": 9,
"alarm_delaytime": 0,
"alarm_tolertime": 0,
"points": {
"count": 4,
"vec": [
{
"x": 0.005000,
"y": 0.005000
},
{
"x": 0.005000,
"y": 0.995000
},
{
"x": 0.995000,
"y": 0.995000
},
{
"x": 0.995000,
"y": 0.005000
}
]
},
"osd": {
"enable": 0,
"mark_idx": 0,
"type": 0,
"color": 33488896,
"text": "",
"text2": "",
"font_color": 0,
"font_size": 0
}
}
]
}
}'
Responses
🟢200请求成功
application/json
Body
code
integer
required
data
object
optional
Example
{
"code": 0,
"data": {}
}
Modified at 2024-12-27 09:33:05