monitor — Cloud Monitor
monitor · 2018-07-24

CreateAlarmPolicy

POST

Create an alarm policy.

Wire call

Converge Cloud is RPC over HTTP. There is one path — / — and the action travels in the X-TC-Action header. The /monitor/CreateAlarmPolicy path used in the OpenAPI document is a documentation convenience so each action is addressable; it is not a route on the server.

curl
curl -sS https://monitor.api3.convergecloud.com/ \
  -H 'Authorization: TC3-HMAC-SHA256 Credential=<SecretId>/<YYYY-MM-DD>/monitor/tc3_request, SignedHeaders=content-type;host;x-tc-action, Signature=<sig>' \
  -H 'Content-Type: application/json; charset=utf-8' \
  -H 'Host: monitor.api3.convergecloud.com' \
  -H 'X-TC-Action: CreateAlarmPolicy' \
  -H 'X-TC-Version: 2018-07-24' \
  -H 'X-TC-Timestamp: <unix-seconds>' \
  -H 'X-TC-Region: luzon' \
  -d '{}'

Request parameters

FieldTypeRequiredDescription
ModulestringYesValue fixed at "monitor"
PolicyNamestringYesPolicy name, which can contain up to 20 characters
MonitorTypestringYesMonitor type. Valid values: MT_QCE (Converge Cloud service monitoring)
NamespacestringYesType of alarm policy, which can be obtained via DescribeAllNamespaces. For the monitoring of Converge Cloud services, the value of this parameter is `QceNamespacesNew.N.Id` of the output parameter of `DescribeAllNamespaces`, for example, `cvm_device`.
RemarkstringNoRemarks with up to 100 letters, digits, underscores, and hyphens
EnableintegerNoWhether to enable. Valid values: 0 (no), 1 (yes). Default value: 1. This parameter can be left empty
ProjectIdintegerNoProject ID. For products with different projects, a value other than `-1` must be passed in. `-1`: no project; `0`: default project. If no value is passed in, `-1` will be used. The supported project IDs can be viewed on the **Account Center** > **Project Management** page of the console.
ConditionTemplateIdintegerNoTrigger condition template ID. Pass in this parameter if the policy is associated with the trigger condition template; otherwise, pass in the `Condition` parameter. The trigger condition template ID can be obtained via `DescribeConditionsTemplateList`.
ConditionAlarmPolicyConditionNoMetric trigger condition. The supported metrics can be queried via DescribeAlarmMetrics.
EventConditionAlarmPolicyEventConditionNoEvent trigger condition. The supported events can be queried via DescribeAlarmEvents.
NoticeIdsstring[]NoList of notification rule IDs, which can be obtained via DescribeAlarmNotices
TriggerTasksAlarmPolicyTriggerTask[]NoTriggered task list
FilterAlarmPolicyFilterNoGlobal filter.
GroupBystring[]NoAggregation dimension list, which is used to specify which dimension keys data is grouped by.
TagsTag[]NoTags bound to a template
LogAlarmReqInfoLogAlarmReqNoLog alarm information
HierarchicalNoticesAlarmHierarchicalNotice[]NoNotification rules for different alarm levels
MigrateFlagintegerNoA dedicated field for migration policies. 0: Implement authentication logic; 1: Skip authentication logic.
EbSubjectstringNoThe alert configured for an event

Response

Fields are returned inside the Response envelope. Converge Cloud answers HTTP 200 for errors as well as successes, so read Response.Error rather than the status code — and test for the presence of that object, because Code is occasionally the empty string.

FieldTypeDescription
PolicyIdstringAlarm policy ID
OriginIdstringAlarm policy ID, which can be used when you call APIs (BindingPolicyObject, UnBindingAllPolicyObject, UnBindingPolicyObject) to bind/unbind instances or instance groups to/from an alarm policy
RequestIdstringThe unique request ID, which is returned for each request. RequestId is required for locating a problem.
Success
{
  "Response": {
    "PolicyId": …,
    "OriginId": …,
    "RequestId": "…"
  }
}
Error
{
  "Response": {
    "Error": { "Code": "…", "Message": "…" },
    "RequestId": "…"
  }
}

Try it

CredentialThe key never leaves this tab — it signs the request here. The signed request goes to /api-relay/monitor.
Request bodyvalid JSONPOST monitor.api3.convergecloud.com · CreateAlarmPolicy
Recorded example response — captured 2026-09-16
{
  "Response": {
    "OriginId": "1838743",
    "PolicyId": "policy-vi1do18b",
    "RequestId": "ec253698-c640-e5b0-77dd-01ec5e617576"
  }
}