@Dino @Anil Sagar @ Google @Siddharth Barahalikar
There are some APIS which has huge traffic
let this api named “abc” has records more than 20000.But if exclude limit=14400 in the request then i got just only 1000 records.
https://{host}/v1/organizations/{xyz}/environments/{abc}/stats/apiproxy?select=sum(message_count)&timeRange=01/16/2019%2000:00~2/01/2019%2000:00&timeUnit=month&filter=(apiproxy%20eq%20’abc’)
and then i have added limit=14400 in this request as shown below
https://{host}/v1/organizations/{xyz}/environments/{abc}/stats/apiproxy?select=sum(message_count)&timeRange=01/16/2019%2000:00~2/01/2019%2000:00&timeUnit=month&filter=(apiproxy%20eq%20’abc’)&limit=14400
now i could able to get 14400 records ..but it has more than 14400 records and lost some data
I programmed this entire functionality in java program.
can anyone please assist me on how to retrieve full records???.
Thanks in advance..
–break up the query into multiple queries with adjacent timespans.
- if i want to fetch records for 1 month span, can something be done like this??
- https://{host}/v1/organizations/{xyz}/environments/{abc}/stats/apiproxy?select=sum(message_count)&timeRange=01/01/2019%2000:00~01/07/2019%2000:00&timeUnit=minute&filter=(apiproxy%20eq%20’abc’)&limit=14400
- https://{host}/v1/organizations/{xyz}/environments/{abc}/stats/apiproxy?select=sum(message_count)&timeRange=01/07/2019%2000:00~01/14/2019%2000:00&timeUnit=minute&filter=(apiproxy%20eq%20’abc’)&limit=14400
- https://{host}/v1/organizations/{xyz}/environments/{abc}/stats/apiproxy?select=sum(message_count)&timeRange=01/14/2019%2000:00~01/21/2019%2000:00&timeUnit=minute&filter=(apiproxy%20eq%20’abc’)&limit=14400
- https://{host}/v1/organizations/{xyz}/environments/{abc}/stats/apiproxy?select=sum(message_count)&timeRange=01/21/2019%2000:00~02/28/2019%2000:00&timeUnit=minute&filter=(apiproxy%20eq%20’abc’)&limit=14400
- which can be iterated in loop using programmatic approach.
- Could i use above approach to get more records??