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
  • EscalationPolicy
  • create
  • update
  • set_default
  • delete
  • get
  • list
  • stat
  • Message
  • CreateEscalationPolicyRequest
  • EscalationPoliciesInfo
  • EscalationPolicyInfo
  • EscalationPolicyQuery
  • EscalationPolicyRequest
  • EscalationPolicyRule
  • EscalationPolicyStatQuery
  • GetEscalationPolicyRequest
  • UpdateEscalationPolicyRequest

Was this helpful?

  1. Monitoring
  2. V1

Escalation Policy

An EscalationPolicy is a set of rules to deliver an alert to assigned members.

Package : spaceone.api.monitoring.v1

EscalationPolicy

EscalationPolicy Methods:

Method
Request
Response

create

POST /monitoring/v1/escalation-policies

Creates a new EscalationPolicy. When creating an EscalationPolicy, if the project_id is assigned, the EscalationPolicy is applied to the Project with the same project_id. If an EscalationPolicy is set as a global policy, all Projects in the same domain can apply the policy.

Type
Message

Request

Response

{
    "name": "es-test",
    "rules": [
        {
            "notification_level": "LV1",
            "escalate_minutes": 30
        },
        {
            "notification_level": "LV2",
            "escalate_minutes": 30
        }
    ],
    "repeat_count": 2,
    "finish_condition": "ACKNOWLEDGED",
    "domain_id": "domain-58010aa2e451"
}
{
    "escalation_policy_id": "ep-526e536fdca9",
    "name": "es-test",
    "rules": [
        {
            "notification_level": "LV1",
            "escalate_minutes": 30
        },
        {
            "notification_level": "LV2",
            "escalate_minutes": 30
        }
    ],
    "repeat_count": 2,
    "finish_condition": "ACKNOWLEDGED",
    "scope": "GLOBAL",
    "tags": {},
    "domain_id": "domain-58010aa2e451",
    "created_at": "2022-06-21T09:22:45.340Z"
}

update

PUT /monitoring/v1/escalation-policy/{escalation_policy_id}

Updates a specific EscalationPolicy. You can make changes in EscalationPolicy settings, including the name, the escalation process, and the number of iterations.

Type
Message

Request

Response

{
    "escalation_policy_id": "ep-526e536fdca9",
    "name": "es-test2",
    "rules": [
        {
            "notification_level": "LV1",
            "escalate_minutes": 15
        },
        {
            "notification_level": "LV2",
            "escalate_minutes": 15
        },
        {
            "notification_level": "LV3",
            "escalate_minutes": 15
        }
    ],
    "repeat_count": 1,
    "finish_condition": "RESOLVED",
    "domain_id": "domain-58010aa2e451"
}
{
    "escalation_policy_id": "ep-526e536fdca9",
    "name": "es-test2",
    "rules": [
        {
            "notification_level": "LV1",
            "escalate_minutes": 15
        },
        {
            "notification_level": "LV2",
            "escalate_minutes": 15
        },
        {
            "notification_level": "LV3",
            "escalate_minutes": 15
        }
    ],
    "repeat_count": 1,
    "finish_condition": "RESOLVED",
    "scope": "GLOBAL",
    "tags": {},
    "domain_id": "domain-58010aa2e451",
    "created_at": "2022-06-21T09:22:45.340Z"
}

set_default

PUT /monitoring/v1/escalation-policy/{escalation_policy_id}/set-default

Sets a specific EscalationPolicy as default. Only policies configured as global can be set as default. When a Project is created, even if you did not configure any policy to the Project, the default policy set by this api method is applied.

Type
Message

Request

Response

{
    "escalation_policy_id": "ep-526e536fdca9",
    "domain_id": "domain-58010aa2e451"
}
{
    "escalation_policy_id": "ep-526e536fdca9",
    "name": "es-test2",
    "is_default": true,
    "rules": [
        {
            "notification_level": "LV1",
            "escalate_minutes": 15
        },
        {
            "notification_level": "LV2",
            "escalate_minutes": 15
        },
        {
            "notification_level": "LV3",
            "escalate_minutes": 15
        }
    ],
    "repeat_count": 1,
    "finish_condition": "RESOLVED",
    "scope": "GLOBAL",
    "tags": {},
    "domain_id": "domain-58010aa2e451",
    "created_at": "2022-06-21T09:22:45.340Z"
}

delete

DELETE /monitoring/v1/escalation-policy/{escalation_policy_id}

Deletes a specific EscalationPolicy. Deletes the EscalationPolicy with the escalation_policy_id from the deletion request.

Type
Message

Request

Response

{
    "escalation_policy_id": "ep-d75670166af4",
    "domain_id": "domain-58010aa2e451"
}

get

GET /monitoring/v1/escalation-policy/{escalation_policy_id}

Gets a specific EscalationPolicy. Prints detailed information about the EscalationPolicy, including the name, rules, and termination conditions.

Type
Message

Request

Response

{
    "escalation_policy_id": "ep-d75670166af4",
    "domain_id": "domain-58010aa2e451"
}
{
    "escalation_policy_id": "ep-d75670166af4",
    "name": "0525-ms-test-2",
    "rules": [
        {
            "notification_level": "LV2",
            "escalate_minutes": 30
        },
        {
            "notification_level": "LV2"
        }
    ],
    "finish_condition": "ACKNOWLEDGED",
    "scope": "GLOBAL",
    "tags": {},
    "domain_id": "domain-58010aa2e451",
    "created_at": "2022-05-25T09:31:38.573Z"
}

list

GET /monitoring/v1/escalation-policies

POST /monitoring/v1/escalation-policies/search

Gets a list of all EscalationPolicies. You can use a query to get a filtered list of EscalationPolicies.

Type
Message

Request

Response

{
    "query": {},
    "domain_id": "domain-58010aa2e451"
}
{
    "results": [
        {
            "escalation_policy_id": "ep-7c9745003372",
            "name": "0525-ms-test-1",
            "rules": [
                {
                    "notification_level": "LV1"
                }
            ],
            "finish_condition": "ACKNOWLEDGED",
            "scope": "GLOBAL",
            "tags": {},
            "domain_id": "domain-58010aa2e451",
            "created_at": "2022-05-25T09:31:15.150Z"
        },
        {
            "escalation_policy_id": "ep-d75670166af4",
            "name": "0525-ms-test-2",
            "rules": [
                {
                    "notification_level": "LV2",
                    "escalate_minutes": 30
                },
                {
                    "notification_level": "LV2"
                }
            ],
            "finish_condition": "ACKNOWLEDGED",
            "scope": "GLOBAL",
            "tags": {},
            "domain_id": "domain-58010aa2e451",
            "created_at": "2022-05-25T09:31:38.573Z"
        }
    ],
    "total_count": 2
}

stat

POST /monitoring/v1/escalation-policies/stat

Type
Message

Request

Response

Message

CreateEscalationPolicyRequest

Field
Type
Required
Description

name

string

✔

rules

✔

repeat_count

✘

finish_condition

  • NONE

  • ACKNOWLEDGED

  • RESOLVED

✘

project_id

string

✘

tags

✘

domain_id

string

✔

EscalationPoliciesInfo

Field
Type
Description

results

total_count

EscalationPolicyInfo

Field
Type
Description

escalation_policy_id

string

name

string

is_default

bool

rules

repeat_count

finish_condition

  • NONE

  • ACKNOWLEDGED

  • RESOLVED

scope

  • SCOPE_NONE

  • GLOBAL

  • PROJECT

project_id

string

tags

domain_id

string

created_at

string

EscalationPolicyQuery

Field
Type
Required
Description

query

✘

escalation_policy_id

string

✘

name

string

✘

is_default

bool

✘

finish_condition

  • NONE

  • ACKNOWLEDGED

  • RESOLVED

✘

scope

  • SCOPE_NONE

  • GLOBAL

  • PROJECT

✘

project_id

string

✘

domain_id

string

✔

EscalationPolicyRequest

Field
Type
Required
Description

escalation_policy_id

string

✔

domain_id

string

✔

EscalationPolicyRule

Field
Type
Description

notification_level

  • NONE

  • ALL

  • LV1

  • LV2

  • LV3

  • LV4

  • LV5

escalate_minutes

EscalationPolicyStatQuery

Field
Type
Required
Description

query

✔

domain_id

string

✔

GetEscalationPolicyRequest

Field
Type
Required
Description

escalation_policy_id

string

✔

domain_id

string

✔

only

list of string

✘

UpdateEscalationPolicyRequest

Field
Type
Required
Description

escalation_policy_id

string

✔

name

string

✘

rules

✘

repeat_count

✘

finish_condition

  • NONE

  • ACKNOWLEDGED

  • RESOLVED

✘

tags

✘

domain_id

string

✔

PreviousData SourceNextEvent

Last updated 2 years ago

Was this helpful?

google.protobuf.Empty
google.protobuf.Struct
google.protobuf.Empty
google.protobuf.Struct
int32
google.protobuf.Struct
int32
int32
google.protobuf.Struct
spaceone.api.core.v1.Query
int32
spaceone.api.core.v1.StatisticsQuery
int32
google.protobuf.Struct
create
CreateEscalationPolicyRequest
EscalationPolicyInfo
update
UpdateEscalationPolicyRequest
EscalationPolicyInfo
set_default
EscalationPolicyRequest
EscalationPolicyInfo
delete
EscalationPolicyRequest
get
GetEscalationPolicyRequest
EscalationPolicyInfo
list
EscalationPolicyQuery
EscalationPoliciesInfo
stat
EscalationPolicyStatQuery
CreateEscalationPolicyRequest
EscalationPolicyInfo
UpdateEscalationPolicyRequest
EscalationPolicyInfo
EscalationPolicyRequest
EscalationPolicyInfo
EscalationPolicyRequest
GetEscalationPolicyRequest
EscalationPolicyInfo
EscalationPolicyQuery
EscalationPoliciesInfo
EscalationPolicyStatQuery
list of EscalationPolicyRule
list of EscalationPolicyInfo
list of EscalationPolicyRule
list of EscalationPolicyRule