更新巡检策略

接口URL

/api/v1/observe/inspect/policys/{policyID}/update

请求方式

POST

Content-Type

application/json

路径变量

参数名 示例值 参数描述
policyID test_policy -

请求Body参数

{
    "alias": "testV2",
    "description": "更新巡检策略",
    "cronExpr": "0 2 * * 1,2,3,4,5",
    "function": "cluster.tidb.inspect.default",
    "policyID": "test_policy",
    "status": "disable"
}
参数名 示例值 参数类型 是否必填 参数描述
alias testV2 String -
description 更新巡检策略 String -
cronExpr 0 2 1,2,3,4,5 String -
function cluster.tidb.inspect.default String -
policyID test_policy String -
status disable String -

认证方式

Bearer auth

成功响应示例

{
    "Data": {
        "ID": 3,
        "CreatedAt": "2023-12-27T16:06:16.81+08:00",
        "UpdatedAt": "2023-12-27T16:10:17.1+08:00",
        "PolicyID": "test_policy",
        "Alias": "testV2",
        "Status": "disable",
        "Function": "cluster.tidb.inspect.default",
        "CronExpr": "0 2 * * 1,2,3,4,5",
        "Creator": "",
        "Description": "更新巡检策略",
        "DeletedAt": 0
    },
    "Success": true
}
参数名 示例值 参数类型 参数描述
Data - Object -
Data.ID 3 Integer -
Data.CreatedAt 2023-12-27T16:06:16.81+08:00 String -
Data.UpdatedAt 2023-12-27T16:10:17.1+08:00 String -
Data.PolicyID test_policy String -
Data.Alias testV2 String 集群别名,可自定义,可重复
Data.Status disable String -
Data.Function cluster.tidb.inspect.default String -
Data.CronExpr 0 2 1,2,3,4,5 String -
Data.Creator - String -
Data.Description 更新巡检策略 String -
Data.DeletedAt 0 Integer -
Success true Boolean -
© 2024 平凯星辰(北京)科技有限公司 all right reserved,powered by GitbookFile Modify: 2024-04-02 15:37:04

results matching ""

    No results matching ""