I am trying to get Metric data of my resources in a specific period.
First, I have tried with SoftLayer_Virtual_Guest/$id/getCpuMetricDataByDate
for one of my vm instance.
curl --user "$id:$password" -sk https://api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/$id/getCpuMetricDataByDate -d '{"startDateTime":"07/25/2017 16:00:00", "endDateTime":"07/25/2017 17:00:00"}'
The problem i am facing is, this request ignores the datetime filter i specified and passed with the request body, It returns me all the metric history from the birth of the vm.
- Is it a bug or did i do something wrong?
- The form of dateTime, one of the return value is like 2017-07-05T10:00:00+09:00, and i realised the timezone is relying on what i have selected for my user in the Customer Portal. Is there any way to specify timezone when request a API so that i am available to get data on my preference timezone. (For example, when i request Metric data of a vm with timezone = JST, it returns me as GMT+09, if i request Metric data of another vm with timezone = CTT, it returns me as GMT+08)