.. _everest_api_error_history_consumer_API: ############################# error\_history\_consumer\_API ############################# .. container:: everest-api overview .. raw:: html
version 1.1.0AsyncAPI 3.0.0 content type application/jsonlicense Apache-2.0EVerestErrorHistory
.. container:: lead EVerest API definition for error history (consumer) API for EVerest API clients for error status and history. .. raw:: html

Specification: error_history_consumer_API.yaml · pionix:de:everest:error_history_consumer_API

send the client publishes, EVerest consumes (5) receive EVerest publishes, the client consumes (7)
Servers ======= .. container:: everest-api .. raw:: html

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 ========== .. container:: everest-api .. raw:: html
Client to EVerest ----------------- .. _everest_api_error_history_consumer_API_op_send_request_get_errors: send\_request\_get\_errors ~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send request with a list of filters to get a list of filtered errors
Topic
everest_api/1/error_history_consumer/{module_id}/m2e/get_errors
Reply
Sent to $message.header#/replyTo as receive_reply_get_errors.
Direction: Module to EVerest .. raw:: html
Message Request the list of filtered errors application/json

Message send_request_get_errors

Request the list of filtered errors.

Payload

object
  • 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

    Definition of FilterArguments

Example

Minimal payload generated from the schema generated
{
        "payload": {}
      }
.. _everest_api_error_history_consumer_API_op_send_request_active_errors: send\_request\_active\_errors ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send request to transmit the list of currently active errors
Topic
everest_api/1/error_history_consumer/{module_id}/m2e/active_errors
Reply
Sent to $message.header#/replyTo as receive_reply_active_errors.
Direction: Module to EVerest .. raw:: html
Message Request the list of active errors application/json

Message send_request_active_errors

Request the list of active errors.

Payload

object
  • 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

Request active errors
{
        "headers": {
          "replyTo": "everest_api/1/{interface_type}/{module_id}/e2m/{operation_name}/{uuid}"
        }
      }
.. _everest_api_error_history_consumer_API_op_send_request_get_error_raised: send\_request\_get\_error\_raised ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Request raised errors
Topic
everest_api/1/error_history_consumer/{module_id}/m2e/error_raised/get
Reply
Sent to $message.header#/replyTo as 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. .. raw:: html
Message Request current raised errors application/json

Message send_request_get_error_raised

Request the most recently published (latched) raised errors.

Payload

object
  • 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

Example 1
{
        "headers": {
          "replyTo": "everest_api/1/{interface_type}/{module_id}/e2m/{operation_name}/{uuid}"
        }
      }
.. _everest_api_error_history_consumer_API_op_send_request_get_error_cleared: send\_request\_get\_error\_cleared ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Request cleared errors
Topic
everest_api/1/error_history_consumer/{module_id}/m2e/error_cleared/get
Reply
Sent to $message.header#/replyTo as 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. .. raw:: html
Message Request current cleared errors application/json

Message send_request_get_error_raised

Request the most recently published (latched) cleared errors.

Payload

object
  • 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

Example 1
{
        "headers": {
          "replyTo": "everest_api/1/{interface_type}/{module_id}/e2m/{operation_name}/{uuid}"
        }
      }
.. _everest_api_error_history_consumer_API_op_send_communication_check: send\_communication\_check ~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send communication check
Topic
everest_api/1/error_history_consumer/{module_id}/m2e/communication_check
.. raw:: html
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

CommunicationCheck
true
EVerest to client ----------------- .. _everest_api_error_history_consumer_API_op_receive_reply_get_errors: receive\_reply\_get\_errors ~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive reply with a list of filtered errors
Topic
Dynamic: the replyTo address from the request's headers. Answers send_request_get_errors.
Direction: EVerest to Module .. raw:: html
Message List of filtered errors application/json

Message receive_reply_get_errors

Reply to the request to send the list of filtered errors

Payload

object ErrorList

A list of ErrorObjects

Definition of ErrorList

Example

Minimal payload generated from the schema generated
{
        "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_error_history_consumer_API_op_receive_reply_active_errors: receive\_reply\_active\_errors ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive reply to transmit the list of currently active errors
Topic
Dynamic: the replyTo address from the request's headers. Answers send_request_active_errors.
Direction: EVerest to Module .. raw:: html
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

object ErrorList

A list of ErrorObjects

Definition of ErrorList

Example

Minimal payload generated from the schema generated
{
        "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_error_history_consumer_API_op_receive_error_raised: receive\_error\_raised ~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive newly raised error
Topic
everest_api/1/error_history_consumer/{module_id}/e2m/error_raised
.. raw:: html
Message Receive newly raised error application/json

Message receive_error_raised

Notifies on every raised error

Payload

object ErrorObject

Represents an error

Definition of ErrorObject

Example

Minimal payload generated from the schema generated
{
        "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_error_history_consumer_API_op_receive_reply_get_error_raised: receive\_reply\_get\_error\_raised ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Reply to get error raised request
Topic
Dynamic: the replyTo address from the request's headers. Answers send_request_get_error_raised.
.. raw:: html
Message Reply to get raised error request application/json

Message receive_reply_get_error_raised

The most recently published raised errors.

Payload

oneOf

Exactly one of:

Example

Minimal payload generated from the schema generated
{
        "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_error_history_consumer_API_op_receive_error_cleared: receive\_error\_cleared ~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive newly cleared error
Topic
everest_api/1/error_history_consumer/{module_id}/e2m/error_cleared
.. raw:: html
Message Receive cleared error application/json

Message receive_error_cleared

Notifies when an error is cleared

Payload

object ErrorObject

Represents an error

Definition of ErrorObject

Example

Minimal payload generated from the schema generated
{
        "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_error_history_consumer_API_op_receive_reply_get_error_cleared: receive\_reply\_get\_error\_cleared ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Reply to get error cleared request
Topic
Dynamic: the replyTo address from the request's headers. Answers send_request_get_error_cleared.
.. raw:: html
Message Reply to get cleared error request application/json

Message receive_reply_get_error_cleared

The most recently published cleared errors.

Payload

oneOf

Exactly one of:

Example

Minimal payload generated from the schema generated
{
        "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_error_history_consumer_API_op_receive_heartbeat: receive\_heartbeat ~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive heartbeat
Topic
everest_api/1/error_history_consumer/{module_id}/e2m/heartbeat
.. raw:: html
Message Receive heartbeat application/json

Message receive_heartbeat

Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration

Payload

integer HeartBeatId

64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached

Example

Heartbeat
42
Messages ======== .. container:: everest-api .. raw:: html
MessageSummaryUsed by
send_request_get_errors
Request the list of filtered errors

Request the list of filtered errors.

send_request_get_errors
receive_reply_get_errors
List of filtered errors

Reply to the request to send the list of filtered errors

receive_reply_get_errors
send_request_active_errors
Request the list of active errors

Request the list of active errors.

send_request_active_errors
receive_reply_active_errors
The list of active errors

Reply to the request to send the list of active errors

receive_reply_active_errors
receive_error_raised
Receive newly raised error

Notifies on every raised error

receive_error_raised
send_request_get_error_raised
Request current raised errors

Request the most recently published (latched) raised errors.

send_request_get_error_raised
receive_reply_get_error_raised
Reply to get raised error request

The most recently published raised errors.

receive_reply_get_error_raised
receive_error_cleared
Receive cleared error

Notifies when an error is cleared

receive_error_cleared
send_request_get_error_raised
Request current cleared errors

Request the most recently published (latched) cleared errors.

send_request_get_error_cleared
receive_reply_get_error_cleared
Reply to get cleared error request

The most recently published cleared errors.

receive_reply_get_error_cleared
receive_heartbeat
Receive heartbeat

Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration

receive_heartbeat
send_communication_check
Send communication check

Signal to EVerest that communication is good or check shall be stopped

send_communication_check
Schemas ======= .. container:: everest-api .. raw:: html
ErrorList object
object

A list of ErrorObjects

Additional properties allowed.

ErrorObject object
object

Represents an error

Additional properties allowed.

FilterArguments object
object

Arguments for the get_errors command

Additional properties allowed.

ImplementationIdentifier object
object

Identifier of an implementation

Additional properties allowed.

Severity string
string

Severity of an error. Deprecated: will be removed in 2027.04.0.

enumHighMediumLow
SeverityFilter string
string

Severity filter for errors. Deprecated: will be removed in 2027.04.0.

enumHIGH_GEMEDIUM_GELOW_GE
State string
string

State of an error

enumActiveClearedByModuleClearedByReboot
TimeperiodFilter object
object

Timeperiod filter for errors

Additional properties allowed.

CommunicationCheck boolean
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
integer

64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached