Commit d99ebbab authored by Trishna Saeharaseelan's avatar Trishna Saeharaseelan
Browse files

feat(header): add route to header

parent 75a433b1
This commit is part of merge request !58. Comments created here will be created in the context of that merge request.
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"version": 2, "version": 2,
"source": "autonomy_engine", "source": "autonomy_engine",
"destination": "soar.noc.autosub.alr-52.to_platform.mission_plan", "destination": "soar.noc.autosub.alr-52.to_platform.mission_plan",
"route": ["proj-x-relay", "internal-relay"],
"delivery_type": "publish", "delivery_type": "publish",
"encoded": false "encoded": false
}, },
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"version": 2, "version": 2,
"source": "noc-c2", "source": "noc-c2",
"destination": "", "destination": "",
"route": ["proj-x-relay", "internal-relay"],
"delivery_type": "broadcast", "delivery_type": "broadcast",
"encoded": false "encoded": false
}, },
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"version": 1, "version": 1,
"source": "ori", "source": "ori",
"destination": "mas-dt.noc.slocum.unit_111.to_platform.platform_instruction_set", "destination": "mas-dt.noc.slocum.unit_111.to_platform.platform_instruction_set",
"route": ["proj-x-relay", "internal-relay"],
"delivery_type": "publish", "delivery_type": "publish",
"encoded": false "encoded": false
}, },
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"version": "dev", "version": "dev",
"source": "noc-sfmc", "source": "noc-sfmc",
"destination": "mas-dt.noc.slocum.unit_xxx.from_platform.platform_status", "destination": "mas-dt.noc.slocum.unit_xxx.from_platform.platform_status",
"route": ["proj-x-relay", "internal-relay"],
"delivery_type": "publish", "delivery_type": "publish",
"encoded": false "encoded": false
}, },
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"version": "2bbede2412f9038c0b1ecd8c2965532ea97264a3", "version": "2bbede2412f9038c0b1ecd8c2965532ea97264a3",
"source": "noc-sfmc", "source": "noc-sfmc",
"destination": "mas-dt.noc.slocum.unit_xxx.from_platform.platform_status", "destination": "mas-dt.noc.slocum.unit_xxx.from_platform.platform_status",
"route": ["mas-dt-relay", "internal-relay"],
"delivery_type": "publish", "delivery_type": "publish",
"encoded": false "encoded": false
}, },
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"version": "v2.0.0-beta.9", "version": "v2.0.0-beta.9",
"source": "noc-sfmc", "source": "noc-sfmc",
"destination": "mas-dt.noc.slocum.unit_xxx.from_platform.platform_status", "destination": "mas-dt.noc.slocum.unit_xxx.from_platform.platform_status",
"route": ["proj-x-relay", "internal-relay"],
"delivery_type": "publish", "delivery_type": "publish",
"encoded": false "encoded": false
}, },
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"version": "v2.0.0-beta.1", "version": "v2.0.0-beta.1",
"source": "noc-sfmc", "source": "noc-sfmc",
"destination": "mas-dt.noc.slocum.unit_xxx.from_platform.waypoints", "destination": "mas-dt.noc.slocum.unit_xxx.from_platform.waypoints",
"route": ["proj-x-relay", "internal-relay"],
"delivery_type": "publish", "delivery_type": "publish",
"encoded": false "encoded": false
}, },
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"version": "v2.0.0-beta.1", "version": "v2.0.0-beta.1",
"source": "noc-sfmc", "source": "noc-sfmc",
"destination": "mas-dt.noc.slocum.unit_xxx.from_platform.waypoints", "destination": "mas-dt.noc.slocum.unit_xxx.from_platform.waypoints",
"route": ["proj-x-relay", "internal-relay"],
"delivery_type": "publish", "delivery_type": "publish",
"encoded": false "encoded": false
}, },
......
route_clients = {
"type": "string",
"description": "Client-ID",
"example": "proj-x-relay",
}
message_header = { message_header = {
"type": "object", "type": "object",
"properties": { "properties": {
...@@ -25,6 +31,11 @@ message_header = { ...@@ -25,6 +31,11 @@ message_header = {
+ " of this message", + " of this message",
"example": "ah1", "example": "ah1",
}, },
"route": {
"type": "array",
"items": route_clients,
"description": "Client-IDs of adapter between forwarding the message between the source adapter and destination adapter",
},
"encoded": { "encoded": {
"type": "boolean", "type": "boolean",
"description": "Indicate that message raw (encoded) or decoded. " "description": "Indicate that message raw (encoded) or decoded. "
......
...@@ -1502,6 +1502,15 @@ ...@@ -1502,6 +1502,15 @@
"pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
"type": "string" "type": "string"
}, },
"route": {
"description": "Client-IDs of adapter between forwarding the message between the source adapter and destination adapter",
"items": {
"description": "Client-ID",
"example": "proj-x-relay",
"type": "string"
},
"type": "array"
},
"source": { "source": {
"description": "The sender; Where is this message from", "description": "The sender; Where is this message from",
"example": "autonomy_engine", "example": "autonomy_engine",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment