docs
api
Cloud Delivery(UCDN)
GetNewUcdnLogUrlStatistics

Get log URL statistics - GetNewUcdnLogUrlStatistics

Overview

Get log URL statistics

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetNewUcdnLogUrlStatistics.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
DomainIdstringDomain IdYes
AreacodestringQuery bandwidth area 'cn' represents domestic, 'abroad' represents overseas, only supports domestic.No
BeginTimeintStart time for bandwidth query, format: timestampNo
EndTimeintQuery end time of statistical logs, format: timestamp, can only support querying for 1 day. Optional.No
OrderByint0 indicates sorting in descending order by traffic, 1 indicates sorting in descending order by download times, the default is 0.No
LimitintLimit on the number of results returned, default is 1000No

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
UrlStatisticsListarray[UrlStatistics]Daily instance statistics.No

Data Model

UrlStatistics

Field NameTypeDescription InformationRequired
UrlListarray[DownloadStatisticInfo]No
DatestringDateNo

DownloadStatisticInfo

Field NameTypeDescription InformationRequired
UrlstringDownload link's urlNo
TrafficfloatTraffic (Unit in G)No
DownloadTimesintDownload TimesNo
PercentfloatTraffic Proportion, Unit %No

Example

Request Example

https://api.surfercloud.com/?Action=GetNewUcdnLogUrlStatistics
&ProjectId=KaStjefE
&DomainId=apVismjF
&Areacode=MvvZFjqG
&BeginTime=9
&EndTime=2
&OrderBy=8
&Limit=6

Response Example

{
  "Action": "GetNewUcdnLogUrlStatisticsResponse",
  "LogStatisticsList": [
    {
      "Date": "xoeJcpan",
      "UrlList": [
        {
          "DownloadTimes": 4,
          "Percent": 3.61651,
          "Traffic": 1.63161,
          "Url": "LeiDBXkN"
        }
      ]
    }
  ],
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved