1.2
1.2
scpcli 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
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.2 | - |
Parameters
| Name | Type | Description | Example |
|---|---|---|---|
| id required | string | Alert ID | 0ad6da92-634a-4f8c-932e-9d650599ab1e |
| value required | string | Dimension Value | 10bf5d24-0f20-4066-bb0b-de2b1d6ff502 |
| key required | string | Dimension Key | InstanceId |
| statistic required | string | Statistic - SUM, AVG, MAX, MIN | AVG |
| period required | integer | Period (seconds) | 300 |
| operator required | string | Operator - EQ, NOT_EQ, GT, GTE, LT, LTE, RANGE | RANGE |
| namespace_id required | string | Namespace ID | d583a229-9766-4eb8-96c4-ec389902ba3d |
| metric_id required | string | Metric ID | d91097ac-0387-4e69-adb2-7b8d453b8db5 |
| level required | string | Alert Level - HIGH, MIDDLE, LOW | HIGH |
| dimensions optional | array | List of Dimensions | '{"key": "InstanceId", "value": "10bf5d24-0f20-4066-bb0b-de2b1d6ff502"}' |
| evaluation_count optional | integer | Evaluation Count for the Alert Condition | 3 |
| individual_items optional | array | List of Individual Items | '{"key": "VolumeID", "value": "45fbde15-cdd2-4891-be31-4a9de75fccda"}' |
| lower_bound optional | number | Lower bound for the Alert range operator | 80.0 |
| missing_data_option optional | **** | Missing Data Option - MISSING, BREACHING, NOT_BREACHING, IGNORE | BREACHING |
| threshold optional | number | Threshold for the Alert Condition (except fro RANGE operator) | 80.0 |
| upper_bound optional | number | Upper bound for the Alert range operator | 90.0 |
| violation_count optional | integer | Violation Count for the Alert Condition | 2 |
Responses
| Name | Description | Example |
|---|---|---|
| key | Dimension Key | InstanceId |
| value | Dimension Value | 10bf5d24-0f20-4066-bb0b-de2b1d6ff502 |