docs
api
Cloud Delivery(UCDN)
GetNewUcdnDomainHitRate

Get domain hit rate - GetNewUcdnDomainHitRate

Overview

Get domain hit rate

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetNewUcdnDomainHitRate.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
TypeintTime granularity (0 represents a granularity of 5 minutes, 1 represents a granularity of 1 hour, 2 represents a granularity of one day) default is 5 minutes.No
DomainId.NstringDomain ID, the ID generated when creating a domain. Default to all domains.No
AreacodestringThe query bandwidth area 'cn' represents domestic, 'abroad' represents overseas, only supports domestic.No
BeginTimeintThe start time of the query, formatted as Unix Timestamp. If there is an EndTime, BeginTime must be assigned. If not assigned, a missing parameter error will be returned. If there is no EndTime, BeginTime can also be unassigned. The default EndTime is the current time, and the default BeginTime is the current time of the previous day.No
EndTimeintThe end time of the query, in Unix Timestamp format. EndTime defaults to the current time, and BeginTime defaults to the time one day before the current time.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
HitRateListarray[HitRateInfo]Request number instance table.No

Data Model

HitRateInfo

Field NameTypeDescription InformationRequired
TimeintTime point for bandwidth acquisition. Format: TimestampNo
FlowHitRatefloatTotal traffic hit rate, unit %No
RequestHitRatefloatRequest hit rate, unit %No

Example

Request Example

https://api.surfercloud.com/?Action=GetNewUcdnDomainHitRate
&DomainId.n=kdINXUac
&Areacode=cn
&BeginTime=1029568275
&EndTime=1030432275
&Type=1

Response Example

{
  "Action": "GetNewUcdnDomainHitRateResponse",
  "HitRateInfo": [
    {
      "FlowHitRate": 90,
      "RequestHitRate": 90,
      "Time": 1029569275
    },
    {
      "FlowHitRate": 90,
      "RequestHitRate": 90,
      "Time": 1029569375
    },
    {
      "FlowHitRate": 90,
      "RequestHitRate": 90,
      "Time": 1029569575
    },
    {
      "FlowHitRate": 90,
      "RequestHitRate": 90,
      "Time": 1029569875
    },
    {
      "FlowHitRate": 90,
      "RequestHitRate": 90,
      "Time": 1029569975
    },
    {
      "FlowHitRate": 90,
      "RequestHitRate": 90,
      "Time": 1029570275
    }
  ],
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved