This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Quota name="QuotaPolicy"> | |
<Interval>1</Interval> | |
<TimeUnit>month</TimeUnit> | |
<Allow count="2000" /> | |
<MessageWeight ref="request.header.weight" /> | |
</Quota> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Quota name="QuotaPolicy"> | |
<Interval>1</Interval> | |
<TimeUnit>month</TimeUnit> | |
<Allow count="2000"> | |
<Class ref="request.header.clientId"> | |
<Allow class="X" count="100"/> | |
<Allow class="Y" count="75" /> | |
<Allow class="_default" count="50" /> | |
</Class> | |
</Allow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Quota name="QuotaPolicy"> | |
<Interval>1</Interval> | |
<TimeUnit>month</TimeUnit> | |
<Identifier ref="request.header.clientId" /> <!-- Add a separate counter per unique identifier --> | |
<Allow count="200" /> | |
</Quota> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Quota name="QuotaPolicy"> | |
<Interval>1</Interval> | |
<TimeUnit>month</TimeUnit> | |
<Allow count="2000" /> | |
<Alert count="1000" > | |
<NotificationIntervalInSec>5</NotificationIntervalInSec> | |
<Syslog> | |
<Message>Quota has exceeded. Allowed quota={ratelimit.allowed.count}, Used quota={ratelimit.used.count}, Quota expires at {ratelimt.expiry.time}</Message> | |
<Host>IP-Address</Host> | |
<Port>514</Port> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Quota name="QuotaPolicy"> | |
<Interval>1</Interval> | |
<TimeUnit>month</TimeUnit> | |
<Allow count="2000" /> | |
<Alert count="1000" > | |
<NotificationIntervalInSec>5</NotificationIntervalInSec> | |
<File> | |
<Message>Quota has exceeded. Allowed quota={ratelimit.allowed.count}, Used quota={ratelimit.used.count}, Quota expires at {ratelimt.expiry.time}</Message> | |
<FileName>quota_exceeded.log</FileName> | |
<FileRotationOptions rotateFileOnStartup="true"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Quota name="QuotaPolicy"> | |
<Interval ref="request.header.quota_count"/> | |
<TimeUnit ref="request.header.quota_timeunit" /> | |
<Allow count="2000" countRef="request.header.allowed_quota"/> | |
</Quota> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Quota name="QuotaPolicy"> | |
<Interval>1</Interval> | |
<TimeUnit>month</TimeUnit> | |
<Allow count="2000" /> | |
</Quota> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<StatisticsCollector name="publishPurchaseDetails"> | |
<Statistics> | |
<Statistic name="productID" ref="product.id" type="string">{defaultval}</Statistic> | |
<Statistic name="price" ref="product.price" type="string">{defaultval}</Statistic> | |
</Statistics> | |
</StatisticsCollector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"action" : "post", | |
"application" : "4353136f-e978-11e0-8264-005056c00008", | |
"params" : { | |
}, | |
"path" : "/users", | |
"uri" : "http://api.usergrid.com/4353136f-e978-11e0-8264-005056c00008/users", | |
"entities" : [ { | |
"uuid" : "7d1aa429-e978-11e0-8264-005056c00008", | |
"type" : "user", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RaiseAlert name="RaiseAlert"> | |
<Syslog> | |
<Message>This is a test message. id = {request.header.id}</Message> | |
<Host>IP</Host> | |
<Port>514</Port> | |
</Syslog> | |
</RaiseAlert> |