Dashboard Consensus Protocol

Consensus messages are special class of monitoring messages, with type = “consensus”.

Messages are formatted according to the following schema:

CONSENSUS_MESSAGE_SCHEMA
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "type": {
      "const": "consensus"
    },
    "class": {
      "type": "string",
      "enum": [
        "HEARTBEAT",
        "REQUEST_VOTE",
        "VOTE_FOR_LEADER"
      ]
    },
    "apptype": {
      "type": "string"
    },
    "sender": {
      "type": "string"
    },
    "term": {
      "type": "string"
    }
  },
  "required": [
    "type",
    "class",
    "apptype",
    "sender",
    "term"
  ],
  "additionalProperties": false
}