{
"method": "axxonsoft.bl.events.EventHistoryService.ReadEvents",
"data": {
"range": {
"begin_time": "20200225T125548.340",
"end_time": "20200225T130548.341"
},
"limit": 30,
"offset": 0,
"descending": false
}
} |
where:
The following parameters can be set as a filter:
{
"method": "axxonsoft.bl.events.EventHistoryService.ReadEvents",
"data": {
"range": {
"begin_time": "20200225T152806.572",
"end_time": "20200225T153806.572"
},
"filters": {
"filters": [
{
"type": "ET_IpDeviceStateChangedEvent",
"subjects": "hosts/Server1/DeviceIpint.10"
}
]
},
"limit": 300,
"offset": 0,
"descending": false
}
} |
{
"method": "axxonsoft.bl.events.EventHistoryService.ReadEvents",
"data": {
"range": {
"begin_time": "20200226T074425.274",
"end_time": "20200226T075425.274"
},
"filters": {
"filters": [
{
"type": "ET_IpDeviceStateChangedEvent",
"values": "IPDS_DISCONNECTED"
}
]
},
"limit": 300,
"offset": 0,
"descending": false
}
} |
{
"method": "axxonsoft.bl.events.EventHistoryService.ReadEvents",
"data": {
"range": {
"begin_time": "20211020T120000.000",
"end_time": "20211020T200000.000"
},
"filters": {
"filters": [
{
"type": "ET_DetectorEvent",
"values": "DG_LPR_DETECTOR"
}
]
},
"limit": 10000,
"descending": true
}
} |
The subject and the text of event are specified in filter.
{
"method": "axxonsoft.bl.events.EventHistoryService.ReadTextEvents",
"data": {
"range": {
"begin_time": "20231030T014305.137",
"end_time": "20231030T232305.137"
},
"filters": {
"filters": [
{
"subjects": "hosts/Server/DeviceIpint.7/SourceEndpoint.video:0:0",
"filter_containing_text_parts": false,
"texts": "FOOD"
}
]
},
"limit":10,
"offset":0,
"descending": false
}
} |
where:
{
"method": "axxonsoft.bl.events.EventHistoryService.ReadAlerts",
"data": {
"range": {
"begin_time": "20200225T150142.437",
"end_time": "20200225T151142.437"
},
"limit":100,
"offset":0,
"descending": false
}
} |
If an operator’s comment was specified for the alarm, it will be in the response with the frame coordinates. |
{
"method": "axxonsoft.bl.events.EventHistoryService.ReadAlerts",
"data": {
"range": {
"begin_time": "20200225T150845.757",
"end_time": "20200225T151845.758"
},
"filters": {
"filters": [
{
"subjects": "hosts/Server1/DeviceIpint.7/SourceEndpoint.video:0:0",
"values": "BEGAN"
}
]
},
"limit":100,
"offset":0,
"descending": false
}
} |
{
"method": "axxonsoft.bl.events.EventHistoryService.ReadLprEvents",
"data": {
"range": {
"begin_time": "20200226T104305.137",
"end_time": "20200226T105305.137"
},
"filters": {
"filters": [
{
"subjects": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
"values":"Н829МУ777"
}
]
},
"limit":50,
"offset":0,
"descending": false
}
} |
{
"method": "axxonsoft.bl.events.EventHistoryService.ReadLprEvents",
"data": {
"range": {
"begin_time": "20200226T104305.137",
"end_time": "20200226T105305.137"
},
"filters": {
"filters": [
{
"subjects": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0"
}
]
},
"limit":50,
"offset":0,
"search_predicate":"*82*",
"descending": false
}
} |
If you subscribe, you will be notified as events occur.
{
"method": "axxonsoft.bl.events.DomainNotifier.PullEvents",
"data": {
"subscription_id": "a003ed13-3b8f-4cef-a450-0199dc259w37",
"filters": {
"include": [{
"event_type":"ET_DetectorEvent",
"subject":"hosts/Server1/AVDetector.1/EventSupplier"
},
{
"event_type":"ET_DetectorEvent",
"subject":"hosts/Server1/AVDetector.2/EventSupplier"
},
{
"event_type":"ET_DetectorEvent",
"subject":"hosts/Server2/AVDetector.1/EventSupplier"
}
]
}
}
} |
where:
To receive events using a subscription, do the following:
The request body with the DisconnectEventChannel method:
{
"method": "axxonsoft.bl.events.DomainNotifier.DisconnectEventChannel",
"data": {
"subscription_id": "a003ed13-3b8f-4cef-a450-0199dc259w37"
}
} |
The value of the subscription_id field should be equal in all requests. |
{
"method": "axxonsoft.bl.events.DomainNotifier.PullEvents",
"data": {
"subscription_id": "a003ed13-3b8f-4cef-a450-0199dc259w37",
"filters": {
"include": {
"event_type": "ET_DetectorEvent",
"subject" : "hosts/A-BUDNIKOV/DeviceIpint.1/SourceEndpoint.video:0:0"
}
}
}
} |
where:
The response will contain an event, and the event fields will contain information about the number of objects:
"details": [
{
"lots_objects": {
"object_count": 3
}
}
], |
where:
{
"method": "axxonsoft.bl.events.DomainNotifier.PullEvents",
"data": {
"subscription_id": "a001ed13-3b8f-4cef-a450-0199dc259w37",
"filters": {
"include": {
"event_type": "ET_ObjectActivatedEvent",
"subject": ""
}
}
}
} |
where:
The response will contain an event, and the event fields will contain information about the state of objects within the entire time since they were added to the system:
{
"event_type": "ET_ObjectActivatedEvent",
"subject": "",
"body": {
"@type": "type.googleapis.com/axxonsoft.bl.events.ObjectActivatedEvent",
"guid": "88c930c5-89a7-4382-a004-119a8ea56c78",
"is_activated": true,
"timestamp": "20221003T065757.170118",
"object_id_ext": {
"access_point": "hosts/SERVER1/DeviceIpint.1/SourceEndpoint.audio:0",
"friendly_name": "Camera"
}, |
where:
{
"method": "axxonsoft.bl.events.DomainNotifier.PullEvents",
"data": {
"subscription_id": "a003ed13-3b8f-4cef-a450-0199dc259h35",
"filters": {
"include": [{
"event_type":"ET_TextEvent",
"subject":"hosts/Server/DeviceIpint.7/SourceEndpoint.video:0:0"
}
]
}
}
} |
where: