获取域名状态码监控-GetNewUcdnDomainHttpCode

获取域名状态码监控

Request Parameters

Parameter nameTypeDescriptionRequired
ProjectIdstring项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口No
Typeint时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度)Yes
DomainId.nstring域名id,创建域名时生成的id。默认全部域名No
Areacodestring查询带宽区域 cn代表国内 abroad代表海外,只支持国内No
BeginTimeint查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。No
EndTimeint查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
HttpCodeDetailarray状态码实例表。详细见HttpCodeInfoNo

HttpCodeInfo

Parameter nameTypeDescriptionRequired
Timeint带宽获取的时间点。格式:时间戳No
HttpOneXXint1xx数量No
HttpTwoXXint2xx数量No
HttpThreeXXint3xx数量No
HttpFourXXint4xx数量No
HttpFiveXXint5xx数量No

Request Example

https://api.ucloud.cn/?Action=GetNewUcdnDomainHttpCode
&Type=0
&DomainId.n=zWlrtaAE
&Areacode=cn
&BeginTime=7
&EndTime=9
&Type=9

Response Example

{
    "Action": "GetNewUcdnDomainHttpCodeResponse",
    "RetCode": 0,
    "HttpCodeDetail": [
        {
            "Time": 199632,
            "HttpZeroXX": 7,
            "HttpOneXX": 0,
            "HttpTwoXX": 90,
            "HttpThreeXX": 0,
            "HttpFourXX": 10,
            "HttpFiveXX": 0
        },
        {
            "Time": 199638,
            "HttpZeroXX": 7,
            "HttpOneXX": 0,
            "HttpTwoXX": 90,
            "HttpThreeXX": 0,
            "HttpFourXX": 10,
            "HttpFiveXX": 0
        }
    ]
}