From f3522ac61eacbac50fcb31e9dea373785eade57e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Vall=C3=A9s?= <3977183+jvallesm@users.noreply.github.com> Date: Thu, 25 Jul 2024 16:57:23 +0200 Subject: [PATCH] feat(mgmt): use unified dashboard endpoints (#218) Because - Pipeline and credit endpoints have different params and schemas. - Some of the information served by the existing endpoints will be handled by the logging feature. This commit - Applies contracts defined in https://github.com/instill-ai/protobufs/pull/387 --- config/settings-env/endpoints.json | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/config/settings-env/endpoints.json b/config/settings-env/endpoints.json index 043c411..cedf520 100644 --- a/config/settings-env/endpoints.json +++ b/config/settings-env/endpoints.json @@ -200,25 +200,18 @@ "input_query_strings": [] }, { - "endpoint": "/v1beta/metrics/vdp/pipeline/triggers", - "url_pattern": "/v1beta/metrics/vdp/pipeline/triggers", + "endpoint": "/v1beta/metrics/vdp/pipeline/trigger-count", + "url_pattern": "/v1beta/metrics/vdp/pipeline/trigger-count", "method": "GET", "timeout": "30s", - "input_query_strings": ["pageSize", "pageToken", "filter"] - }, - { - "endpoint": "/v1beta/metrics/vdp/pipeline/tables", - "url_pattern": "/v1beta/metrics/vdp/pipeline/tables", - "method": "GET", - "timeout": "30s", - "input_query_strings": ["pageSize", "pageToken", "filter"] + "input_query_strings": ["namespaceId", "start", "stop"] }, { "endpoint": "/v1beta/metrics/vdp/pipeline/charts", "url_pattern": "/v1beta/metrics/vdp/pipeline/charts", "method": "GET", "timeout": "30s", - "input_query_strings": ["aggregationWindow", "filter"] + "input_query_strings": ["namespaceId", "aggregationWindow", "start", "stop"] } ], "no_auth": [ @@ -386,14 +379,8 @@ "timeout": "30s" }, { - "endpoint": "/core.mgmt.v1beta.MgmtPublicService/ListPipelineTriggerRecords", - "url_pattern": "/core.mgmt.v1beta.MgmtPublicService/ListPipelineTriggerRecords", - "method": "POST", - "timeout": "30s" - }, - { - "endpoint": "/core.mgmt.v1beta.MgmtPublicService/ListPipelineTriggerTableRecords", - "url_pattern": "/core.mgmt.v1beta.MgmtPublicService/ListPipelineTriggerTableRecords", + "endpoint": "/core.mgmt.v1beta.MgmtPublicService/GetPipelineTriggerCount", + "url_pattern": "/core.mgmt.v1beta.MgmtPublicService/GetPipelineTriggerCount", "method": "POST", "timeout": "30s" },