I'm developing resource graph such as Bandwidth, usage, memory, and cpu in detailed device using SL java client. Data retrieved from api are different from the graph on control portal.
These are data from graph on control.softlayer.com
Date CPU Value
2016-03-03T10:00:00-06:00 0.67
2016-03-03T10:30:00-06:00 0.86
2016-03-03T11:00:00-06:00 0.84
2016-03-03T11:30:00-06:00 1
2016-03-03T12:00:00-06:00 0.82
These are data from SL API. getCount() is CPU value.
getType() : cpu0
getCounter() : 0.26266666666667
getDateTime() : 03 03 2016 10:00:00-0600
dt.hashCode() : 1396398841
****************************************
getType() : cpu0
getCounter() : 0.42433333333333
getDateTime() : 03 03 2016 10:30:00-0600
dt.hashCode() : 1574026271
****************************************
getType() : cpu0
getCounter() : 0.591
getDateTime() : 03 03 2016 11:00:00-0600
dt.hashCode() : 1955972951
****************************************
getType() : cpu0
getCounter() : 0.57966666666667
getDateTime() : 03 03 2016 11:30:00-0600
dt.hashCode() : 357719181
****************************************
getType() : cpu0
getCounter() : 0.55033333333333
getDateTime() : 03 03 2016 12:00:00-0600
dt.hashCode() : 1379547114
****************************************
I've used this api to get CPU data.
List dataList = Guest.service(client, deviceID).getCpuMetricDataByDate(startDate, endDate, null);
Memory data API
List dataList = Guest.service(client, deviceID).getMemoryMetricDataByDate(startDate, endDate);
Bandwidth data API
List dataList = Guest.service(client, deviceID).getBandwidthDataByDate(startDate, endDate, "public");
These data are not matched to the data on graph either.
pls give me your comments how i can get precise data.
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…