Event Rule

An EventRule is a rule to transform the request data when an Event is generated.

Package : spaceone.api.monitoring.v1

EventRule

EventRule Methods:

create

POST /monitoring/v1/event-rules

Type
Message

update

PUT /monitoring/v1/event-rule/{event_rule_id}

Changes a priority order between EventRules to apply. EventRules are filtered by the order configured.

Type
Message
{
    "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"
}

change_order

PUT /monitoring/v1/event-rule/{event_rule_id}/order

Updates a specific EventRule. You can make changes in EventRule settings.

{
    "event_rule_id": "er-123456789012",
    "order": 2,
    "domain_id": "domain-123456789012"
}

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.

Type
Message
{
    "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.

Type
Message
{
    "event_rule_id": "er-123456789012",
    "domain_id": "domain-123456789012"
}

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.

Type
Message
{
    "project_id": "project-123456789012",
    "domain_id": "domain-123456789012"
}

stat

POST /monitoring/v1/event-rules/stat

Message

ChangeEventRuleOrderRequest

Field
Type
Required
Description

event_rule_id

string

order

domain_id

string

CreateEventRuleRequest

Field
Type
Required
Description

name

string

conditions_policy

  • NONE

  • ALL

  • ANY

  • ALWAYS

project_id

string

domain_id

string

EventRuleActionResponder

Field
Type
Description

resource_type

string

resource_id

string

EventRuleActions

Field
Type
Description

change_assignee

string

change_urgency

string

change_project

string

add_project_dependency

list of string

match_service_account

add_additional_info

no_notification

bool

EventRuleCondition

Field
Type
Description

key

string

value

string

operator

string

EventRuleInfo

Field
Type
Description

event_rule_id

string

name

string

order

conditions_policy

  • NONE

  • ALL

  • ANY

  • ALWAYS

scope

  • SCOPE_NONE

  • GLOBAL

  • PROJECT

project_id

string

domain_id

string

created_at

string

EventRuleOptions

Field
Type
Description

stop_processing

bool

EventRuleQuery

Field
Type
Required
Description

event_rule_id

string

name

string

scope

  • SCOPE_NONE

  • GLOBAL

  • PROJECT

project_id

string

domain_id

string

EventRuleRequest

Field
Type
Required
Description

event_rule_id

string

domain_id

string

EventRuleStatQuery

Field
Type
Required
Description

domain_id

string

EventRulesInfo

Field
Type
Description

total_count

GetEventRuleRequest

Field
Type
Required
Description

event_rule_id

string

domain_id

string

only

list of string

MatchRule

Field
Type
Description

source

string

target

string

UpdateEventRuleRequest

Field
Type
Required
Description

event_rule_id

string

name

string

conditions_policy

  • NONE

  • ALL

  • ANY

  • ALWAYS

domain_id

string

Last updated