Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If descending = false, then the events in the response will be sorted by time in ascending order. If descending = true, then the events will be sorted in descending order.

limit - the  the limit of events in the response.

...

The following parameters can be set as a filter:

  • type -  type of event; the actual types of events are given in the axxonsoft\bl\events.proto file;
  • subjects -  subject of event (server, device, archive, detector, etc.);
  • values -  exact value of event;
  • texts -  brief description of event.

...

Code Block
{
    "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
    }
}

Get events from events from all domain LPR detection tools

...

Info
titleNote

If an operator’s comment was specified for the alarm, it will be in the response with the frame coordinates.

Get alerts by filter

Alarms start time on a specific camera

Code Block
{
    "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
    }
}

...

If you subscribe, you will be notified as events occur.

Subscription to LPR to LPR detection tool events

Code Block
{
    "method": "axxonsoft.bl.events.DomainNotifier.PullEvents",
    "data": {
        "subscription_id": "a000ed13-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 

  • subscription_id  − subscription ID (set arbitrarily in UUID format; mandatory parameter).
  • event_type - event – event type (optional parameter).
  • subject - subject – subject of the event (detectors in this example; optional parameter).

...

Code Block
{
    "method": "axxonsoft.bl.events.DomainNotifier.DisconnectEventChannel",
    "data": {
        "subscription_id": "a003ed13-3b8f-4cef-a450-0199dc259w37"
    }
}


Info
titleNote

The value of the  subscription_id  field should be equal in all requests.