Start time in quota policy

Not applicable

Hi Team,

I am using a quota policy as below.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Quota async="false" continueOnError="false" enabled="true" name="AESTCopperQuota" type="calendar">
    <DisplayName>AESTCopperQuota</DisplayName>
    <Properties/>
    <Identifier ref="app.name"/>
    <Allow countRef="actualLimit"/>
    <StartTime>2017-2-23 14:00:00</StartTime>
    <Interval>1</Interval>
    <TimeUnit>day</TimeUnit>
    <Distributed>true</Distributed>
    <Synchronous>true</Synchronous>
</Quota>

Suppose I write a condition to call the policy at 5PM GMT at the start of a month, for that day count starts from 5PM. I wanted to know whether Apigee gives preference to .StartTime or Interval and TimeUnit, for the next counter reset. That is,

1. As start time is 2PM GMT, from next day onwards will the reset happen at 2PM

2. As Interval and time unit is 1 day (24 hours), will the reset happen at 5PM.

Kindly confirm.

Thanks in advance.

1 2 218
2 REPLIES 2

reset will be 24 hours after starttime. See http://docs.apigee.com/api-services/reference/quota-policy#quotapolicytypes for more info.

Thanks. I have another quota policy where reset should happen every hour (XX:00 - XX:59). I am using below code for this. But it does not seem to work. Please guide.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Quota async="false" continueOnError="false" enabled="true" name="NBNQuota"> <DisplayName>NBNQuota</DisplayName> <Properties/> <Identifier ref="app.name"/> <Allow countRef="actualNBNLimit"/> <Interval>1</Interval> <TimeUnit>hour</TimeUnit> <Distributed>true</Distributed> <Synchronous>true</Synchronous> </Quota>