error_history_consumer_API¶
EVerest API definition for error history (consumer)
API for EVerest API clients for error status and history.
Specification: error_history_consumer_API.yaml · pionix:de:everest:error_history_consumer_API
Servers¶
default mqtt
default local MQTT
- Host
localhost:1883- Topic prefix
everest_api/1/error_history_consumer/{module_id}{module_id}The ID of the module as defined in the EVerest config file.
Operations¶
Client to EVerest¶
send_request_get_errors¶
- Topic
everest_api/1/error_history_consumer/{module_id}/m2e/get_errors- Reply
- Sent to
$message.header#/replyToas receive_reply_get_errors.
Direction: Module to EVerest
Message Request the list of filtered errors application/json
Message send_request_get_errors
Request the list of filtered errors.
Payload
-
headersobject
-
replyTostring
Address to send the response to. Omit it to discard the response. An invalid address, see the EVerest API explanation, rejects the request.
min length 1
-
-
payloadobject requiredFilterArguments
Arguments for the get_errors command
Example
{
"payload": {}
}
send_request_active_errors¶
- Topic
everest_api/1/error_history_consumer/{module_id}/m2e/active_errors- Reply
- Sent to
$message.header#/replyToas receive_reply_active_errors.
Direction: Module to EVerest
Message Request the list of active errors application/json
Message send_request_active_errors
Request the list of active errors.
Payload
-
headersobject
-
replyTostring
Address to send the response to. Omit it to discard the response. An invalid address, see the EVerest API explanation, rejects the request.
min length 1
-
Example
{
"headers": {
"replyTo": "everest_api/1/{interface_type}/{module_id}/e2m/{operation_name}/{uuid}"
}
}
send_request_get_error_raised¶
- Topic
everest_api/1/error_history_consumer/{module_id}/m2e/error_raised/get- Reply
- Sent to
$message.header#/replyToas receive_reply_get_error_raised.
Request the most recently published (latched) error raised. The reply will be sent to the replyTo address specified in the message headers. If no latched value is available yet, a null payload will be sent.
Message Request current raised errors application/json
Message send_request_get_error_raised
Request the most recently published (latched) raised errors.
Payload
-
headersobject
-
replyTostring
Address to send the response to. Omit it to discard the response. An invalid address, see the EVerest API explanation, rejects the request.
min length 1
-
Example
{
"headers": {
"replyTo": "everest_api/1/{interface_type}/{module_id}/e2m/{operation_name}/{uuid}"
}
}
send_request_get_error_cleared¶
- Topic
everest_api/1/error_history_consumer/{module_id}/m2e/error_cleared/get- Reply
- Sent to
$message.header#/replyToas receive_reply_get_error_cleared.
Request the most recently published (latched) error cleared. The reply will be sent to the replyTo address specified in the message headers. If no latched value is available yet, a null payload will be sent.
Message Request current cleared errors application/json
Message send_request_get_error_raised
Request the most recently published (latched) cleared errors.
Payload
-
headersobject
-
replyTostring
Address to send the response to. Omit it to discard the response. An invalid address, see the EVerest API explanation, rejects the request.
min length 1
-
Example
{
"headers": {
"replyTo": "everest_api/1/{interface_type}/{module_id}/e2m/{operation_name}/{uuid}"
}
}
send_communication_check¶
- Topic
everest_api/1/error_history_consumer/{module_id}/m2e/communication_check
Message Send communication check application/json
Message 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
EVerest to client¶
receive_reply_get_errors¶
- Topic
- Dynamic: the
replyToaddress from the request's headers. Answers send_request_get_errors.
Direction: EVerest to Module
Message List of filtered errors application/json
Message 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"
}
]
}
receive_reply_active_errors¶
- Topic
- Dynamic: the
replyToaddress from the request's headers. Answers send_request_active_errors.
Direction: EVerest to Module
Message The list of active errors application/json
Message 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"
}
]
}
receive_error_raised¶
- Topic
everest_api/1/error_history_consumer/{module_id}/e2m/error_raised
Message Receive newly raised error application/json
Message 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"
}
receive_reply_get_error_raised¶
- Topic
- Dynamic: the
replyToaddress from the request's headers. Answers send_request_get_error_raised.
Message Reply to get raised error request application/json
Message 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"
}
receive_error_cleared¶
- Topic
everest_api/1/error_history_consumer/{module_id}/e2m/error_cleared
Message Receive cleared error application/json
Message 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"
}
receive_reply_get_error_cleared¶
- Topic
- Dynamic: the
replyToaddress from the request's headers. Answers send_request_get_error_cleared.
Message Reply to get cleared error request application/json
Message 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"
}
receive_heartbeat¶
- Topic
everest_api/1/error_history_consumer/{module_id}/e2m/heartbeat
Message Receive heartbeat application/json
Message 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
Messages¶
Schemas¶
ErrorList object¶
A list of ErrorObjects
Additional properties allowed.
-
errorsarray required
ErrorObject object¶
Represents an error
Additional properties allowed.
-
typestring requiredmin length 2
-
sub_typestring
-
descriptionstring required
Description of the error type from its definition in the errors YAML files.
min length 2 -
messagestring required
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.
enumHighMediumLow -
originobject requiredImplementationIdentifier
Identifier of an implementation
-
timestampstring required
Time the error was raised in RFC3339 format
format date-time -
uuidstring requiredmin length 2
FilterArguments object¶
Arguments for the get_errors command
Additional properties allowed.
-
origin_filterobject ImplementationIdentifier
Identifier of an implementation
-
type_filterstring
-
Deprecated: will be removed in 2027.04.0. EVerest defines no clear semantics for error severity.
enumHIGH_GEMEDIUM_GELOW_GE -
handle_filterstring
Handle of an error
ImplementationIdentifier object¶
Identifier of an implementation
Additional properties allowed.
-
module_idstring requiredmin length 2
-
implementation_idstring requiredmin length 2
Severity string¶
Severity of an error. Deprecated: will be removed in 2027.04.0.
HighMediumLowSeverityFilter string¶
Severity filter for errors. Deprecated: will be removed in 2027.04.0.
HIGH_GEMEDIUM_GELOW_GEState string¶
State of an error
ActiveClearedByModuleClearedByRebootTimeperiodFilter object¶
Timeperiod filter for errors
Additional properties allowed.
-
timestamp_fromstring required
Start of the time period in RFC3339 format, inclusive
format date-time -
timestamp_tostring required
End of the time period in RFC3339 format, inclusive
format date-time
CommunicationCheck boolean¶
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.
HeartBeatId integer¶
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached