1.2

1.2

scpcli servicewatch alert create
--value <value>
--key <value>
--statistic <value>
--period <value>
--operator <value>
--namespace_id <value>
--name <value>
--metric_id <value>
--level <value>
[--description <value>]
[--dimensions <value>]
[--evaluation_count <value>]
[--individual_items <value>]
[--lower_bound <value>]
[--missing_data_option <value>]
[--recipient_ids <value>]
[--tags <value>]
[--threshold <value>]
[--upper_bound <value>]
[--violation_count <value>]

Description

Create an Alert

상태 ACTIVE (CURRENT)

버전최소 지원 보장일
1.2-

Parameters

NameTypeDescriptionExample
value
required
stringDimension Value10bf5d24-0f20-4066-bb0b-de2b1d6ff502
key
required
stringDimension KeyInstanceId
statistic
required
stringStatistic - SUM, AVG, MAX, MINAVG
period
required
integerPeriod (seconds)300
operator
required
stringOperator - EQ, NOT_EQ, GT, GTE, LT, LTE, RANGERANGE
namespace_id
required
stringNamespace IDd583a229-9766-4eb8-96c4-ec389902ba3d
name
required
stringAlert NameAlert1
metric_id
required
stringMetric IDd91097ac-0387-4e69-adb2-7b8d453b8db5
level
required
stringAlert Level - HIGH, MIDDLE, LOWHIGH
description
optional
stringAlert DescriptionAlert1 Description
dimensions
optional
arrayList of Dimensions'{"key": "InstanceId", "value": "10bf5d24-0f20-4066-bb0b-de2b1d6ff502"}'
evaluation_count
optional
integerEvaluation Count for the Alert Condition3
individual_items
optional
arrayList of Individual Items'{"key": "VolumeID", "value": "45fbde15-cdd2-4891-be31-4a9de75fccda"}'
lower_bound
optional
numberLower bound for the Alert range operator80.0
missing_data_option
optional
****Missing Data Option - MISSING, BREACHING, NOT_BREACHING, IGNOREBREACHING
recipient_ids
optional
arrayList of User IDs1234da92-634a-4f8c-932e-9d650599ab1b
tags
optional
arrayList of Tags'{"key": "key01", "value": "value01"}'
threshold
optional
numberThreshold for the Alert Condition (except fro RANGE operator)80.0
upper_bound
optional
numberUpper bound for the Alert range operator90.0
violation_count
optional
integerViolation Count for the Alert Condition2

Responses

NameDescriptionExample
idAlert ID0ad6da92-634a-4f8c-932e-9d650599ab1e
created_atCreated date time
created_byCreator IDf4b8a4c4017f4f8d8399f0c02582ae47