Skip to content

Commit

Permalink
[CI] api has been built
Browse files Browse the repository at this point in the history
  • Loading branch information
admin-cloudforet committed Dec 29, 2024
1 parent 600e998 commit 3a63938
Show file tree
Hide file tree
Showing 9 changed files with 289 additions and 254 deletions.
397 changes: 205 additions & 192 deletions dist/go/spaceone/api/alert-manager/v1/alert.pb.go

Large diffs are not rendered by default.

36 changes: 29 additions & 7 deletions dist/json/cloudforet/api/alert_manager/v1/Alert.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,14 @@
"description": ""
},
{
"name": "ERROR",
"name": "IGNORED",
"number": "4",
"description": ""
},
{
"name": "ERROR",
"number": "5",
"description": ""
}
]
},
Expand All @@ -97,9 +102,14 @@
"description": ""
},
{
"name": "WEBHOOK",
"name": "APP",
"number": "2",
"description": ""
},
{
"name": "WEBHOOK",
"number": "3",
"description": ""
}
]
},
Expand Down Expand Up @@ -649,6 +659,18 @@
"oneofdecl": "",
"defaultValue": ""
},
{
"name": "labels",
"description": "",
"label": "repeated",
"type": "string",
"longType": "string",
"fullType": "string",
"ismap": false,
"isoneof": false,
"oneofdecl": "",
"defaultValue": ""
},
{
"name": "domain_id",
"description": "",
Expand Down Expand Up @@ -902,12 +924,12 @@
"defaultValue": ""
},
{
"name": "resources",
"name": "resource",
"description": "+optional",
"label": "repeated",
"type": "AlertResource",
"longType": "AlertResource",
"fullType": "spaceone.api.alert_manager.v1.AlertResource",
"label": "",
"type": "string",
"longType": "string",
"fullType": "string",
"ismap": false,
"isoneof": false,
"oneofdecl": "",
Expand Down
12 changes: 6 additions & 6 deletions dist/openapi/cloudforet/api/alert_manager/v1/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1000,11 +1000,11 @@
"operationId" : "",
"description": "### Description \n",
"requestBody": {
"description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |query||Query||\n |alert_id||string||\n |state|TRIGGERED, ACKNOWLEDGED, RESOLVED, ERROR |string||\n |urgency|HIGH, LOW |string||\n |severity||EventSeverity||\n |resources||array||\n |provider||string||\n |account||string||\n |triggered_type||string||\n |triggered_by||string||\n |workspace_id||string||\n |service_id||string||\n |webhook_id||string||\n |escalation_policy_id||string||\n<br>",
"description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |query||Query||\n |alert_id||string||\n |state|TRIGGERED, ACKNOWLEDGED, RESOLVED, ERROR |string||\n |urgency|HIGH, LOW |string||\n |severity||EventSeverity||\n |resource||string||\n |provider||string||\n |account||string||\n |triggered_type||string||\n |triggered_by||string||\n |workspace_id||string||\n |service_id||string||\n |webhook_id||string||\n |escalation_policy_id||string||\n<br>",
"content": {
"application/json": {
"schema": {
"properties": {"query" : {"$ref": "#/components/schemas/Query","title": "QUERY" },"alert_id" : {"type": "string","title": "ALERT_ID" },"state" : {"type": "string","title": "STATE" },"urgency" : {"type": "string","title": "URGENCY" },"severity" : {"type": "EventSeverity","title": "SEVERITY" },"resources" : {"items": {"$ref": "#/components/schemas/AlertResource"}, "type": "array","title": "RESOURCES" },"provider" : {"type": "string","title": "PROVIDER" },"account" : {"type": "string","title": "ACCOUNT" },"triggered_type" : {"type": "string","title": "TRIGGERED_TYPE" },"triggered_by" : {"type": "string","title": "TRIGGERED_BY" },"workspace_id" : {"type": "string","title": "WORKSPACE_ID" },"service_id" : {"type": "string","title": "SERVICE_ID" },"webhook_id" : {"type": "string","title": "WEBHOOK_ID" },"escalation_policy_id" : {"type": "string","title": "ESCALATION_POLICY_ID" } }
"properties": {"query" : {"$ref": "#/components/schemas/Query","title": "QUERY" },"alert_id" : {"type": "string","title": "ALERT_ID" },"state" : {"type": "string","title": "STATE" },"urgency" : {"type": "string","title": "URGENCY" },"severity" : {"type": "EventSeverity","title": "SEVERITY" },"resource" : {"type": "string","title": "RESOURCE" },"provider" : {"type": "string","title": "PROVIDER" },"account" : {"type": "string","title": "ACCOUNT" },"triggered_type" : {"type": "string","title": "TRIGGERED_TYPE" },"triggered_by" : {"type": "string","title": "TRIGGERED_BY" },"workspace_id" : {"type": "string","title": "WORKSPACE_ID" },"service_id" : {"type": "string","title": "SERVICE_ID" },"webhook_id" : {"type": "string","title": "WEBHOOK_ID" },"escalation_policy_id" : {"type": "string","title": "ESCALATION_POLICY_ID" } }
},
"examples":{"Schema":{}
}
Expand Down Expand Up @@ -2696,9 +2696,10 @@
}
, "AlertInfo": {
"properties" : {"alert_id" : {"type": "string","title": "ALERT_ID"},"title" : {"type": "string","title": "TITLE"},"state" : {"type": "string","title": "STATE"},"description" : {"type": "string","title": "DESCRIPTION"},"urgency" : {"type": "string","title": "URGENCY"},"severity" : {"type": "EventSeverity","title": "SEVERITY"},"rule" : {"type": "string","title": "RULE"},"image_url" : {"type": "string","title": "IMAGE_URL"},"resources" : {"items": {"$ref": "#/components/schemas/AlertResource"},
"type": "array","$ref": "#/components/schemas/AlertResource","title": "RESOURCES"},"provider" : {"type": "string","title": "PROVIDER"},"account" : {"type": "string","title": "ACCOUNT"},"triggered_type" : {"type": "string","title": "TRIGGERED_TYPE"},"triggered_by" : {"type": "string","title": "TRIGGERED_BY"},"additional_info" : {"type": "object","title": "ADDITIONAL_INFO"},"domain_id" : {"type": "string","title": "DOMAIN_ID"},"workspace_id" : {"type": "string","title": "WORKSPACE_ID"},"service_id" : {"type": "string","title": "SERVICE_ID"},"webhook_id" : {"type": "string","title": "WEBHOOK_ID"},"escalation_policy_id" : {"type": "string","title": "ESCALATION_POLICY_ID"},"created_at" : {"type": "string","title": "CREATED_AT"},"updated_at" : {"type": "string","title": "UPDATED_AT"},"acknowledged_at" : {"type": "string","title": "ACKNOWLEDGED_AT"},"resolved_at" : {"type": "string","title": "RESOLVED_AT"}},
"type": "array","$ref": "#/components/schemas/AlertResource","title": "RESOURCES"},"provider" : {"type": "string","title": "PROVIDER"},"account" : {"type": "string","title": "ACCOUNT"},"triggered_type" : {"type": "string","title": "TRIGGERED_TYPE"},"triggered_by" : {"type": "string","title": "TRIGGERED_BY"},"additional_info" : {"type": "object","title": "ADDITIONAL_INFO"},"labels" : {"items": {"type": "string"},
"type": "array","title": "LABELS"},"domain_id" : {"type": "string","title": "DOMAIN_ID"},"workspace_id" : {"type": "string","title": "WORKSPACE_ID"},"service_id" : {"type": "string","title": "SERVICE_ID"},"webhook_id" : {"type": "string","title": "WEBHOOK_ID"},"escalation_policy_id" : {"type": "string","title": "ESCALATION_POLICY_ID"},"created_at" : {"type": "string","title": "CREATED_AT"},"updated_at" : {"type": "string","title": "UPDATED_AT"},"acknowledged_at" : {"type": "string","title": "ACKNOWLEDGED_AT"},"resolved_at" : {"type": "string","title": "RESOLVED_AT"}},
"type": "object",
"required": ["alert_id","title","state","description","urgency","severity","rule","image_url","resources","provider","account","triggered_type","triggered_by","additional_info","domain_id","workspace_id","service_id","webhook_id","escalation_policy_id","created_at","updated_at","acknowledged_at","resolved_at"],
"required": ["alert_id","title","state","description","urgency","severity","rule","image_url","resources","provider","account","triggered_type","triggered_by","additional_info","labels","domain_id","workspace_id","service_id","webhook_id","escalation_policy_id","created_at","updated_at","acknowledged_at","resolved_at"],
"title": "AlertInfo"
}
, "AlertRequest": {
Expand All @@ -2714,8 +2715,7 @@
"title": "AlertResource"
}
, "AlertSearchQuery": {
"properties" : {"query" : {"$ref": "#/components/schemas/Query","title": "QUERY"},"alert_id" : {"type": "string","title": "ALERT_ID"},"state" : {"type": "string","title": "STATE"},"urgency" : {"type": "string","title": "URGENCY"},"severity" : {"type": "EventSeverity","title": "SEVERITY"},"resources" : {"items": {"$ref": "#/components/schemas/AlertResource"},
"type": "array","$ref": "#/components/schemas/AlertResource","title": "RESOURCES"},"provider" : {"type": "string","title": "PROVIDER"},"account" : {"type": "string","title": "ACCOUNT"},"triggered_type" : {"type": "string","title": "TRIGGERED_TYPE"},"triggered_by" : {"type": "string","title": "TRIGGERED_BY"},"workspace_id" : {"type": "string","title": "WORKSPACE_ID"},"service_id" : {"type": "string","title": "SERVICE_ID"},"webhook_id" : {"type": "string","title": "WEBHOOK_ID"},"escalation_policy_id" : {"type": "string","title": "ESCALATION_POLICY_ID"}},
"properties" : {"query" : {"$ref": "#/components/schemas/Query","title": "QUERY"},"alert_id" : {"type": "string","title": "ALERT_ID"},"state" : {"type": "string","title": "STATE"},"urgency" : {"type": "string","title": "URGENCY"},"severity" : {"type": "EventSeverity","title": "SEVERITY"},"resource" : {"type": "string","title": "RESOURCE"},"provider" : {"type": "string","title": "PROVIDER"},"account" : {"type": "string","title": "ACCOUNT"},"triggered_type" : {"type": "string","title": "TRIGGERED_TYPE"},"triggered_by" : {"type": "string","title": "TRIGGERED_BY"},"workspace_id" : {"type": "string","title": "WORKSPACE_ID"},"service_id" : {"type": "string","title": "SERVICE_ID"},"webhook_id" : {"type": "string","title": "WEBHOOK_ID"},"escalation_policy_id" : {"type": "string","title": "ESCALATION_POLICY_ID"}},
"type": "object",
"required": [],
"title": "AlertSearchQuery"
Expand Down
Loading

0 comments on commit 3a63938

Please sign in to comment.