error_history_consumer_API

version 1.1.0AsyncAPI 3.0.0 content type application/jsonlicense Apache-2.0EVerestErrorHistory

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

send the client publishes, EVerest consumes (5) receive EVerest publishes, the client consumes (7)

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

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

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": {}
}

send_request_active_errors

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

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}"
  }
}

send_request_get_error_raised

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.

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}"
  }
}

send_request_get_error_cleared

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.

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}"
  }
}

send_communication_check

send 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

CommunicationCheck
true

EVerest to client

receive_reply_get_errors

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

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"
    }
  ]
}

receive_reply_active_errors

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

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"
    }
  ]
}

receive_error_raised

receive Receive newly raised error
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

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"
}

receive_reply_get_error_raised

receive Reply to get error raised request
Topic
Dynamic: the replyTo address 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

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"
}

receive_error_cleared

receive Receive newly cleared error
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

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"
}

receive_reply_get_error_cleared

receive Reply to get error cleared request
Topic
Dynamic: the replyTo address 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

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"
}

receive_heartbeat

receive 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

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

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

ErrorList object
object

A list of ErrorObjects

Additional properties allowed.

ErrorObject object
object

Represents an error

Additional properties allowed.

  • typestring required
    min 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.

  • severitystring requiredSeverity

    Deprecated: will be removed in 2027.04.0. EVerest defines no clear semantics for error severity.

    enumHighMediumLow
  • originobject requiredImplementationIdentifier

    Identifier of an implementation

    Definition of ImplementationIdentifier

  • timestampstring required

    Time the error was raised in RFC3339 format

    format date-time
  • uuidstring required
    min length 2
  • statestring requiredState

    State of an error

    enumActiveClearedByModuleClearedByReboot
FilterArguments object
object

Arguments for the get_errors command

Additional properties allowed.

ImplementationIdentifier object
object

Identifier of an implementation

Additional properties allowed.

  • module_idstring required
    min length 2
  • implementation_idstring required
    min length 2
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.

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