Volcengine Managed Service for Prometheus
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
Action | String | Yes | UpdateSilencePolicy | The name of the API. The API name is UpdateSilencePolicy. |
Version | String | Yes | 2021-03-03 | The API version. The API version is 2021-03-03. |
Id | String | Yes | e28ae750-bbb8-4ff4-abf4-1e0e0f88808c | Alert silence policy ID. |
Name | String | No | alert-silence-demo | Name of alert silence policy.
|
Description | String | No | This is a description | Description of alert policy.
|
TimeRangeMatchers | No | - | Alert silence time. | |
MetricLabelMatchers | No | | Alert event label matchers. At most 32 items are allowed. Items follow an "OR" relationship. Different LabelMatchers are evaluated using an "AND" relationship. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
Date | String | No | 2006-01-02 15:04~2006-01-03 14:04 | The time period of the alert silence. Used to activate alert silence within a specified time period. |
Location | String | Yes | Asia/Shanghai | Time zone. |
PeriodicDate | No | - | The alert silence period. Used to configure the alert silence that takes effect periodically. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
Matchers | Yes | | Label matchers. Each LabelMatcher array can contain up to 24 items. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
Time | String | No | 20:00~21:12 | Time period. You can specify multiple different time periods separated by commas (,), for example, 20:00~21:12,22:00~23:12. 4 time periods can be configured at most. |
Weekday | String | No | 1,3,5 | Specific days within a week. You can specify multiple different time periods with commas (,). For example, 1,3,5 indicates Monday, Wednesday, and Friday of each week. 7 time periods can be configured at most. |
DayOfMonth | String | No | 2~3 | Specific days within a month. You can specify multiple different time periods separated by commas (,). For example, 2~3 indicates the 2nd and 3rd day of each month. 10 time periods can be configured at most. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
Label | String | Yes | app | Label. |
Value | String | Yes | test | Label Value. |
Operator | String | No | Equal | The operator. Possible values:
|
Parameters | Type | Sample value | Description |
Parameters | Type | Sample value | Description |
Id | String | e28ae750-bbb8-4ff4-abf4*** | Alert silence policy ID. |
HTTP status codes | Error code | Error messages | Descriptions |
HTTP status codes | Error code | Error messages | Descriptions |
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. | A required parameter is missing. |
403 | ProductUnsubscribed | You are not subscribed to VMP. Please go to the VMP console web page to subscribe to the service | The account has not subscribed to the VMP service. |
404 | NotFound.Id | The specified Contact/ContactGroup {{Id}} is not found. | The specified contact person/group was not found. |
409 | Conflict.Name | The specified name conflicts with existing {{resource}}. | The specified name has already been used by an existing resource. |