Volcengine Managed Service for Prometheus
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
Action | String | Yes | UpdateAlertingRule | API name. The API name is UpdateAlertingRule. |
Version | String | Yes | 2021-03-03 | API version. The API version is 2021-03-03. |
Id | String | Yes | 90b5a3da-3464-4718-92e4-039bf41d3cff | Alerting rule ID. |
Name | String | No | alert-rule-demo | The name of the alerting rule. |
Description | String | No | This is an alert rule demo | Description of the alerting rule. |
Type | String | No | vmp/PromQL | Alerting rule type. Available value is vmp/PromQL. |
Query | No | - | Alerting configurations. | |
Levels | No | - | Alerting level. | |
NotifyPolicyId | String | No | e28ae750-bbb8-4ff4-abf4-1e0e0f88808c | Alerting notification policy ID. |
NotifyGroupPolicyId | String | No | e28ae750-bbb8-4ff4-abf4-1e0e0f88808c | Alert aggregation policy ID. |
Annotations | No | - | Annotations added to the alert. | |
Labels | No | - | The labels to be added to an alert. |
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
WorkspaceId | String | Yes | e28ae750-bbb8-4ff4-abf4-1e0e0f88808c | Workspace ID. |
PromQL | String | Yes | sum(up) | Query statement. |
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
Level | String | Yes | P0 | Alerting rule level. Level P0, P1, and P2 are available currently. |
For | String | Yes | 5m | How long the state of meeting alerting conditions needs to last before raising alerts:
|
Comparator | String | Yes | > | Operators used in alerting rules:
|
Threshold | Double | No | 1.0 | Threshold of the alerting rule. |
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
Name | String | Yes | key1 | Key of label or annotation. |
Value | String | No | value1 | Value of label or annotation. Leaving it empty means the key will be deleted correspondingly. |
Parameter | Type | Sample value | Description |
Parameter | Type | Sample value | Description |
Id | String | 90b5a3da-3464-4718-92e4-039bf41d3cff | Alerting rule ID. |
HTTP status codes | Error codes | Error message | Description |
HTTP status codes | Error codes | Error message | Description |
400 | InvalidParameter.{{parameter}} | The specified parameter {{parameter}} is invalid. | An invalid parameter was found. For example, an invalid workspace name was included in requests. |
400 | MissingParameter.{{parameter}} | The required parameter {{parameter}} is missing. | Missing necessary parameters. |
403 | ProductUnsubscribed | You are not subscribed to VMP. Please go to the VMP console web page to subscribe to the service | The account is not subscribed to the VMP Service. |
404 | NotFound.Id | The specified Contact/ContactGroup {{Id}} is not found. | The specified contact person/group is not found. |
409 | Conflict.Name | The specified name conflicts with existing {{resource}}. | The specified name has already been used by an existing resource. |