托管 Prometheus
参数 | 类型 | 是否必选 | 示例值 | 描述 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
Action | String | 是 | GetRuleFile | 接口名称。当前 API 的名称为 GetRuleFile。 |
Version | String | 是 | 2021-03-03 | 接口版本。当前 API 的版本为 2021-03-03。 |
Id | String | 否 | 1c3f6e48-b5e1-4832-8564*** | 规则文件 ID。 |
WorkspaceId | String | 否 | e28ae750-bbb8-4ff4-abf4*** | 工作区 ID,必须和Name同时配置。 |
Name | String | 否 | test | 规则文件名称,必须和WorkspaceId同时配置。 |
参数 | 类型 | 示例值 | 描述 |
参数 | 类型 | 示例值 | 描述 |
Id | String | e28ae750-bbb8-4ff4-abf4*** | 规则文件 ID。 |
CreateTime | String | 2022-01-01T00:00:00Z | 规则文件创建时间,RFC3339 格式。 |
LastUpdateTime | String | 2022-01-01T00:00:00Z | 规则文件最近更新时间,RFC3339 格式。 |
Name | String | test | 规则文件名称。 |
Description | String | 这是一段描述 | 规则文件描述信息。 |
Content | String | groups: - name: example rules: - record: test expr: up | 规则文件内容。 |
Status | String | Running | 规则文件状态:
|
RuleCount | Long | 2 | 规则文件中的规则数。 |
HTTP 状态码 | 错误码 | 错误信息 | 说明 |
HTTP 状态码 | 错误码 | 错误信息 | 说明 |
403 | ProductUnsubscribed | You are not subscribed to VMP. Please go to the VMP console web page to subscribe to the service | 当前账号未订阅 VMP 服务。 |
404 | NotFound.Workspace | The specified Workspace {{id}} is not found. | 未找到相应 id 的工作区。 |
400 | InvalidParameter.{{parameter}} | The specified parameter {{parameter}} is invalid. | 输入不合法,如工作区名称不合法等。 |
400 | MissingParameter.{{parameter}} | The required parameter {{parameter}} is missing. | 缺少必要的参数。 |