1.3

1.3

scp-cli servicewatch alert set
--id <value>
--value <value>
--key <value>
--statistic <value>
--period <value>
--operator <value>
--namespace_id <value>
--metric_id <value>
--level <value>
[--dimensions <value>]
[--evaluation_count <value>]
[--individual_items <value>]
[--lower_bound <value>]
[--missing_data_option <value>]
[--threshold <value>]
[--upper_bound <value>]
[--violation_count <value>]

Description

Set the Alert

State ACTIVE (SUPPORTED)

VersionNot Before
1.320270131

Parameters

NameTypeDescriptionExample
id
required
stringAlert ID3234bd0f12fa4d0b97ab9feff6c09b8e
value
required
stringDimension Value10bf5d24-0f20-4066-bb0b-de2b1d6ff502
key
required
stringDimension Keyresource_id
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 ID1d9d05af5c624f2cb80a45f2c911e2f4
metric_id
required
stringMetric IDf13aab3b88c341b2bc73f8925a0e8cc5
level
required
stringAlert Level - HIGH, MIDDLE, LOWHIGH
dimensions
optional
arrayList of Dimensions'{"key": "resource_id", "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
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
keyDimension Keyresource_id
valueDimension Value10bf5d24-0f20-4066-bb0b-de2b1d6ff502