Events handlers

Get events and get events stats handlers.

class luna_api.app.handlers.events_handler.EventHandler(*args, **kwargs)[source]

Get event. See spec_event.

Resource: “/{api_version}/events”

class luna_api.app.handlers.events_handler.EventsHandler(*args, **kwargs)[source]

Get events. See spec_events.

Resource: “/{api_version}/events”

async get()[source]

Proxy request with GET method to luna-events. See spec_get_events.

Returns:

response from luna-events service

Return type:

HTTPResponse

class luna_api.app.handlers.events_handler.EventsStatsHandler(*args, **kwargs)[source]

Get events stats.

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

async post()[source]

Send request with POST method to luna-events. See spec_event_stats.

Returns:

response from luna-events service

Return type:

HTTPResponse