Events
/apis/events/<assetId>
GET Method
Example
Code
OpenAPI
This endpoint returns the list of all the available event types. Note that events have to be configured into the machine-profile.json file correctly.
Sub-machine ID. If the machine for which the assetId has been specified is a multi-machine, then this field must always be specified as well.
A list of all the available event types.
Bad Request.
Unauthorized.
Forbidden.
Not Found.
Internal Server Error.
Service Unavailable.
Gateway Timeout.
POST Method
Example
Example - limit
Example - filterBy
Code
OpenAPI
This endpoint allows a user to select an event id and it returns all events of that kind. Some parameters can be specified to restrict the analysis.
Sub-machine ID. If the machine for which the assetId has been specified is a multi-machine, then this field must always be specified as well.
Unique id associated with the event type in which the user is interested. This parameter is mandatory.
1Initial moment of the interval within which the events must be returned. The timestamp must be expressed in UTC and follow the format 'YYYY-MM-DDThh:mm:ssZ'. If both "from" and "to" parameters are null, the last state will be returned.
NoneExample: 2024-04-18T10:30:00ZFinal moment of the interval within which the events must be returned. The timestamp must be expressed in UTC and follow the format 'YYYY-MM-DDThh:mm:ssZ'. The value can be omitted to default to the current timestamp.
Actual timestampExample: 2024-04-18T10:30:00ZObject indicating for each key which value is allowed. All data that do not meet this condition will not be taken into consideration. Notice that filters can only be applied to aggregator columns, i.e., those columns whose names follow the format "aggr" + number. Applying a filter to a table that doesn't have these columns will result in obtaining no data. Filters can only be applied to aggregator columns.
NoneExample: {"aggr0":"Waluigi","aggr1":"recipe1"}This field can be used instead of "from" and "to" to return the last {n} events. If a range is specified with "from" and "to", the last {n} events within the indicated range will be returned. If only "from" is specified, the last {n} rows will be returned. Specifying only "to" is not allowed. The "limit" operation has no effect if a value for the "resampleBy" field is specified, as that command takes precedence over "limit". You can use "limit" by itself, with "from", and with both "from" and "to". You can never use "limit" with only "to". It is not allowed to use the "limit" field with events of type 3 or type relative to state transitions.
nullExample: 10A list of events of the specified type.
Bad Request.
Unauthorized.
Forbidden.
Not Found.
Internal Server Error.
Service Unavailable.
Gateway Timeout.
/apis/events/<assetId>/pareto
POST Method
Example
Example - filterBy
Example - groupBy
Code
OpenAPI
This endpoint allows a user to request some events data formatted in a Pareto style. It is mandatory to specify on which kind of event and on which column the Pareto has to be constructed.
Sub-machine ID. If the machine for which the assetId has been specified is a multi-machine, then this field must always be specified as well.
Initial moment of the interval within which the events must be returned. The timestamp must be expressed in UTC and follow the format 'YYYY-MM-DDThh:mm:ssZ'. If both "from" and "to" parameters are null, the last state will be returned.
NoneExample: 2024-04-18T10:30:00ZFinal moment of the interval within which the events must be returned. The timestamp must be expressed in UTC and follow the format 'YYYY-MM-DDThh:mm:ssZ'. The value can be omitted to default to the current timestamp.
Actual timestampExample: 2024-04-18T10:30:00ZUnique id associated with the event type in which the user is interested. This parameter is mandatory.
1Name of the column belonging to the event's table that has to be used to construct the Pareto. Available values can be retrieved using the GET method of this same endpoint. This parameter is mandatory.
codeObject indicating for each key which value is allowed. All data that do not meet this condition will not be taken into consideration. Notice that filters can only be applied to aggregator columns, i.e., those columns whose names follow the format "aggr" + number. Applying a filter to a table that doesn't have these columns will result in obtaining no data. Filters can only be applied to aggregator columns.
NoneExample: {"aggr0":"Waluigi","aggr1":"recipe1"}Aggregator to be used for grouping the data. Group by can only be applied to aggregator columns.
NoneExample: aggr0A list of events data formatted in a Pareto style.
Bad Request.
Unauthorized.
Forbidden.
Not Found.
Internal Server Error.
Service Unavailable.
Gateway Timeout.
/apis/breakdowns/<assetId>
POST Method
Example
Last updated