Volcengine Managed Service for Prometheus
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
Action | String | Yes | ListAlerts | API name. The API name is ListAlerts. |
Version | String | Yes | 2021-03-03 | API version. The API version is 2021-03-03. |
Limit | Long | No | 10 | Alerts per page:
|
SearchAfter | String | No | ********* | Page token. |
Filter | No | - | Alert filter condition. | |
OrderBy | String | No | InitialAlertTimestamp | Specify a value for sorting order. The only supported value is InitialAlertTimestamp. |
Desc | Boolean | No | true | Whether to sort results in descending order:
|
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
Ids | Array of String | No | ["e28ae750-bbb8-4ff4-abf4***"] | Exact query by alert IDs. |
CurrentPhase | String | No | Active | Exact query by current statuses of alerts:
|
Level | String | No | P0 | Exact query by alert levels. Available levels: P0, P1, and P2. |
AlertingRuleIds | Array of String | No | ["e28ae750-bbb8-4ff4-abf4-1e0e0f88808c"] | Exact query by alert rule IDs. |
Parameter | Type | Sample value | Description |
Parameter | Type | Sample value | Description |
Total | Long | 100 | Total number of alerts. |
ContinueToken | String | ******* | The page token used to mark one of the segments in a list. |
Items | - | Alert list. |
Parameter | Type | Sample value | Description |
Parameter | Type | Sample value | Description |
Id | String | e28ae750-bbb8-4ff4-abf4-1e0e0f88808c | The alert ID. |
AlertingRuleId | String | e28ae750-bbb8-4ff4-abf4-1e0e0f88808c | Alert rule ID. |
Levels | | Alert level configurations. | |
InitialAlertTimestamp | String | 2020-01-01T00:00:00Z | The start of a time range for alert statistics. It is presented in RFC3339 format. |
LastAlertTimestamp | String | 2020-01-01T00:00:00Z | The time of the latest alert that has been raised. It is presented in RFC3339 format. |
ResolveTimestamp | String | 2020-01-01T00:00:00Z | The end of a time range for alert statistics. It is presented in RFC3339 format. |
CurrentPhase | String | Active | Alert status:
|
CurrentLevel | String | P0 | Levels of alerts. Level P0, P1, and P2 are available currently. |
AlertingRuleType | String | vmp/PromQL | Alert rule type. Available value is vmp/PromQL. |
AlertingRuleQuery | - | Alert configuration. | |
Resource | - | Alert resource. |
Parameter | Type | Sample value | Description |
Parameter | Type | Sample value | Description |
Level | String | P0 | Levels of alerts. Level P0, P1, and P2 are available currently. |
For | String | 5 minutes | How long the state of meeting alert conditions needs to last before raising alerts:
|
Comparator | String | > | Operators used in alert rules:
|
Threshold | Double | 1.0 | The threshold of the alert. |
Parameter | Type | Sample value | Description |
Parameter | Type | Sample value | Description |
WorkspaceId | String | e28ae750-bbb8-4ff4-abf4-1e0e0f88808c | Workspace ID |
PromQL | String | sum(up) | Query statement. |
Parameter | Type | Sample value | Description |
Parameter | Type | Sample value | Description |
Labels | - |
|
Parameter | Type | Sample value | Description |
Parameter | Type | Sample value | Description |
Key | String | key | Key |
Value | String | value | Value |
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. | The specified parameter is invalid. |
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. |