How do i specify timezone while calling stats API ?
While passing value of date and time what is the timezone to be considered by default ?
Solved! Go to Solution.
UTC
Normalize your times to UTC to get the appropriate data.
Thanks @Dino-at-Google
Can you provide an example?
endpoint=https://api.enterprise.apigee.com
GET $endpoint/v1/o/$ORGNAME/e/$ENVNAME/stats/apis?
select=sum(message_count)&
timeUnit=day&
timeRange=03/01/2019 08:00~03/31/2019 07:00
Be sure to url-encode the spaces in that timeRange value. Often the client library will do that for you, but not always.
User | Count |
---|---|
7 | |
2 | |
2 | |
1 | |
1 |