Skip to content

Commit

Permalink
policy violation top5\n swagger generation
Browse files Browse the repository at this point in the history
  • Loading branch information
seungkyua committed Apr 19, 2024
1 parent 88dac8b commit 9d19fbc
Show file tree
Hide file tree
Showing 3 changed files with 212 additions and 0 deletions.
80 changes: 80 additions & 0 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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": {
Expand Down
80 changes: 80 additions & 0 deletions api/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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": {
Expand Down
52 changes: 52 additions & 0 deletions api/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 9d19fbc

Please sign in to comment.