SecretKey
.Parameter | Description |
SecretId, SecretKey | Enter the prepared `SecretId` and `SecretKey` |
Region | Select the corresponding region |
SceneType | Enter `ST_ALARM` |
Module | Enter `monitor` |
MonitorTypes.N | Optional |
Response.QceNamespacesNew.N.Id
is the Namespace
required by alarm policy creation.Namespace
is the alarm policy type, which is different from the Tencent Cloud service namespace used to pull monitoring data.Parameter | Description |
SecretId, SecretKey | Enter the prepared `SecretId` and `SecretKey` |
Region | Select the corresponding region |
Module | Enter `monitor` |
MonitorType | Enter `MT_QCE` |
Namespace | Enter the alarm policy type obtained in the "Preparing alarm policy type" step, i.e., `Response.QceNamespacesNew.N.Id` in the returned result |
Response.Metrics.N
lists all the alarm metrics under the policy type.Parameter | Description |
SecretId, SecretKey | Enter the prepared `SecretId` and `SecretKey` |
Region | Select the corresponding region |
Module | Enter `monitor` |
Namespace | Enter the alarm policy type obtained in the "Preparing alarm policy type" step, i.e., `Response.QceNamespacesNew.N.Id` in the returned result |
SecretId
and SecretKey
text boxes.monitor
in Module, a custom policy name in PolicyName, and MT_QCE
in MonitorType.cvm_device
.Remark
and Enable
are optional, while ProjectId
is required.ProjectId
is the project ID. -1 indicates no project, 0 indicates the default project, and the default value is -1. This parameter is optional depending on the policy type. For example, some alarm policy types don't have the concept of project (such as VPC), and the default value -1
can be used. If the alarm policy type has the concept of project (such as CVM - basic monitoring), an error will be reported if the default value -1
is passed in, and the input parameter should be changed to "0".Condition
as shown below:Parameter | Required | Description |
IsUnionRule | Yes | Metric trigger condition operator. Valid values: 0 (OR), 1 (AND). OR means that the alarm will be sent when any condition is triggered, while AND means that the alarm will be sent when all conditions are triggered |
Rules.N | Yes | List of alarm trigger conditions, which can be configured by referring to the `AlarmPolicyRule` parameter MetricName: enter the `MetricName` (Metrics.N.MetricName) returned in the Preparing metric list step Period: enter the `Period` (Metrics.N.MetricConfig.Period) returned in the Preparing metric list step Operator: enter the `Operator` (Metrics.N.MetricConfig.Operator) returned in the Preparing metric list step Value: enter a threshold without the unit, such as 80 ContinuePeriod: enter the `ContinuePeriod` (Metrics.N.MetricConfig.ContinuePeriod) returned in the Preparing metric list step NoticeFrequency: set the alarm frequency in seconds. Parameter description: alarm interval in seconds. Valid values: 0 (do not repeat), 300 (alarm once every 5 minutes), 600 (alarm once every 10 minutes), 900 (alarm once every 15 minutes), 1800 (alarm once every 30 minutes), 3600 (alarm once every hour), 7200 (alarm once every 2 hours), 10800 (alarm once every 3 hours), 21600 (alarm once every 6 hours), 43200 (alarm once every 12 hours), 86400 (alarm once every day) IsPowerNotice: set whether the alarm frequency grows exponentially. Valid values: 0 (no), 1 (yes) Other parameters can be left empty |
SecretId
and SecretKey
text boxes.monitor
in Module.InstanceGroupId
or Dimensions
as detailed below:Dimensions
as detailed below:Parameter | Description |
RegionId, Region | Please see the instance region description; for example, for the Guangzhou region, `RegionId` is `1`, and `Region` is `gz` |
Dimensions | Enter the CVM instance ID, which can be obtained through the DescribeInstancesAPI API. The input parameter format is {"unInstanceId":"ins-xxxxxxxx'"} |
EventDimensions | Enter the globally unique instance ID, which can be obtained through the DescribeInstancesAPI API. The input parameter format is {"uuid":"9d51a69e-0e4a-4120-ae58-9c073c851e24"} |
Was this page helpful?