{"base_path":"/","components":null,"consumes":"[\"application/json; charset=UTF-8\"]","definitions":{"ErrorResponse":{"properties":{"error_code":{"description":"错误码。\n","maxLength":64,"minLength":1,"type":"string"},"error_msg":{"description":"错误描述。\n","maxLength":1024,"minLength":1,"type":"string"}},"type":"object"},"HttpCode":{"properties":{"code":{"description":"状态码","format":"int32","maximum":2147483647,"minimum":0,"type":"integer"},"count":{"description":"状态码出现次数","format":"int32","maximum":2147483647,"minimum":0,"type":"integer"},"proportion":{"description":"状态码在对应时间点中的占比,保留4位小数。\n","format":"double","maximum":1,"minimum":0,"type":"number"}},"type":"object"},"HttpCodeSummary":{"properties":{"http_codes":{"description":"状态码信息","items":{"$ref":"#/definitions/HttpCode"},"maxItems":44,"minItems":0,"type":"array"},"time":{"description":"采样时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ 。","maxLength":64,"minLength":1,"type":"string"}},"type":"object"},"LiveHttpCodeRsp":{"properties":{"data_series":{"description":"基于时间轴的状态码","items":{"$ref":"#/definitions/HttpCodeSummary"},"maxItems":1440,"minItems":0,"type":"array"}},"type":"object"}},"description":null,"group_id":"f01a6cf256d84c16985bc98f70ef068d","host":"live.cn-north-4.myhuaweicloud.com","id":"fdb3dd8a567e4e43b7742614349d8e29","info_version":"v2","method":"get","name":"ListQueryHttpCode","parameters":{},"paths":{"/v2/{project_id}/stats/httpcodes":{"get":{"consumes":["application/json"],"deprecated":false,"description":"查询直播拉流HTTP状态码接口。 获取加速域名1分钟粒度的HTTP返回码 最大查询跨度不能超过24小时,最大查询周期7天。","operationId":"ListQueryHttpCode","parameters":[{"description":"用户Token。使用Token鉴权方式时必选。\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":16384,"minLength":1,"name":"X-Auth-Token","required":false,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXX..."},{"description":"使用AK/SK方式认证时必选,携带的鉴权信息。\n","in":"header","maxLength":256,"minLength":1,"name":"Authorization","required":false,"type":"string","x-example":"SDK-HMAC-SHA256 Access=xxx, SignedHeaders=content-type;host;x-sdk-date, Signature=xxx"},{"description":"使用AK/SK方式认证时必选,请求的发生时间。\n","in":"header","maxLength":256,"minLength":1,"name":"X-Sdk-Date","required":false,"type":"string","x-example":"20191115T033655Z"},{"description":"使用AK/SK方式认证时必选,携带项目ID信息, 与路径参数中的项目ID相同。\n","in":"header","maxLength":64,"minLength":1,"name":"X-Project-Id","required":false,"type":"string","x-example":"70b76xxxxxx34253880af501cdxxxxxx"},{"description":"项目ID,获取方法请参考[获取项目ID](https://support.huaweicloud.com/api-live/live_03_0023.html)。\n","in":"path","maxLength":64,"minLength":1,"name":"project_id","required":true,"type":"string","x-example":"70b76xxxxxx34253880af501cdxxxxxx"},{"description":"播放域名列表,最多支持查询100个域名,多个域名以逗号分隔。\n","in":"query","items":{"maxLength":64,"minLength":1,"type":"string"},"maxItems":100,"minItems":1,"name":"play_domains","required":true,"type":"array"},{"description":"状态码。\n","in":"query","items":{"maxLength":64,"minLength":1,"type":"string"},"maxItems":44,"minItems":0,"name":"code","required":false,"type":"array"},{"description":"区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。\n","in":"query","items":{"maxLength":64,"minLength":1,"type":"string"},"maxItems":35,"minItems":0,"name":"region","required":false,"type":"array"},{"description":"运营商列表,取值如下:\n- CMCC :移动\n- CTCC : 电信\n- CUCC :联通\n- OTHER :其他\n\n不填写查询所有运营商。\n","in":"query","items":{"maxLength":64,"minLength":1,"type":"string"},"maxItems":4,"minItems":0,"name":"isp","required":false,"type":"array"},{"description":"起始时间。日期格式按照ISO8601表示法,并使用UTC时间。\n\n格式为:YYYY-MM-DDThh:mm:ssZ。若参数为空,默认查询最近1小时数据。\n\n最大查询跨度1天,最大查询周期7天。\n","in":"query","maxLength":64,"minLength":1,"name":"start_time","required":false,"type":"string"},{"description":"结束时间。日期格式按照ISO8601表示法,并使用UTC时间。\n\n格式为:YYYY-MM-DDThh:mm:ssZ。\n\n若参数为空,默认为当前时间。结束时间需大于起始时间。\n\n最大查询跨度1天,最大查询周期7天。\n","in":"query","maxLength":64,"minLength":1,"name":"end_time","required":false,"type":"string"}],"produces":["application/json;charset=utf-8"],"responses":{"200":{"description":"处理成功返回。\n","examples":{"application/json":{"data_series":[{"http_codes":[{"code":200,"count":750,"proportion":0.5211},{"code":400,"count":650,"proportion":0.4789}],"time":"2020-06-04T07:00:00Z"},{"http_codes":[{"code":200,"count":1000,"proportion":1},{"code":400,"count":0,"proportion":0}],"time":"2020-06-04T07:01:00Z"}]}},"headers":{"X-Request-Id":{"description":"请求的唯一标识。","type":"string"}},"schema":{"$ref":"#/definitions/LiveHttpCodeRsp"}},"400":{"description":"参数错误。\n","examples":{"application/json":{"error_code":"LIVE.100011001","error_msg":"Invalid request parameter: play_domains"}},"headers":{"X-Request-Id":{"description":"请求的唯一标识。","type":"string"}},"schema":{"$ref":"#/definitions/ErrorResponse"}}},"summary":"查询直播拉流HTTP状态码接口","tags":["DataStatisticsAnalysis"],"x-apiexplorer-hide":"N","x-constraint":"该接口暂只支持查询部署在新版视频直播服务上的域名的相关数据(不包含“华北-北京一”)。此约束条件仅适用于中国站。","x-external-api":true,"x-interface-frequency":"HIGH","x-is-registered":"Y","x-request-examples-description-1":"查询播放域名拉流状态码","x-request-examples-url-1":"GET /v2/{project_id}/stats/httpcodes?play_domains=example.xxx.com,example1.huawei.com&start_time=2020-07-23T07:00:00Z&end_time=2020-07-23T08:00:00Z\n","x-support-sdk":"Y"}}},"product_short":"Live","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询直播拉流HTTP状态码接口","tags":"数据统计分析","uri":null,"version":"2.0"}