Event Rule
An EventRule is a rule to transform the request data when an Event is generated.
Package : spaceone.api.monitoring.v1
EventRule
create
POST /monitoring/v1/event-rules
Request
Response
update
PUT /monitoring/v1/event-rule/{event_rule_id}
Changes a priority order between EventRules to apply. EventRules are filtered by the order configured.
Request
Response
{
"event_rule_id": "er-123456789012",
"conditions": [
{
"key": "description",
"value": "ELB",
"operator": "contain"
}
],
"conditions_policy": "ALL",
"actions": {
"change_assignee": "user2@email.com",
"change_urgency": "HIGH",
"change_project": "project-123456789012",
"add_additional_info": {
"type": "personal rule"
},
"no_notification": true
},
"options": {},
"domain_id": "domain-123456789012"
}{
"event_rule_id": "er-123456789012",
"order": 2,
"conditions": [
{
"key": "description",
"value": "ELB",
"operator": "contain"
}
],
"conditions_policy": "ALL",
"actions": {
"change_assignee": "user2@email.com",
"change_urgency": "HIGH",
"change_project": "project-123456789012",
"add_additional_info": {
"type": "personal rule"
},
"no_notification": true
},
"options": {},
"scope": "PROJECT",
"project_id": "project-123456789012",
"tags": {},
"domain_id": "domain-123456789012",
"created_at": "2022-01-01T06:02:31.517Z"
}change_order
PUT /monitoring/v1/event-rule/{event_rule_id}/order
Updates a specific EventRule. You can make changes in EventRule settings.
Request
Response
{
"event_rule_id": "er-123456789012",
"order": 2,
"domain_id": "domain-123456789012"
}{
"event_rule_id": "er-123456789012",
"order": 2,
"conditions": [
{
"key": "description",
"value": "API",
"operator": "contain"
}
],
"conditions_policy": "ALL",
"actions": {
"change_assignee": "user1@email.com",
"change_urgency": "LOW",
"change_project": "project-123456789012",
"add_additional_info": {
"type": "personal rule"
},
"no_notification": true
},
"options": {},
"scope": "PROJECT",
"project_id": "project-123456789012",
"tags": {},
"domain_id": "domain-123456789012",
"created_at": "2022-01-02T06:02:31.517Z"
}delete
DELETE /monitoring/v1/event-rule/{event_rule_id}
Deletes a specific EventRule. You must assign an EventRule resource to delete by specifying
event_rule_id.
Request
Response
{
"event_rule_id": "er-123456789012",
"domain_id": "domain-123456789012"
}get
GET /monitoring/v1/event-rule/{event_rule_id}
Gets a specific EventRule. Prints detailed information about the EventRule.
Request
Response
{
"event_rule_id": "er-123456789012",
"domain_id": "domain-123456789012"
}{
"event_rule_id": "er-123456789012",
"order": 2,
"conditions": [
{
"key": "title",
"value": "ELB",
"operator": "contain"
}
],
"conditions_policy": "ALL",
"actions": {
"change_assignee": "user1@email.com",
"change_urgency": "LOW",
"change_project": "project-123456789012",
"add_additional_info": {},
"no_notification": true
},
"options": {},
"scope": "PROJECT",
"project_id": "project-123456789012",
"tags": {},
"domain_id": "domain-123456789012",
"created_at": "2022-01-01T06:12:30.226Z"
}list
GET /monitoring/v1/event-rules
POST /monitoring/v1/event-rules/search
Gets a list of all EventRules. You can use a query to get a filtered list of EventRules. For example, you can adjust the scope of the list to a certain Project or Domain.
Request
Response
{
"project_id": "project-123456789012",
"domain_id": "domain-123456789012"
}{
"results": [
{
"event_rule_id": "er-123456789012",
"order": 1,
"conditions": [
{
"key": "title",
"value": "AWS",
"operator": "contain"
}
],
"conditions_policy": "ALL",
"actions": {
"change_assignee": "user2@email.com",
"change_urgency": "HIGH",
"add_additional_info": {},
"no_notification": true
},
"options": {},
"scope": "PROJECT",
"project_id": "project-123456789012",
"tags": {},
"domain_id": "domain-123456789012",
"created_at": "2022-01-01T06:33:58.388Z"
},
{
"event_rule_id": "er-123456789012",
"order": 2,
"conditions": [
{
"key": "title",
"value": "ELB",
"operator": "contain"
}
],
"conditions_policy": "ALL",
"actions": {
"change_assignee": "user1@email.com",
"change_urgency": "LOW",
"change_project": "project-123456789012",
"add_additional_info": {},
"no_notification": true
},
"options": {},
"scope": "PROJECT",
"project_id": "project-123456789012",
"tags": {},
"domain_id": "domain-123456789012",
"created_at": "2022-01-01T06:12:30.226Z"
}
],
"total_count": 2
}stat
POST /monitoring/v1/event-rules/stat
Request
Response
Message
ChangeEventRuleOrderRequest
CreateEventRuleRequest
name
string
✔
conditions_policy
NONE
ALL
ANY
ALWAYS
✔
project_id
string
✘
domain_id
string
✔
EventRuleActionResponder
resource_type
string
resource_id
string
EventRuleActions
change_assignee
string
change_urgency
string
change_project
string
add_project_dependency
list of string
no_notification
bool
EventRuleCondition
key
string
value
string
operator
string
EventRuleInfo
event_rule_id
string
name
string
conditions_policy
NONE
ALL
ANY
ALWAYS
scope
SCOPE_NONE
GLOBAL
PROJECT
project_id
string
domain_id
string
created_at
string
EventRuleOptions
stop_processing
bool
EventRuleQuery
event_rule_id
string
✘
name
string
✘
scope
SCOPE_NONE
GLOBAL
PROJECT
✘
project_id
string
✘
domain_id
string
✔
EventRuleRequest
event_rule_id
string
✔
domain_id
string
✔
EventRuleStatQuery
domain_id
string
✔
EventRulesInfo
GetEventRuleRequest
event_rule_id
string
✔
domain_id
string
✔
only
list of string
✘
MatchRule
source
string
target
string
UpdateEventRuleRequest
event_rule_id
string
✔
name
string
✘
conditions_policy
NONE
ALL
ANY
ALWAYS
✘
domain_id
string
✔
Last updated
Was this helpful?