From 6d133c492552ae9ce1112fad6e08a6c53e39db00 Mon Sep 17 00:00:00 2001 From: "R.I.Pienaar" Date: Tue, 14 Mar 2023 19:02:42 +0100 Subject: [PATCH] add metadata to stats api call also for micro api Signed-off-by: R.I.Pienaar --- adr/ADR-32.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/adr/ADR-32.md b/adr/ADR-32.md index 21b239c6..df2a7089 100644 --- a/adr/ADR-32.md +++ b/adr/ADR-32.md @@ -134,10 +134,6 @@ Returns a JSON having the following structure: * Description for the service */ description: string, - /** - * Version of the service - */ - version: string, /** * An array of all endpoint subjects */ @@ -160,6 +156,7 @@ Returns the following schema (the standard response fields) name: string, id: string, version: string, + metadata: Record; } ``` @@ -249,6 +246,10 @@ The type for this is `io.nats.micro.v1.schema_response`. * The subject on which the endpoint is registered */ subject: string; + /** + * Endpoint specific stats + */ + metadata: Record; /** * The number of requests received by the endpoint */