Stats API result based on timezone

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 Solved
0 4 252
1 ACCEPTED SOLUTION

UTC

Normalize your times to UTC to get the appropriate data.

View solution in original post

4 REPLIES 4

UTC

Normalize your times to UTC to get the appropriate data.

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.