From d4e73307e6ba7c9f19fcf38566f72e481d34b5ab Mon Sep 17 00:00:00 2001 From: SammyOina Date: Wed, 18 Oct 2023 17:59:52 +0300 Subject: [PATCH] Add MQTT asyncapi definition for Agent Service This commit adds the MQTT asyncapi definition for the Agent Service. It includes the necessary channels and messages for remote command execution, remote terminal, heartbeat service, and other functionalities. The asyncapi version is set to 2.6.0, and the Agent Service version is 0.13. The description provides an overview of the Agent Service's capabilities. The example payload is included, demonstrating the usage of SenML for different commands. Signed-off-by: SammyOina --- api/asynapi/mqtt.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 api/asynapi/mqtt.yaml diff --git a/api/asynapi/mqtt.yaml b/api/asynapi/mqtt.yaml new file mode 100644 index 0000000..82e123a --- /dev/null +++ b/api/asynapi/mqtt.yaml @@ -0,0 +1,21 @@ +asyncapi: 2.6.0 +info: + title: Agent Service + version: 0.13 + description: Agent service provides remote command execution, remote terminal, heartbeat service for services on edge and edgex SMA. +channels: + channels/{channel_id}/messages/req: + publish: + message: + $ref: '#/componenets/messages/agentMessage' +components: + messages: + agentMessage: + payload: + type: object + example: | + ### SenML + ```json + [{"bn":"1:", "n":"", "vs":""}] + ``` + #### Commands: exec, control, config, service, term \ No newline at end of file