{"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"}}},"ListMetricNotifyRuleResp":{"description":"查询通知规则响应","properties":{"count":{"description":"总数","example":0,"readOnly":true,"type":"integer"},"items":{"description":"规则列表","items":{"$ref":"#/definitions/MetricNotifyRule"},"readOnly":true,"type":"array"}}},"MetricNotifyRule":{"description":"指标通知规则","properties":{"comparison_operator":{"description":"统计指标对应的统计值和threshold进行比较的条件\n* `>=` - 统计指标大于等于threshold时触发\n* `>` - 统计指标大于threshold时触发\n* `=` - 统计指标等于threshold时触发\n* `<=` - 统计指标小于等于threshold时触发\n* `<` - 统计指标小于threshold时触发","example":"","readOnly":true,"type":"string"},"enable":{"default":false,"description":"启禁用规则 true:启用 false:禁用","example":true,"readOnly":true,"type":"boolean"},"interval":{"description":"触发通知后;下次通知的间隔时间;默认每天一次","example":1,"readOnly":true,"type":"integer"},"metric_name":{"description":"统计指标名称,目前仅支持固定值:desktop_idle_duration\n* `desktop_idle_duration` - 桌面空闲时长","example":"desktop_idle_duration","readOnly":true,"type":"string"},"notify_object":{"description":"通知对象;smn的主题urn","example":"urn:smn:REGION_ID:XXX-XXX-XXX:topicName","readOnly":true,"type":"string"},"rule_id":{"description":"规则ID","example":"xxxx-xxxx-xxxx","readOnly":true,"type":"string"},"threshold":{"description":"统计持续周期(天)","example":30,"readOnly":true,"type":"integer"}}}},"description":null,"group_id":"7383c32d5d5e4d0481c071faeb994404","host":"workspace.cn-north-4.myhuaweicloud.com","id":"9df04245f48d4f7bb89048939e6e9c9e","info_version":"v2","method":"get","name":"ListMetricNotifyRule","parameters":{},"paths":{"/v2/{project_id}/statistics/notify-rules":{"get":{"description":"查询对应指标的通知规则;","operationId":"ListMetricNotifyRule","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":"指标名称(精确匹配)","in":"query","maxLength":64,"minLength":0,"name":"metric_name","required":false,"type":"string","x-example":"desktop_idle_duration"},{"description":"通知规则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/ListMetricNotifyRuleResp"}},"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"}