[英]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.