Docs
api
Cloud Delivery(UCDN)
GetNewUcdnLogClientIpStatistics

GetNewUcdnLogClientIpStatistics - GetNewUcdnLogClientIpStatistics

Overview

Get Log Client IP Statistics

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetNewUcdnLogClientIpStatistics.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
ProjectIdstringNo
DomainIdstringYes
BeginTimeintNo
OrderByintNo
LimitstringNo
Typeint1 indicates granularity by the hour, 2 indicates granularity by the day The default is by day.No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
ClientIpStatisticsListarray[ClientIpStatisticsList]No

Data Model

ClientIpStatisticsList

Field NameTypeDescription InformationRequired
FlowintTraffic Unit ByteNo
IPstringClient IPNo
RequstintNumber of RequestsNo
FlowPercentfloatTraffic ProportionNo
RequestPercentfloatRequest Number ProportionNo

Example

Request Example

https://api.dezai.com/?Action=GetNewUcdnLogClientIpStatistics
&ProjectId=SIDfHYdh
&DomainId=wsIHivpj
&Areacode=dAFzdmyj
&BeginTime=2
&EndTime=4
&OrderBy=3
&Limit=xNEJXPBv
&Type=4

Response Example

{
  "Action": "GetNewUcdnLogClientIpStatisticsResponse",
  "ClientIpStatisticsList": [
    {
      "Flow": 6,
      "FlowPercent": 2.21938,
      "IP": "hByeMlQr",
      "RequestPercent": 8.52443,
      "Requst": 7
    }
  ],
  "RetCode": 0
}