DinoChiesa / ApigeeEdge-API-Traffic-Summarizer

A nodejs command-line tool that produces a summary sheet of traffic for an Apigee Edge organization
Apache License 2.0
10 stars 7 forks source link

Fails on Apigee X org - exceeds time range of 92 days #12

Open kurtkanaskie opened 1 year ago

kurtkanaskie commented 1 year ago
$ node trafficByApiSummarizer.js --org apigeex-mint-kurt --apigeex --token=$TOKEN --verbose

{"error":{"code":400,"message":"invalid time range - time range exceeds maximum 92 days: \"01/01/2022 05:00~12/31/2022 05:00\"","status":"INVALID_ARGUMENT","details":[{"@type":"type.googleapis.com/google.rpc.RequestInfo","requestId":"15641317681986349558"}]}}
DinoChiesa commented 1 year ago

Mmmmm thanks for reporting this Kurt. I will have to experiment to see if the program could use smaller time slices.

The org in question - does it have an analytics data retention that is greater than 3 months?

kurtkanaskie commented 1 year ago

Yes, it does. This is a difference from Edge, which could use a full year time range.

kurtkanaskie commented 1 year ago

Interestingly, the async query can run for a full year time frame, but that requires processing the downloaded response data.