Minimum period of time Mashery Reporting API can return results

Minimum period of time Mashery Reporting API can return results

book

Article ID: KB0083388

calendar_today

Updated On:

Products Versions
TIBCO Cloud API Management -

Description

For Mashery Reporting API's one hour is the smallest time period that Mashery API can return results for. There are some methods with 30 minute intervals (for example QPS APIs ) but in general Mashery Reporting API's can return results minimum for one hour time period. As the results are picked from aggregated logs where it is maintained hourly so we cannot go granular than this time limit.
 

Issue/Introduction

How to check if one hour is the smallest period of time the Mashery reporting API can return results for.

Resolution

Test call where the start date and end date only had a minute difference but the results are for that full hour.
 
curl -i 'http://api.mashery.com/v2/rest/areaid/reports/calls/status/service/serviceID?format=csv&start_date=2017-10-16T18:00:00Z&end_date=2017-10-16T18:01:00Z&apikey=29******5khb&sig='$(php -r 'echo md5("29*******khb"."********".time());') 

Results : showing endDate 2017-10-16T19:00

startDate,endDate,serviceKey,callStatusSuccessful,callStatusBlocked,callStatusOther,auditInfo 
​2017-10-16T18:00:00Z,2017-10-16T19:00:00Z,dxxhrcvpr5uv4rsktcyavg55,40,0,0,"1508355304 CallsStatusForService"