[英]Get the name of the Application that triggers a call from WSO2 API Manager
[英]WSO2 API Manager - how to "reset" the api call count for an application
产品:WSO2 API 管理器
版本:2.6.0.1
用例:
我们已经为我们的一些 API 定义了限制策略,这些 API 目前的配置方式比与客户商定的方式更为宽松。
主要原因是我们仍在学习使用该工具,虽然配置看起来没问题,但我们不确定在出现问题时停止限制对给定订阅的请求的“正确”方法。
For example:
a client calls one of our APIs with 2000 calls/min due to a bug on their side,
while we have configured the throttling policy to 10000 calls/24hours.
in such a case, their requests will be throttled after 5 minutes, but even if they were to fix their
bug in the next hour, no new call would be pass through for the next 24 hours.
如果发生这种情况,我们目前看到两种选择:
这两个选项似乎都不是满足用例的理想选择,因此我们一直在寻找另一种方法,在给定订阅的 api 调用计数的“重置”行中。
任何指向描述如何实现这一目标(或为什么不应该)的文档的指针将不胜感激。
我不确定 api 管理器是否有能力重置请求计数。 但是您可以做的是定义一个有条件的策略。
即IP条件,报头条件等。如果满足特定条件,则可以根据配置的设置进行节流。
请查看此文档。 这可能对您的情况有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.