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

TypeMessage

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.

TypeMessage

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"
}

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.

TypeMessage

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.

TypeMessage

Request

Response

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

TypeMessage

Request

Response

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

stat

POST /monitoring/v1/event-rules/stat

Message

ChangeEventRuleOrderRequest

FieldTypeRequiredDescription

event_rule_id

string

order

domain_id

string

CreateEventRuleRequest

FieldTypeRequiredDescription

name

string

conditions

conditions_policy

  • NONE

  • ALL

  • ANY

  • ALWAYS

actions

options

project_id

string

tags

domain_id

string

EventRuleActionResponder

FieldTypeDescription

resource_type

string

resource_id

string

EventRuleActions

FieldTypeDescription

change_assignee

string

change_urgency

string

change_project

string

add_project_dependency

list of string

add_responder

match_service_account

add_additional_info

no_notification

bool

EventRuleCondition

FieldTypeDescription

key

string

value

string

operator

string

EventRuleInfo

FieldTypeDescription

event_rule_id

string

name

string

order

conditions

conditions_policy

  • NONE

  • ALL

  • ANY

  • ALWAYS

actions

options

scope

  • SCOPE_NONE

  • GLOBAL

  • PROJECT

project_id

string

tags

domain_id

string

created_at

string

EventRuleOptions

FieldTypeDescription

stop_processing

bool

EventRuleQuery

FieldTypeRequiredDescription

query

event_rule_id

string

name

string

scope

  • SCOPE_NONE

  • GLOBAL

  • PROJECT

project_id

string

domain_id

string

EventRuleRequest

FieldTypeRequiredDescription

event_rule_id

string

domain_id

string

EventRuleStatQuery

FieldTypeRequiredDescription

query

domain_id

string

EventRulesInfo

FieldTypeDescription

results

total_count

GetEventRuleRequest

FieldTypeRequiredDescription

event_rule_id

string

domain_id

string

only

list of string

MatchRule

FieldTypeDescription

source

string

target

string

UpdateEventRuleRequest

FieldTypeRequiredDescription

event_rule_id

string

name

string

conditions

conditions_policy

  • NONE

  • ALL

  • ANY

  • ALWAYS

actions

options

tags

domain_id

string

Last updated