Cisco Cisco Prime Performance Manager 1.3 Guia Do Programador

Página de 29
 
Cisco Prime Performance Manager REST API Guide 
Copyright 2012 Cisco Systems 
- 11 - 
 
Examples of valid formatted start date: 
startDate=2012-3-23T12:30+0800 
startDate=2012-12-23T2:05+0800 
 
Note: “+” needs to be encoded to “%2B” prior to being sent on the HTTP request. 
Additional Notes 
•  Only supported in the “GET /reports/{category}../{reportName}” or “GET 
/groupreports/{category}../{reportName}” requests. 
•  The “startDate”/“endDate” and “durationSelect” parameters are mutually exclusive. 
•  If the “startDate” is not given, it will default to the calculated value based on “durationSelect” and 
“endDate” (or system time if “endDate” is not given). 
•  If both startDate and endDate are given, their timezone must match. For example: 
startDate is not given. 
endDate=”2012-03-23T12:30+0800” 
duration=”last24Hours” 
intervalTypeKey=”HOUR” 
The startDate is 24 hours less than the “endDate”; that is “2012-03-22T12:30+0800” 
•  The “startDate” may be calculated to be a date in the future. In that case, keep in mind that  no reporting 
information is available in the system for a future date. 
•  If “startDate” and “endDate” are not given, the current server time is used for the “endDate”. The 
“startDate” is calculated by subtracting  the “durationSelect” from the current time. In this case, the 
date/times will all be set according to the server timezone settings. 
•  Provide either the start or end date with proper GMT offset to ensure the reporting data received are in the 
expected timezone. 
5.7.4 endDate 
Table 10 – endDate Parameter 
Parameter 
Notes 
endDate 
The end date for the reporting data. 
 
Format: 
yyyy-MM-ddTHH:mmZ 
 
where, 
yyyy:  year  (eg. 2010, 2011, 2012…) 
MM: month in year (eg, 1-12) 
dd: day in month (eg. 1, 2,…,31) 
T: charater to separate date from time. 
HH: hour in day (0-23) 
mm: minute in hour (0-59) 
Z: time zone represented as follows (+/-)HHmm 
“+” to add  or “-“ to subtract the “HHmm” from the GMT time. 
 
Examples of valid formatted end date: 
endDate=2012-04-23T02:30+0800 
endDate=2012-07-01T03:00+0600 
 
Note: “+” needs to be encoded to “%2B” prior to being sent on the HTTP request. 
Additional Notes 
•  Only supported for the “GET /reports/{category}../{reportName}” or “GET 
/groupreports/{category}../{reportName}”  requests. 
•  The “startDate”/“endDate” and “durationSelect” parameters are mutually exclusive.