getSummaryData


SoftLayer_Metric_Tracking_Object::getSummaryData

Returns the metric data for the date range provided

Description

Returns summarized metric data for the date range, metric type and summary period provided.

Parameters

Name Type Description
startDateTime dateTime
endDateTime dateTime
validTypes SoftLayer_Container_Metric_Data_Type[]
summaryPeriod int 300, 600, 1800, 3600, 43200 or 86400 seconds

Required Headers

Optional Headers

  • None

Return Values

Error Handling

  • Throws ‘The expected result is too large.’ when too many data points are requested
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [dateTime, dateTime, SoftLayer_Container_Metric_Data_Type, int]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Metric_Tracking_Object/{SoftLayer_Metric_Tracking_ObjectID}/getSummaryData'