.. _everest_api_error_history_consumer_API: ############################# error\_history\_consumer\_API ############################# .. container:: everest-api overview .. raw:: html
.. container:: lead EVerest API definition for error history (consumer) API for EVerest API clients for error status and history. .. raw:: htmlSpecification: error_history_consumer_API.yaml · pionix:de:everest:error_history_consumer_API
default mqtt
default local MQTT
localhost:1883everest_api/1/error_history_consumer/{module_id}{module_id}The ID of the module as defined in the EVerest config file.
everest_api/1/error_history_consumer/{module_id}/m2e/get_errors$message.header#/replyTo as receive_reply_get_errors.application/jsonMessage send_request_get_errors
Request the list of filtered errors.
Payload
Address to send the response to. Omit it to discard the response. An invalid address, see the EVerest API explanation, rejects the request.
Arguments for the get_errors command
Example
{
"payload": {}
}
everest_api/1/error_history_consumer/{module_id}/m2e/active_errors$message.header#/replyTo as receive_reply_active_errors.application/jsonMessage send_request_active_errors
Request the list of active errors.
Payload
Address to send the response to. Omit it to discard the response. An invalid address, see the EVerest API explanation, rejects the request.
Example
{
"headers": {
"replyTo": "everest_api/1/{interface_type}/{module_id}/e2m/{operation_name}/{uuid}"
}
}
everest_api/1/error_history_consumer/{module_id}/m2e/error_raised/get$message.header#/replyTo as receive_reply_get_error_raised.application/jsonMessage send_request_get_error_raised
Request the most recently published (latched) raised errors.
Payload
Address to send the response to. Omit it to discard the response. An invalid address, see the EVerest API explanation, rejects the request.
Example
{
"headers": {
"replyTo": "everest_api/1/{interface_type}/{module_id}/e2m/{operation_name}/{uuid}"
}
}
everest_api/1/error_history_consumer/{module_id}/m2e/error_cleared/get$message.header#/replyTo as receive_reply_get_error_cleared.application/jsonMessage send_request_get_error_raised
Request the most recently published (latched) cleared errors.
Payload
Address to send the response to. Omit it to discard the response. An invalid address, see the EVerest API explanation, rejects the request.
Example
{
"headers": {
"replyTo": "everest_api/1/{interface_type}/{module_id}/e2m/{operation_name}/{uuid}"
}
}
everest_api/1/error_history_consumer/{module_id}/m2e/communication_checkapplication/jsonMessage send_communication_check
Signal to EVerest that communication is good or check shall be stopped
Payload
Send true at least every cfg_communication_check_to_s seconds to signal that the client is alive, otherwise EVerest raises a CommunicationFault, which the next message clears. Send false to stop the check until the module restarts.
Example
true
replyTo address from the request's headers.
Answers send_request_get_errors.application/jsonMessage receive_reply_get_errors
Reply to the request to send the list of filtered errors
Payload
Example
{
"errors": [
{
"type": "string",
"description": "string",
"message": "string",
"severity": "High",
"origin": {
"module_id": "string",
"implementation_id": "string"
},
"timestamp": "2019-08-24T14:15:22Z",
"uuid": "string",
"state": "Active"
}
]
}
replyTo address from the request's headers.
Answers send_request_active_errors.application/jsonMessage receive_reply_active_errors
Reply to the request to send the list of active errors
Payload
Example
{
"errors": [
{
"type": "string",
"description": "string",
"message": "string",
"severity": "High",
"origin": {
"module_id": "string",
"implementation_id": "string"
},
"timestamp": "2019-08-24T14:15:22Z",
"uuid": "string",
"state": "Active"
}
]
}
everest_api/1/error_history_consumer/{module_id}/e2m/error_raisedapplication/jsonMessage receive_error_raised
Notifies on every raised error
Payload
Example
{
"type": "string",
"description": "string",
"message": "string",
"severity": "High",
"origin": {
"module_id": "string",
"implementation_id": "string"
},
"timestamp": "2019-08-24T14:15:22Z",
"uuid": "string",
"state": "Active"
}
replyTo address from the request's headers.
Answers send_request_get_error_raised.application/jsonMessage receive_reply_get_error_raised
The most recently published raised errors.
Payload
Example
{
"type": "string",
"description": "string",
"message": "string",
"severity": "High",
"origin": {
"module_id": "string",
"implementation_id": "string"
},
"timestamp": "2019-08-24T14:15:22Z",
"uuid": "string",
"state": "Active"
}
everest_api/1/error_history_consumer/{module_id}/e2m/error_clearedapplication/jsonMessage receive_error_cleared
Notifies when an error is cleared
Payload
Example
{
"type": "string",
"description": "string",
"message": "string",
"severity": "High",
"origin": {
"module_id": "string",
"implementation_id": "string"
},
"timestamp": "2019-08-24T14:15:22Z",
"uuid": "string",
"state": "Active"
}
replyTo address from the request's headers.
Answers send_request_get_error_cleared.application/jsonMessage receive_reply_get_error_cleared
The most recently published cleared errors.
Payload
Example
{
"type": "string",
"description": "string",
"message": "string",
"severity": "High",
"origin": {
"module_id": "string",
"implementation_id": "string"
},
"timestamp": "2019-08-24T14:15:22Z",
"uuid": "string",
"state": "Active"
}
everest_api/1/error_history_consumer/{module_id}/e2m/heartbeatapplication/jsonMessage receive_heartbeat
Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration
Payload
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached
Example
42
A list of ErrorObjects
Additional properties allowed.
Represents an error
Additional properties allowed.
Description of the error type from its definition in the errors YAML files.
Free text chosen by the raiser of the error; empty if it gave none.
Deprecated: will be removed in 2027.04.0. EVerest defines no clear semantics for error severity.
HighMediumLowIdentifier of an implementation
Time the error was raised in RFC3339 format
Arguments for the get_errors command
Additional properties allowed.
Identifier of an implementation
Deprecated: will be removed in 2027.04.0. EVerest defines no clear semantics for error severity.
HIGH_GEMEDIUM_GELOW_GEHandle of an error
Identifier of an implementation
Additional properties allowed.
Severity of an error. Deprecated: will be removed in 2027.04.0.
HighMediumLowSeverity filter for errors. Deprecated: will be removed in 2027.04.0.
HIGH_GEMEDIUM_GELOW_GEState of an error
ActiveClearedByModuleClearedByRebootTimeperiod filter for errors
Additional properties allowed.
Start of the time period in RFC3339 format, inclusive
End of the time period in RFC3339 format, inclusive
Send true at least every cfg_communication_check_to_s seconds to signal that the client is alive, otherwise EVerest raises a CommunicationFault, which the next message clears. Send false to stop the check until the module restarts.
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached