diff --git a/api/swagger/docs.go b/api/swagger/docs.go index 5557423c..f16d23a9 100644 --- a/api/swagger/docs.go +++ b/api/swagger/docs.go @@ -3582,6 +3582,57 @@ const docTemplate = `{ } } }, + "/organizations/{organizationId}/dashboards/widgets/policy-violation-top5": { + "get": { + "security": [ + { + "JWT": [] + } + ], + "description": "Get policy violation top5", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Dashboard Widgets" + ], + "summary": "Get policy violation top5", + "parameters": [ + { + "type": "string", + "description": "Organization ID", + "name": "organizationId", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "duration", + "name": "duration", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "interval", + "name": "interval", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.GetDashboardPolicyViolationTop5Response" + } + } + } + } + }, "/organizations/{organizationId}/dashboards/widgets/resources": { "get": { "security": [ @@ -12653,6 +12704,35 @@ const docTemplate = `{ } } }, + "github_com_openinfradev_tks-api_pkg_domain.GetDashboardPolicyViolationTop5Response": { + "type": "object", + "properties": { + "chartData": { + "$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.BarChartData" + }, + "chartType": { + "type": "string" + }, + "description": { + "type": "string" + }, + "duration": { + "type": "string" + }, + "interval": { + "type": "string" + }, + "name": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "updatedAt": { + "type": "string" + } + } + }, "github_com_openinfradev_tks-api_pkg_domain.GetDashboardResourcesResponse": { "type": "object", "properties": { diff --git a/api/swagger/swagger.json b/api/swagger/swagger.json index 807132e8..b35d6ae3 100644 --- a/api/swagger/swagger.json +++ b/api/swagger/swagger.json @@ -3576,6 +3576,57 @@ } } }, + "/organizations/{organizationId}/dashboards/widgets/policy-violation-top5": { + "get": { + "security": [ + { + "JWT": [] + } + ], + "description": "Get policy violation top5", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Dashboard Widgets" + ], + "summary": "Get policy violation top5", + "parameters": [ + { + "type": "string", + "description": "Organization ID", + "name": "organizationId", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "duration", + "name": "duration", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "interval", + "name": "interval", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.GetDashboardPolicyViolationTop5Response" + } + } + } + } + }, "/organizations/{organizationId}/dashboards/widgets/resources": { "get": { "security": [ @@ -12647,6 +12698,35 @@ } } }, + "github_com_openinfradev_tks-api_pkg_domain.GetDashboardPolicyViolationTop5Response": { + "type": "object", + "properties": { + "chartData": { + "$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.BarChartData" + }, + "chartType": { + "type": "string" + }, + "description": { + "type": "string" + }, + "duration": { + "type": "string" + }, + "interval": { + "type": "string" + }, + "name": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "updatedAt": { + "type": "string" + } + } + }, "github_com_openinfradev_tks-api_pkg_domain.GetDashboardResourcesResponse": { "type": "object", "properties": { diff --git a/api/swagger/swagger.yaml b/api/swagger/swagger.yaml index fb81bda2..e5f6fa25 100644 --- a/api/swagger/swagger.yaml +++ b/api/swagger/swagger.yaml @@ -1748,6 +1748,25 @@ definitions: updatedAt: type: string type: object + github_com_openinfradev_tks-api_pkg_domain.GetDashboardPolicyViolationTop5Response: + properties: + chartData: + $ref: '#/definitions/github_com_openinfradev_tks-api_pkg_domain.BarChartData' + chartType: + type: string + description: + type: string + duration: + type: string + interval: + type: string + name: + type: string + organizationId: + type: string + updatedAt: + type: string + type: object github_com_openinfradev_tks-api_pkg_domain.GetDashboardResourcesResponse: properties: resources: @@ -6595,6 +6614,39 @@ paths: summary: Get policy violation log tags: - Dashboard Widgets + /organizations/{organizationId}/dashboards/widgets/policy-violation-top5: + get: + consumes: + - application/json + description: Get policy violation top5 + parameters: + - description: Organization ID + in: path + name: organizationId + required: true + type: string + - description: duration + in: query + name: duration + required: true + type: string + - description: interval + in: query + name: interval + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/github_com_openinfradev_tks-api_pkg_domain.GetDashboardPolicyViolationTop5Response' + security: + - JWT: [] + summary: Get policy violation top5 + tags: + - Dashboard Widgets /organizations/{organizationId}/dashboards/widgets/resources: get: consumes: