Skip to content

Commit

Permalink
Merge pull request #392 from seungkyua/20240416_policy_violation_log
Browse files Browse the repository at this point in the history
20240416 policy violation log
  • Loading branch information
seungkyua authored Apr 17, 2024
2 parents 296edf1 + b63b8fa commit ef215ca
Show file tree
Hide file tree
Showing 9 changed files with 816 additions and 487 deletions.
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

0 comments on commit ef215ca

Please sign in to comment.