We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85018ac commit fc2a03aCopy full SHA for fc2a03a
1 file changed
pkg/console/handler/observability.go
@@ -100,6 +100,8 @@ func GetMetricsList(ctx consolectx.Context) gin.HandlerFunc {
100
return func(c *gin.Context) {
101
req := &model.MetricsReq{}
102
if err := c.ShouldBindQuery(req); err != nil {
103
+ c.JSON(http.StatusBadRequest, model.NewErrorResp(err.Error()))
104
+ return
105
}
106
resp, err := service.GetInstanceMetrics(ctx, req)
107
if err != nil {
0 commit comments