cloudforet-apis
  • README
  • content
    • en
      • Cloudforet API Documentation
      • board
        • _index
        • v1
          • Board
          • Post
          • v1
      • config
        • _index
        • v1
          • DomainConfig
          • PublicConfig
          • UserConfig
          • WorkspaceConfig
          • v1
      • core
        • _index
        • v1
          • Handler
          • Query
          • ServerInfo
          • v1
        • v2
          • Handler
          • Plugin
          • Query
          • v2
      • cost_analysis
        • _index
        • plugin
          • Cost
          • DataSource
          • Job
          • plugin
        • v1
          • Budget
          • BudgetUsage
          • Cost
          • CostQuerySet
          • CostReport
          • CostReportConfig
          • CostReportData
          • CustomWidget
          • DataSource
          • DataSourceAccount
          • DataSourceRule
          • ExchangeRate
          • Job
          • JobTask
          • PublicDashboard
          • Schedule
          • UnifiedCost
          • UserDashboard
          • v1
      • dashboard
        • _index
        • v1
          • CustomWidget
          • Dashboard
          • DomainDashboard
          • PrivateDashboard
          • PrivateDataTable
          • PrivateFolder
          • PrivateWidget
          • ProjectDashboard
          • PublicDashboard
          • PublicDataTable
          • PublicFolder
          • PublicWidget
          • v1
      • file_manager
        • _index
        • v1
          • File
          • PublicFile
          • v1
      • identity
        • _index
        • plugin
          • AccountCollector
          • Auth
          • ExternalAuth
          • plugin
        • v1
          • ApiKey
          • Authorization
          • Domain
          • DomainOwner
          • Endpoint
          • Policy
          • Project
          • ProjectGroup
          • Provider
          • Role
          • RoleBinding
          • ServiceAccount
          • Token
          • User
          • v1
        • v2
          • Agent
          • ApiKey
          • App
          • Authorization
          • Domain
          • Endpoint
          • ExternalAuth
          • Job
          • Package
          • Policy
          • Project
          • ProjectGroup
          • Provider
          • Role
          • RoleBinding
          • Schema
          • ServiceAccount
          • System
          • Token
          • TrustedAccount
          • TrustedServiceAccount
          • User
          • UserGroup
          • UserProfile
          • Workspace
          • WorkspaceGroup
          • WorkspaceGroupDetails
          • WorkspaceGroupUser
          • WorkspaceUser
          • v2
      • inventory
        • _index
        • plugin
          • Collector
          • Job
          • plugin
        • v1
          • ChangeHistory
          • CloudService
          • CloudServiceQuerySet
          • CloudServiceReport
          • CloudServiceStats
          • CloudServiceType
          • Collector
          • CollectorRule
          • Job
          • JobTask
          • Metric
          • MetricData
          • MetricExample
          • Namespace
          • Note
          • Region
          • ResourceGroup
          • v1
        • v2
          • Region
          • v2
      • monitoring
        • _index
        • plugin
          • DataSource
          • Event
          • Log
          • Metric
          • Webhook
          • plugin
        • v1
          • Alert
          • DataSource
          • EscalationPolicy
          • Event
          • EventRule
          • Log
          • MaintenanceWindow
          • Metric
          • Note
          • ProjectAlertConfig
          • Webhook
          • v1
      • mzc_service_api
        • _index
        • v1
          • Contract
          • Offering
          • Organization
          • v1
      • notification
        • _index
        • plugin
          • Notification
          • Protocol
          • plugin
        • v1
          • Notification
          • NotificationUsage
          • ProjectChannel
          • Protocol
          • Quota
          • UserChannel
          • v1
      • opsflow
        • _index
        • v1
          • Comment
          • Event
          • Task
          • TaskCategory
          • TaskType
          • v1
      • plugin
        • _index
        • v1
          • Plugin
          • Supervisor
          • v1
      • repository
        • _index
        • v1
          • DashboardTemplate
          • Plugin
          • Policy
          • Repository
          • Schema
          • v1
        • v2
          • Common
          • Provider
          • RemoteRepository
          • Schema
          • v2
      • sample
        • _index
        • v1
          • Helloworld
          • v1
      • search
        • _index
        • v1
          • Resource
          • v1
      • secret
        • _index
        • v1
          • Secret
          • SecretGroup
          • TrustedSecret
          • UserSecret
          • v1
      • statistics
        • _index
        • plugin
          • Storage
          • plugin
        • v1
          • History
          • Resource
          • Schedule
          • Storage
          • v1
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
  • MatchRule
  • UpdateEventRuleRequest
  1. content
  2. en
  3. monitoring
  4. v1

EventRule

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

Creates a new EventRule. You can filter the Events to apply the EventRule by setting the input parameter Conditions. The method can change the Events' assignee or Project.

POST /monitoring/v1/event-rule/create

{{< tabs " create " >}}

{{< tab "Request Example" >}}

  • name (string) Required

  • conditions (EventRuleCondition) Repeated Required

  • conditions_policy (ConditionsPolicy) Required

  • actions (EventRuleActions) Required

  • resource_group (ResourceGroup) Required

  • options (EventRuleOptions)

  • tags (Struct)

  • project_id (string)

{{< highlight json >}} { "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": {}, "project_id": "project-123456789012", "domain_id": "domain-123456789012" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • event_rule_id (string) Required

  • name (string) Required

  • order (int32) Required

  • conditions (EventRuleCondition) Repeated Required

  • conditions_policy (ConditionsPolicy) Required

  • actions (EventRuleActions) Required

  • options (EventRuleOptions) Required

  • tags (Struct) Required

  • resource_group (ResourceGroup) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • project_id (string) Required

  • created_at (string) Required

{{< highlight json >}} { "event_rule_id": "er-123456789012", "order": 1, "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" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

update

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

POST /monitoring/v1/event-rule/update

{{< tabs " update " >}}

{{< tab "Request Example" >}}

  • event_rule_id (string) Required

  • name (string)

  • conditions (EventRuleCondition) Repeated

  • conditions_policy (ConditionsPolicy)

  • actions (EventRuleActions)

  • options (EventRuleOptions)

  • tags (Struct)

{{< highlight json >}} { "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" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • event_rule_id (string) Required

  • name (string) Required

  • order (int32) Required

  • conditions (EventRuleCondition) Repeated Required

  • conditions_policy (ConditionsPolicy) Required

  • actions (EventRuleActions) Required

  • options (EventRuleOptions) Required

  • tags (Struct) Required

  • resource_group (ResourceGroup) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • project_id (string) Required

  • created_at (string) Required

{{< highlight json >}} { "event_rule_id": "er-123456789012", "order": 1, "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" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

change_order

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

POST /monitoring/v1/event-rule/change-order

{{< tabs " change_order " >}}

{{< tab "Request Example" >}}

  • event_rule_id (string) Required

  • order (int32) Required

{{< highlight json >}} { "event_rule_id": "er-123456789012", "order": 2, "domain_id": "domain-123456789012" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • event_rule_id (string) Required

  • name (string) Required

  • order (int32) Required

  • conditions (EventRuleCondition) Repeated Required

  • conditions_policy (ConditionsPolicy) Required

  • actions (EventRuleActions) Required

  • options (EventRuleOptions) Required

  • tags (Struct) Required

  • resource_group (ResourceGroup) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • project_id (string) Required

  • created_at (string) Required

{{< highlight json >}} { "event_rule_id": "er-123456789012", "order": 1, "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" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

delete

Deletes a specific EventRule. You must assign an EventRule resource to delete by specifying event_rule_id.

POST /monitoring/v1/event-rule/delete

{{< tabs " delete " >}}

{{< tab "Request Example" >}}

  • event_rule_id (string) Required

{{< highlight json >}} { "event_rule_id": "er-123456789012", "order": 2, "domain_id": "domain-123456789012" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

get

Gets a specific EventRule. Prints detailed information about the EventRule.

POST /monitoring/v1/event-rule/get

{{< tabs " get " >}}

{{< tab "Request Example" >}}

  • event_rule_id (string) Required

{{< highlight json >}} { "event_rule_id": "er-123456789012", "order": 2, "domain_id": "domain-123456789012" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • event_rule_id (string) Required

  • name (string) Required

  • order (int32) Required

  • conditions (EventRuleCondition) Repeated Required

  • conditions_policy (ConditionsPolicy) Required

  • actions (EventRuleActions) Required

  • options (EventRuleOptions) Required

  • tags (Struct) Required

  • resource_group (ResourceGroup) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • project_id (string) Required

  • created_at (string) Required

{{< highlight json >}} { "event_rule_id": "er-123456789012", "order": 1, "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" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

list

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.

POST /monitoring/v1/event-rule/list

{{< tabs " list " >}}

{{< tab "Request Example" >}}

  • query (Query)

  • event_rule_id (string)

  • name (string)

  • workspace_id (string)

  • project_id (string)

{{< highlight json >}} { "project_id": "project-123456789012", "domain_id": "domain-123456789012" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • results (EventRuleInfo) Repeated Required

  • total_count (int32) Required

{{< highlight json >}} { "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 } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

stat

POST /monitoring/v1/event-rule/stat

Message

ChangeEventRuleOrderRequest

  • event_rule_id (string) Required

  • order (int32) Required

CreateEventRuleRequest

  • name (string) Required

  • conditions (EventRuleCondition) Repeated Required

  • conditions_policy (ConditionsPolicy) Required

  • actions (EventRuleActions) Required

  • resource_group (ResourceGroup) Required

  • options (EventRuleOptions)

  • tags (Struct)

  • project_id (string)

EventRuleActionResponder

  • resource_type (string) Required

  • resource_id (string) Required

EventRuleActions

  • change_assignee (string) Required

  • change_urgency (string) Required

  • change_project (string) Required

  • change_escalation_policy (string) Required

  • match_service_account (MatchRule) Required

  • add_additional_info (Struct) Required

  • no_notification (bool) Required

EventRuleCondition

  • key (string) Required

  • value (string) Required

  • operator (string) Required

EventRuleInfo

  • event_rule_id (string) Required

  • name (string) Required

  • order (int32) Required

  • conditions (EventRuleCondition) Repeated Required

  • conditions_policy (ConditionsPolicy) Required

  • actions (EventRuleActions) Required

  • options (EventRuleOptions) Required

  • tags (Struct) Required

  • resource_group (ResourceGroup) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • project_id (string) Required

  • created_at (string) Required

EventRuleOptions

  • stop_processing (bool) Required

EventRuleQuery

  • query (Query)

  • event_rule_id (string)

  • name (string)

  • workspace_id (string)

  • project_id (string)

EventRuleRequest

  • event_rule_id (string) Required

EventRuleStatQuery

  • query (StatisticsQuery) Required

EventRulesInfo

  • results (EventRuleInfo) Repeated Required

  • total_count (int32) Required

MatchRule

  • source (string) Required

  • target (string) Required

UpdateEventRuleRequest

  • event_rule_id (string) Required

  • name (string)

  • conditions (EventRuleCondition) Repeated

  • conditions_policy (ConditionsPolicy)

  • actions (EventRuleActions)

  • options (EventRuleOptions)

  • tags (Struct)

PreviousEventNextLog

Last updated 1 year ago

CreateEventRuleRequest
UpdateEventRuleRequest
ChangeEventRuleOrderRequest
EventRuleRequest
EventRuleRequest
EventRuleQuery
EventRuleInfo
EventRuleInfo
EventRuleInfo
EventRuleInfo
EventRulesInfo
create
CreateEventRuleRequest
EventRuleInfo
update
UpdateEventRuleRequest
EventRuleInfo
change_order
ChangeEventRuleOrderRequest
EventRuleInfo
delete
EventRuleRequest
Empty
get
EventRuleRequest
EventRuleInfo
list
EventRuleQuery
EventRulesInfo
stat
EventRuleStatQuery
Struct