Volcengine Managed Service for Prometheus
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
Action | String | Yes | UpdateAlertingRuleGroup | The API name. The API name is UpdateAlertingRuleGroup. |
Version | String | Yes | 2021-03-03 | The API version. The API version is 2021-03-03. |
Id | String | Yes | 421d-****-6037**** | ID of alerting rule group. |
AlertingRuleTemplateVersion | String | No | 1.0.1 | Version of alerting rule template. Leaving it empty indicates the latest version. |
Name | String | No | test | The name of the alert rule group.
|
Description | String | No | - | Description of alerting rule group. It is a string that can be up to 4096 characters in length. |
WorkspaceId | String | No | 421d-****-ba4d*** | Workspace ID |
Items | No | - | A list of associated alerting rules. | |
NotifyPolicyId | String | No | 421d-****-ba4d*** | Alert notification policy ID. |
NotifyGroupPolicyId | String | No | 421d-****-ba4d*** | Alert aggregation policy ID. |
Variables | No | - | Variable configuration. | |
NotifyGroupPolicySource | String | No | VMP | The source of the alert aggregation policy. |
NotifyPolicySource | String | No | VMP | The alert notification policy source. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
Id | Long | Yes | 1 | The serial number of the alert rule template item. |
Enable | Boolean | Yes | true | Status of alerting rule. Available values:
|
Labels | No | - | labels in alerting notifications. | |
Levels | No | - | Alerting level. | |
Annotations | No | - | Annotations in alerting notifications. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
Id | Long | No | 1 | ID of variable. |
Name | String | No | Cluster | The variable name. It corresponds to the Name in AlertingRuleTemplate.Variables. It can be used to replace the ID for stable matching during upgrades or variable reordering. |
Values | Array of String | No | demo | Default value of variable. If the value is left empty:
|
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
Name | String | Yes | key1 | Tag key. |
Value | String | No | value1 | Value of label. Leaving it empty means the key will be deleted correspondingly. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
Level | String | Yes | P0 | Alerting rule level. Level P0, P1, and P2 are available currently. |
For | String | Yes | 5 minutes | Alert duration, value:
|
Comparator | String | Yes | > | Operators used in alert rules:
|
Threshold | Double | No | 1.0 | Threshold of the alert rule. |
Parameters | Type | Sample value | Description |
Parameters | Type | Sample value | Description |
Id | String | e28b-****-8808 | ID of alerting rule group. |
HTTP status codes | Error codes | Error messages | Description |
HTTP status codes | Error codes | Error messages | Description |
403 | ProductUnsubscribed | You are not subscribed to VMP. Please go to the VMP console web page to subscribe to the service | The current account is not subscribed to the VMP service. |
400 | InvalidParameter.{{parameter}} | The specified parameter {{parameter}} is invalid. | The input is invalid. For example, the workspace name does not meet the requirements. |
400 | MissingParameter.{{parameter}} | The required parameter {{parameter}} is missing. | A required parameter is missing. |