Skip to content

Commit

Permalink
feat(mgmt): use unified dashboard endpoints (#218)
Browse files Browse the repository at this point in the history
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
instill-ai/protobufs#387
  • Loading branch information
jvallesm authored Jul 25, 2024
1 parent 386dc58 commit f3522ac
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions config/settings-env/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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"
},
Expand Down

0 comments on commit f3522ac

Please sign in to comment.