Events Match handler

class luna_events.app.handlers.events_match_handler.DescriptorData(descriptorVersion, descriptor)
descriptor

Alias for field number 1

descriptorVersion

Alias for field number 0

class luna_events.app.handlers.events_match_handler.MatcherHandler(request)

Handler releases an interface for descriptor matching in the database.

Resource: “/{api_version}/events/match”

loadJsonDescriptor()

Load descriptor from incoming JSON.

Return type

DescriptorData

Returns

tuple with descriptor version and descriptor

loadSdkDescriptor()

Load descriptor from incoming bytes in SDK format.

Return type

DescriptorData

Returns

tuple with descriptor version and descriptor

async post()

Match events. See spec_match_events.

Return type

HTTPResponse

Returns

response with events

readDescriptorData()

Load descriptor from request body.

Return type

DescriptorData

Returns

tuple with descriptor version and descriptor