Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20240416 policy violation log #392

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
142 changes: 124 additions & 18 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3435,7 +3435,7 @@ const docTemplate = `{
"JWT": []
}
],
"description": "Get the number of policy violation",
"description": "Get the number of policy enforcement",
"consumes": [
"application/json"
],
Expand All @@ -3445,35 +3445,21 @@ const docTemplate = `{
"tags": [
"Dashboard Widgets"
],
"summary": "Get the number of policy violation",
"summary": "Get the number of policy enforcement",
"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.GetDashboardPolicyViolationResponse"
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.GetDashboardPolicyEnforcementResponse"
}
}
}
Expand Down Expand Up @@ -3553,6 +3539,94 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/dashboards/policy-violation": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Get the number of policy violation",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Dashboard Widgets"
],
"summary": "Get the number of policy violation",
"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.GetDashboardPolicyViolationResponse"
}
}
}
}
},
"/organizations/{organizationId}/dashboards/policy-violation-log": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Get policy violation log",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Dashboard Widgets"
],
"summary": "Get policy violation log",
"parameters": [
{
"type": "string",
"description": "Organization ID",
"name": "organizationId",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.GetDashboardPolicyViolationLogResponse"
}
}
}
}
},
"/organizations/{organizationId}/dashboards/resources": {
"get": {
"security": [
Expand Down Expand Up @@ -10637,7 +10711,7 @@ const docTemplate = `{
"type": "string"
},
"user": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.SimpleUserResponse"
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.SimpleUserResponseWithRoles"
}
}
},
Expand Down Expand Up @@ -12440,6 +12514,9 @@ const docTemplate = `{
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.GetDashboardPolicyViolationLogResponse": {
"type": "object"
},
"github_com_openinfradev_tks-api_pkg_domain.GetDashboardPolicyViolationResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -14344,6 +14421,32 @@ const docTemplate = `{
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.SimpleUserResponseWithRoles": {
"type": "object",
"properties": {
"accountId": {
"type": "string"
},
"department": {
"type": "string"
},
"email": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"roles": {
"type": "array",
"items": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.SimpleRoleResponse"
}
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.StackConfResponse": {
"type": "object",
"required": [
Expand Down Expand Up @@ -14820,6 +14923,9 @@ const docTemplate = `{
"notificationType": {
"type": "string"
},
"status": {
"type": "string"
},
"systemNotificationCondition": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.SystemNotificationConditionResponse"
},
Expand Down
Loading
Loading