From 6dedf77f3f8a5d716da3e6a75f1cb926217bca4f Mon Sep 17 00:00:00 2001 From: hc-github-team-consul-core Date: Thu, 14 Dec 2023 00:57:21 -0600 Subject: [PATCH] Backport of NET-6785: updating peering docs to include stream status and remote data into release/1.16.x (#19937) backport of commit a785cbf3d15ba52ca48115ac0dce434826685830 Co-authored-by: Tauhid --- website/content/api-docs/peering.mdx | 54 ++++++++++++++++++++++++++-- 1 file changed, 51 insertions(+), 3 deletions(-) diff --git a/website/content/api-docs/peering.mdx b/website/content/api-docs/peering.mdx index 9478af104c..7604cb6a19 100644 --- a/website/content/api-docs/peering.mdx +++ b/website/content/api-docs/peering.mdx @@ -184,8 +184,25 @@ $ curl --header "X-Consul-Token: b23b3cad-5ea1-4413-919e-c76884b9ad60" \ "PeerServerAddresses": [ "10.0.0.1:8300" ], + "StreamStatus": { + "ImportedServices": [ + "db", + ], + "ExportedServices": [ + "backend", + "frontend", + "web" + ], + "LastHeartbeat": "2023-12-13T06:31:28.227392Z", + "LastReceive": "2023-12-13T06:31:28.227392Z", + "LastSend": "2023-12-05T11:02:57.528676Z" + }, "CreateIndex": 89, - "ModifyIndex": 89 + "ModifyIndex": 89, + "Remote": { + "Partition": "", + "Datacenter": "east" + } } ``` @@ -293,8 +310,25 @@ $ curl --header "X-Consul-Token: 0137db51-5895-4c25-b6cd-d9ed992f4a52" \ "PeerServerAddresses": [ "10.0.0.1:8300" ], + "StreamStatus": { + "ImportedServices": [ + "db", + ], + "ExportedServices": [ + "backend", + "frontend", + "web" + ], + "LastHeartbeat": "2023-12-13T06:31:28.227392Z", + "LastReceive": "2023-12-13T06:31:28.227392Z", + "LastSend": "2023-12-05T11:02:57.528676Z" + }, "CreateIndex": 89, - "ModifyIndex": 89 + "ModifyIndex": 89, + "Remote": { + "Partition": "", + "Datacenter": "east" + } }, { "ID": "1460ada9-26d2-f30d-3359-2968aa7dc47d", @@ -304,8 +338,22 @@ $ curl --header "X-Consul-Token: 0137db51-5895-4c25-b6cd-d9ed992f4a52" \ "Meta": { "env": "production" }, + "StreamStatus": { + "ImportedServices": null, + "ExportedServices": [ + "backend", + "frontend", + ], + "LastHeartbeat": "2023-12-13T06:31:28.227392Z", + "LastReceive": "2023-12-13T06:31:28.227392Z", + "LastSend": "2023-12-05T11:02:57.528676Z" + }, "CreateIndex": 109, - "ModifyIndex": 119 + "ModifyIndex": 119, + "Remote": { + "Partition": "", + "Datacenter": "east" + } } ] ```