Update Alert Severity

Update an alert severity, for which severityId is required to be verified.

Request Format

POST https://{apigw-address}/event-service/v2.1/alert-severities?action=update

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>>

isPatchUpdate

Query

true

Boolean

Whether to perform partial update.
When it is true, only the fields specified in the parameter are updated;
when it is false, all the fields will be updated, i.e. the fields without specified value will be left blank. Set as true by default.

Request Parameters (Body)

Name

Required or Not

Data Type

Description

severity

true

generateSeverity struct

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. For details, see How to use tag>>

Response Parameters

Name

Data Type

Description

data

null

null

Sample

Request Sample

POST https://{apigw-address}/event-service/v2.1/alert-severities?action=update&orgId=1c499110e8800000&isPatchUpdate=false
{
    "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",
    "data": ""
}