Create Alert Severity¶
Create a new alert severity.
Request Format¶
POST https://{apigw-address}/event-service/v2.1/alert-severities?action=create
Request Parameters (URI)¶
Name | Location (Path/Query) | Required or Not | Data Type | Description |
---|---|---|---|---|
orgId | Query | true | String | Organization ID which the asset belongs to. How to get orgId>> |
Request Parameters (Body)¶
Name | Required or Not | Data Type | Description |
---|---|---|---|
severity | true | generateSeverity strucuture | Alert severity. See generateSeverity Struct. |
generateSeverity Struct ¶
Name | Required or Not | Data Type | Description |
---|---|---|---|
severityId | true | String | Alert severity ID |
severityDesc | true | StringI18n | Internationalized description of alert severity, for which the default fields are mandatory. For the structure, see Internationalized name struct>> |
tags | false | tags data type | Tags of alert severity |
Response Parameters¶
Name | Data Type | Description |
---|---|---|
data | String | severityId |
Sample¶
Request Sample¶
POST https://{apigw-address}/event-service/v2.1/alert-severities?action=create&orgId=yourOrgId
{
"severity": {
"severityId": "planetTemperature",
"severityDesc": {
"defaultValue": "Error",
"i18nValue": {
"en_US": "Error",
"zh_CN": "错误"
}
},
"tags": {
"year": "2000",
"author": "cshan"
}
}
}
Return Sample¶
{
"code": 0,
"msg": "OK",
"requestId": "4873095e-621d-4cfd-bc2c-edb520f574ea"
}