云数据库 TAURUSDB-设置实例秒级监控:请求示例

时间:2024-12-11 17:00:11

请求示例

  • 修改实例秒级监控开关及频率,开启秒级监控,采集周期为1s。

    PUT https://{endpoint}/v3/054e292c9880d4992f02c0196d3ea468/instances/61a4ea66210545909d74a05c27a7179ein07/monitor-policy
    
    {
      "monitor_switch" : true,
      "period" : 1
    }
  • 修改实例秒级监控开关,关闭秒级监控。

    PUT https://{endpoint}/v3/054e292c9880d4992f02c0196d3ea468/instances/61a4ea66210545909d74a05c27a7179ein07/monitor-policy
    
    {
      "monitor_switch" : false
    }
support.huaweicloud.com/api-gaussdbformysql/UpdateInstanceMonitor.html