huawei-cloud-api-definitions-COC 0.1.20251024

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"BaseResponse":{"description":"--","properties":{"error_code":{"description":"请求响应代码,范围:0000~9999,正常时取值:0","maxLength":20,"minLength":1,"type":"string"},"error_msg":{"description":"请求响应描述","maxLength":10240,"minLength":0,"type":"string"},"provider_code":{"default":4,"description":"服务标识","maxLength":3,"minLength":3,"type":"string"}},"required":["provider_code","error_code"],"type":"object"},"ReportCustomEventRequestBody":{"properties":{"URL":{"description":"原始告警URL","example":"https://xxx.com","maxLength":255,"minLength":0,"type":"string"},"additional":{"description":"告警附加信息","example":{},"type":"object"},"alarmDesc":{"description":"告警描述","maxLength":255,"minLength":1,"type":"string"},"alarmId":{"description":"告警id","example":"18cfxxxxxxxxxx0f8","maxLength":255,"minLength":1,"type":"string"},"alarmLevel":{"description":"告警级别。取值为Critical(紧急), Major(重要), Minor(次要), Info(提示)","enum":["Critical","Major","Minor","Info"],"example":"Critical","maxLength":255,"minLength":1,"type":"string"},"alarmName":{"description":"告警名称","example":"Cpu 使用超额预警","maxLength":255,"minLength":1,"type":"string"},"alarmSource":{"description":"告警源","example":"coc","maxLength":255,"minLength":1,"type":"string"},"alarmStatus":{"description":"告警状态。一般取值为alarm(告警中)和ok(已恢复)","enum":["alarm","ok"],"example":"alarm","maxLength":255,"minLength":0,"type":"string"},"applicationId":{"description":"应用id","example":"18cfa0a5ef8d","maxLength":255,"minLength":1,"type":"string"},"nameSpace":{"description":"告警发生时间","example":"shanghai","maxLength":255,"minLength":1,"type":"string"},"regionId":{"description":"告警发生区域","example":"cn-north-4","maxLength":255,"minLength":0,"type":"string"},"resourceId":{"description":"资源ID","example":"18cxxxxxxxxxxxxff68625","maxLength":255,"minLength":0,"type":"string"},"resourceName":{"description":"资源名称","example":"machine-1","maxLength":255,"minLength":0,"type":"string"},"time":{"description":"告警发生时间","example":1709118444540,"format":"int64","type":"integer"}},"required":["alarmId","alarmName","alarmLevel","time","nameSpace","alarmDesc","alarmSource"],"type":"object"}},"description":null,"group_id":"82af75d8fb894fc2b06ca4175859ba53","host":"coc.myhuaweicloud.com","id":"462dac40ba294b9a9db85372eecf5d08","info_version":"v1","method":"post","name":"CreateReportCustomEvent","parameters":{},"paths":{"/v1/event/huawei/custom/{integration_key}":{"post":{"consumes":["application/json; charset=utf-8"],"description":"支持租户将自开发的监控系统按照标准化集成至COC,集成后告警会按照标准格式上报至COC告警中心","operationId":"CreateReportCustomEvent","parameters":[{"description":"集成ID","in":"path","maxLength":255,"minLength":1,"name":"integration_key","required":true,"type":"string"},{"description":"应用运维管理事件接入请求内容","in":"body","name":"ReportCustomEventRequestBody","required":true,"schema":{"$ref":"#/definitions/ReportCustomEventRequestBody"}}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/BaseResponse"}}},"summary":"支持用户自主接入告警数据","tags":["CustomEventMessageIntegration"],"x-access-level":"ReadWrite","x-api-type":"open-api","x-imports":"org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;com.huawei.clouds.wushan.auth.token.meta.BssOpType;com.huawei.globaloperationmgmt.common.auth.CoaCustomizeAuthMeta;com.huawei.globaloperationmgmt.common.enums.GomResourceTypeEnum;com.huawei.clouds.wushan.integration.common.auth.EnableAuth;com.huawei.clouds.wushan.auth.token.IamAuthMeta;com.huawei.clouds.wushan.auth.token.IamAuthLevel;com.huawei.clouds.wushan.cts.meta.CtsMeta;com.huawei.globaloperationmgmt.common.apos.CtsExtendMeta;com.huawei.globaloperationmgmt.common.models.BaseResponse","x-is-registered":"Y","x-methodAnnotations":["@CtsMeta(resourceType = \"IntegrationInstance\", traceName = \"reportCustomEvent\")","@CtsExtendMeta(resourceId = \"#integrationKey\", resourceName = \"#integrationKey\")"],"x-risk-level":"middle","x-sre-api-type":"D","x-support-sdk":"Y"}}},"product_short":"COC","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"支持用户自主接入告警数据","tags":"CustomEventMessageIntegration","uri":null,"version":"2.0"}