huawei-cloud-api-definitions-DAS 0.1.20260918

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"","definitions":{"ApiSetMetricCodeThresholdReq":{"properties":{"datastore_type":{"description":"数据库类型","example":"mysql","type":"string"},"metric_code":{"description":"指标码","example":"sys001_cpu_usage","type":"string"},"new_threshold":{"description":"新阈值","example":87,"format":"double","type":"number"}},"required":["metric_code","datastore_type","new_threshold"],"type":"object"},"ErrorResp":{"description":"失败时返回的错误对象","properties":{"error_code":{"description":"错误码","maxLength":36,"minLength":8,"type":"string"},"error_msg":{"description":"错误描述","maxLength":512,"minLength":2,"type":"string"}},"required":["error_code","error_msg"]},"SetMetricThresholdResp":{"properties":{"success":{"description":"是否成功","example":true,"type":"boolean"}},"type":"object"}},"description":null,"group_id":"7f831fc0dd494cfe86eff0b79e4f207d","host":"das.cn-north-4.myhuaweicloud.com","id":"17441d4687304fea80bbdfe2ba502fc8","info_version":"v3","method":"post","name":"SetThresholdForMetric","parameters":{},"paths":{"/v3/{project_id}/set-metric-threshold":{"post":{"consumes":["application/json"],"description":"设置指标阈值","operationId":"SetThresholdForMetric","parameters":[{"description":"项目ID","in":"path","name":"project_id","required":true,"type":"string"},{"description":"用户token","in":"header","name":"X-Auth-Token","required":true,"type":"string"},{"description":"语言","enum":["zh-cn","en-us"],"in":"header","name":"X-Language","required":false,"type":"string"},{"description":"请求体","in":"body","name":"SetThresholdForMetricRequestBody","required":true,"schema":{"$ref":"#/definitions/ApiSetMetricCodeThresholdReq"}}],"produces":["application/json"],"responses":{"200":{"description":"Success.","examples":{"application/json":{"success":true}},"schema":{"$ref":"#/definitions/SetMetricThresholdResp"}},"400":{"description":"BadRequest.","schema":{"$ref":"#/definitions/ErrorResp"}},"500":{"description":"InternalServerError.","schema":{"$ref":"#/definitions/ErrorResp"}}},"summary":"设置指标阈值","tags":["云DBA"],"x-das-is-publish":"#SetMetricThreshold_Placeholder#","x-is-registered":"Y","x-order":1,"x-request-examples-1":{"datastore_type":"mysql","metric_code":"sys001_cpu_usage","new_threshold":87},"x-request-examples-text-1":{"datastore_type":"mysql","metric_code":"sys001_cpu_usage","new_threshold":87},"x-request-examples-url-1":"POST https://das.cn-north-1.myhuaweicloud.com/v3/054e292c9880d4992f02c0196d3ea468/set-metric-threshold","x-support-sdk":"Y"}}},"product_short":"DAS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"设置指标阈值","tags":"云DBA","uri":null,"version":"2.0"}