The MATTR VII Analytics service allows collecting, storing and viewing analytics data from other services in the form of events. This events database can be seen as a history of all the requests made by a tenant to the platform. The events can be generated with different ranges of data, ranging from no data up to a full response being recorded.
The Analytics service uses a standard publisher-subscriber architecture. MATTR VII services create and publish events that are pushed to a queue. The Analytics service then consumes these events and stores them in a database.
The Analytics API enables you to query the database for events and retrieve their metadata and data.
You can query the database using the following parameters (
All parameters support comma separated lists):
ids: Query by event IDs. These can be retrieved from event details.
requestIds: Query by request IDs. These can be retrieved from event details. The response will include all the individual events that are part of the queried request.
categories: Query by event categories. Every category includes several event types. When both the
typesparameters are provided, the request applies an OR logic so the response will return all events that match either. Refer to Category and Type Options for an inclusive list of available categories.
types: Query by event types. Each event type is part of a category. When both the
typesparameters are provided, the request applies an OR logic so the response will return all events that match either. Refer to Category and Type Options for an inclusive list of available types.
dateTo: Query by event start and/or end date and time, in ISO-8601 format.
cursor parameters in your request to control the response pagination, as detailed in our API Reference.
All query parameters are optional. If no parameters are provided, the most recent 100 events are returned by default.
You can now refer to Query for Events to learn how to use our Analytics API to query for tenant events.