SpaceONE APIs
Latest Version
Latest Version
  • README
  • Board
    • V1
      • Board
      • Post
  • Config
    • V1
      • Domain Config
      • User Config
  • Core
    • V1
      • Handler
      • Query
      • Server Info
  • Cost Analysis
    • Plugin
      • Cost
      • Data Source
      • Job
    • V1
      • Budget
      • Budget Usage
      • Cost
      • Cost Query Set
      • Custom Widget
      • Data Source
      • Data Source Rule
      • Exchange Rate
      • Job
      • Job Task
      • Public Dashboard
      • Schedule
      • User Dashboard
  • Identity
    • Plugin
      • Auth
    • V1
      • Api Key
      • Authorization
      • Domain
      • Domain Owner
      • Endpoint
      • Policy
      • Project
      • Project Group
      • Provider
      • Role
      • Role Binding
      • Service Account
      • Token
      • User
  • Inventory
    • Plugin
      • Collector
    • V1
      • Change History
      • Cloud Service
      • Cloud Service Type
      • Collector
      • Job
      • Job Task
      • Note
      • Region
      • Resource Group
      • Server
  • Monitoring
    • Plugin
      • Data Source
      • Event
      • Log
      • Metric
      • Webhook
    • V1
      • Alert
      • Data Source
      • Escalation Policy
      • Event
      • Event Rule
      • Log
      • Maintenance Window
      • Metric
      • Note
      • Project Alert Config
      • Webhook
  • Notification
    • Plugin
      • Notification
      • Protocol
    • V1
      • Notification
      • Notification Usage
      • Project Channel
      • Protocol
      • Quota
      • User Channel
  • Plugin
    • V1
      • Plugin
      • Supervisor
  • Repository
    • V1
      • Plugin
      • Policy
      • Repository
      • Schema
  • Sample
    • V1
      • Helloworld
  • Secret
    • V1
      • Secret
      • Secret Group
  • Statistics
    • Plugin
      • Storage
    • V1
      • History
      • Resource
      • Schedule
      • Storage
Powered by GitBook
On this page
  • EventRule
  • create
  • update
  • change_order
  • delete
  • get
  • list
  • stat
  • Message
  • ChangeEventRuleOrderRequest
  • CreateEventRuleRequest
  • EventRuleActionResponder
  • EventRuleActions
  • EventRuleCondition
  • EventRuleInfo
  • EventRuleOptions
  • EventRuleQuery
  • EventRuleRequest
  • EventRuleStatQuery
  • EventRulesInfo
  • GetEventRuleRequest
  • MatchRule
  • UpdateEventRuleRequest

Was this helpful?

  1. Monitoring
  2. V1

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:

Method
Request
Response

create

POST /monitoring/v1/event-rules

Type
Message

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.

Type
Message

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.

Type
Message

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.

Type
Message

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.

Type
Message

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.

Type
Message

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

Type
Message

Request

Response

Message

ChangeEventRuleOrderRequest

Field
Type
Required
Description

event_rule_id

string

✔

order

✔

domain_id

string

✔

CreateEventRuleRequest

Field
Type
Required
Description

name

string

✔

conditions

✔

conditions_policy

  • NONE

  • ALL

  • ANY

  • ALWAYS

✔

actions

✔

options

✘

project_id

string

✘

tags

✘

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

add_responder

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

conditions_policy

  • NONE

  • ALL

  • ANY

  • ALWAYS

actions

options

scope

  • SCOPE_NONE

  • GLOBAL

  • PROJECT

project_id

string

tags

domain_id

string

created_at

string

EventRuleOptions

Field
Type
Description

stop_processing

bool

EventRuleQuery

Field
Type
Required
Description

query

✘

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

query

✔

domain_id

string

✔

EventRulesInfo

Field
Type
Description

results

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

✘

conditions_policy

  • NONE

  • ALL

  • ANY

  • ALWAYS

✘

actions

✘

options

✘

tags

✘

domain_id

string

✔

PreviousEventNextLog

Last updated 2 years ago

Was this helpful?

google.protobuf.Empty
google.protobuf.Struct
google.protobuf.Empty
google.protobuf.Struct
int32
google.protobuf.Struct
google.protobuf.Struct
int32
google.protobuf.Struct
spaceone.api.core.v1.Query
spaceone.api.core.v1.StatisticsQuery
int32
google.protobuf.Struct
create
CreateEventRuleRequest
EventRuleInfo
update
UpdateEventRuleRequest
EventRuleInfo
change_order
ChangeEventRuleOrderRequest
EventRuleInfo
delete
EventRuleRequest
get
GetEventRuleRequest
EventRuleInfo
list
EventRuleQuery
EventRulesInfo
stat
EventRuleStatQuery
CreateEventRuleRequest
EventRuleInfo
UpdateEventRuleRequest
EventRuleInfo
ChangeEventRuleOrderRequest
EventRuleInfo
EventRuleRequest
GetEventRuleRequest
EventRuleInfo
EventRuleQuery
EventRulesInfo
EventRuleStatQuery
list of EventRuleCondition
EventRuleActions
EventRuleOptions
list of EventRuleActionResponder
MatchRule
list of EventRuleCondition
EventRuleActions
EventRuleOptions
list of EventRuleInfo
list of EventRuleCondition
EventRuleActions
EventRuleOptions