Get Customer Domain Bandwidth

This API is used to get bandwidth with 5 minutes for domains of a specified customer.If the domain has no data ,the domain will not be listed. It will not fill in zero value for empty data.

1. Request Definition

  • API URL
https://cdn-api.swiftfederation.com/v1.1/report/customers/{customerId}/domain_bandwidth
  • Request Method
POST
  • Request Header

Refer to HTTP Request Headers

  • Request Body

Request Body Data Format: JSON

Field Required Type Description
startTime Mandatory string Start time. Format yyyy-MM-ddTHH:mm:ssZ UTC time.The start time cannot be 30 days ago.
endTime Mandatory string End time. Format yyyy-MM-ddTHH:mm:ssZ UTC time. The interval between start time and end time cannot be longer than 24 hours.
  • Request Body Example
{
   "startTime":"2020-07-09T00:00:00Z",
   "endTime":"2020-07-10T01:00:00Z"
}


2. Response Definition

  • Response Header

Refer to HTTP Response Headers

  • Response Body
Field Type Description
domain string Name of domain.
bandwidths Bandwidth List of bandwidth data with 5 minutes interval.
Bandwidth Definition
timestamp string Format yyyy-MM-ddTHH:mm:ssZ UTC time. E.g. 2018-03-29T17:35:00Z will return data from 2018-03-29T17:35:00Z to 2018-03-29T17:39:59Z.
value float Bandwidth value, format will be like 94.33. Unit is bps.
  • Response Body Example
[  
    {   
        "domain": "www.example1.com",  
        "bandwidths": [  
            {  
                "timestamp": "2018-03-29T17:35:00Z",  
                "value": 1.01  
            },  
            {  
                "timestamp": "2018-03-29T17:40:00Z",  
                "value": 3.01  
            }  
        ]  
    },  
    {  
        "domain": "www.example2.com",  
        "bandwidths": [  
            {  
                "timestamp": "2018-03-29T17:35:00Z",  
                "value": 4.04  
            },  
            {  
                "timestamp": "2018-03-29T17:40:00Z",  
                "value": 7.04  
            }  
        ]  
    }  
]
           Updated 2024-08-26 07:42:13

results matching ""

    No results matching ""