Volcengine Managed Service for Prometheus
Parameters | Types | Required or Not | Sample Values | Descriptions |
Parameters | Types | Required or Not | Sample Values | Descriptions |
Action | String | Yes | UpdateRuleFile | interface name. The API name is UpdateRuleFile. |
Version | String | Yes | 2021-03-03 | API version. The API version is 2021-03-03. |
Id | String | No | e28ae750-bbb8-4ff4-abf4-1e0e0f88808c | Rule file ID. |
WorkspaceId | String | No | e28ae750-bbb8-4ff4-abf4-1e0e0f88808c | Workspace ID. It is always used together with Name. |
Name | String | No | test | Rule file name. It is always used together with WorkspaceId. |
Description | String | No | This is a description | Description of rule file. |
Content | String | No | {"groups": [{"name": "my_first_recording_rule", "rules": [{"expr": "up", "record": "up"}], "interval": "30s"}]} | Rule file content. |
Parameters | Type | Value examples | Descriptions |
Parameters | Type | Value examples | Descriptions |
Id | String | e28ae750-bbb8-4ff4-abf4-1e0e0f88808c | Rule file ID. |
HTTP status codeS | Error code | Error messages | DescriptionS |
HTTP status codeS | Error code | Error messages | DescriptionS |
400 | QuotaExceeded.RuleGroupCount | Rule Group count has exceeded the quota. | The number of rule files has reached the upper limit. |
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. |
403 | OperationDenied.Create | Operation is denied because RuleFile cannot be created in Workspace`s current status. | It is not allowed to create any rule files on the current status of the workspace. |
404 | NotFound.Workspace | The specified Workspace {{id}} is not found. | The workspace with the ID was not found. |
404 | NotFound.Name | The specified RuleFile {{name}} is not found in Workspace {{workspaceID}}. | The rule file was not found in the specified workspace. |