huawei-cloud-api-definitions-Workspace 0.1.20240628

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"BaseResponse":{"description":"API响应基类","properties":{"error_code":{"description":"错误码。","maxLength":12,"minLength":0,"type":"string"},"error_msg":{"description":"错误描述。","maxLength":1000,"minLength":0,"type":"string"}}},"DesktopMetricNotifyRecord":{"description":"对应指标维度产生的告警记录","properties":{"comparison_operator":{"description":"统计指标对应的统计值和threshold进行比较的条件\n* `>=` -  统计指标大于等于threshold时触发\n* `>` -   统计指标大于threshold时触发\n* `=` -  统计指标等于threshold时触发\n* `<=` -  统计指标小于等于threshold时触发\n* `<` -  统计指标小于threshold时触发","example":"","readOnly":true,"type":"string"},"match_count":{"description":"满足通知规则阈值的桌面数","example":1,"readOnly":true,"type":"integer"},"metric_name":{"description":"指标名称","example":"desktop_state","readOnly":true,"type":"string"},"threshold":{"description":"统计持续周期(天)","example":30,"readOnly":true,"type":"integer"}}},"ListMetricNotifyRecordResp":{"description":"查询满足对应指标维度产生的告警记录","properties":{"count":{"description":"总数","example":0,"readOnly":true,"type":"integer"},"items":{"description":"通知记录","items":{"$ref":"#/definitions/DesktopMetricNotifyRecord"},"readOnly":true,"type":"array"}}}},"description":null,"group_id":"7383c32d5d5e4d0481c071faeb994404","host":"workspace.cn-north-4.myhuaweicloud.com","id":"17f6246991374405ae9ee4310c1fb810","info_version":"v2","method":"get","name":"ListMetricNotifyRecord","parameters":{},"paths":{"/v2/{project_id}/statistics/notification-records":{"get":{"description":"查询对应指标维度是否存在满足通知规则的记录;\n查询结果仅表示满足相应指标维度下对应通知规则可产生的通知记录","operationId":"ListMetricNotifyRecord","parameters":[{"description":"项目ID。","in":"path","maxLength":255,"minLength":1,"name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"用户Token。\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":64000,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX..."},{"description":"指标名称(精确匹配)\n(metric_name和rule_id不允许同时为空)","in":"query","maxLength":64,"minLength":0,"name":"metric_name","required":false,"type":"string","x-example":"desktop_idle_duration"},{"description":"通知规则ID\n(metric_name和rule_id不允许同时为空)","in":"query","maxLength":64,"minLength":0,"name":"rule_id","required":false,"type":"string","x-example":"xxxx-x-x-xx"},{"default":0,"description":"查询的偏移量,默认值0","in":"query","maximum":2147483646,"minimum":0,"name":"offset","required":false,"type":"integer","x-example":"0"},{"default":10,"description":"单次查询的大小[1-100],默认值10","in":"query","maximum":100,"minimum":1,"name":"limit","required":false,"type":"integer","x-example":"10"}],"produces":["application/json"],"responses":{"200":{"description":"响应成功","schema":{"$ref":"#/definitions/ListMetricNotifyRecordResp"}},"400":{"description":"客户端请求有误","schema":{"$ref":"#/definitions/BaseResponse"}},"401":{"description":"鉴权失败","schema":{"$ref":"#/definitions/BaseResponse"}},"500":{"description":"内部错误","schema":{"$ref":"#/definitions/BaseResponse"}}},"summary":"查询对应指标维度是否存在满足通知规则的记录","tags":["Statistics"],"x-api-type":"open-api","x-apiexplorer-hide":"N","x-apig-group":"internal_token,public","x-apigateway-request-type":"public","x-is-registered":"Y","x-support-sdk":"Y"}}},"product_short":"Workspace","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询对应指标维度是否存在满足通知规则的记录","tags":"报表统计","uri":null,"version":"2.0"}