getDailyAverage


SoftLayer_Hardware_Router::getDailyAverage

calculate the average daily network traffic used by a server in gigabytes.

Description

The ‘‘‘getDailyAverage’’’ method calculates the average daily network traffic used by the selected server. Using the required parameter ‘‘dateTime’’ to enter a start and end date, the user retrieves this average, measure in gigabytes (GB) for the specified date range. When entering parameters, only the month, day and year are required - time entries are omitted as this method defaults the time to midnight in order to account for the entire day.

Parameters

Name Type Description
startDate dateTime The start date for the range of bandwidth a customer wishes to view.
endDate dateTime The end date for the range of bandwidth a customer wishes to view.

Required Headers

Optional Headers

  • None

Return Values

  • float
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [dateTime, dateTime]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Hardware_Router/{SoftLayer_Hardware_RouterID}/getDailyAverage'