mirror of
https://github.com/Estom/notes.git
synced 2026-04-05 03:48:56 +08:00
55 lines
2.0 KiB
JSON
55 lines
2.0 KiB
JSON
{
|
|
"@type": "com.alipay.guardian.client.drm.GuardianConfig",
|
|
"engineConfigs": {
|
|
"@type": "java.util.HashMap",
|
|
"LIMIT": {
|
|
"@type": "com.alipay.guardian.client.engine.limit.LimitEngineConfig",
|
|
"actionConfigMap": {
|
|
"@type": "java.util.HashMap"
|
|
},
|
|
"globalConfig": {
|
|
"enable": true,
|
|
"runMode": "CONTROL"
|
|
},
|
|
"ruleConfigMap": {
|
|
"@type": "java.util.HashMap",
|
|
1200007: {
|
|
"@type": "com.alipay.guardian.client.engine.limit.LimitRuleConfig",
|
|
"actionConfig": {
|
|
"actionType": "LIMIT_JSONMESSAGE",
|
|
"contentType": "text/javascript",
|
|
"limitUrlWithParams": true,
|
|
"responseContent": "触发限流规则"
|
|
},
|
|
"calculationConfigs": [
|
|
{
|
|
"calculationType": "INVOKE_BY_TIME",
|
|
"maxAllow": 1,
|
|
"period": 1000,
|
|
"trafficType": "ALL"
|
|
}
|
|
],
|
|
"callerAppsCompare": "IN",
|
|
"desc": "web限流",
|
|
"enable": true,
|
|
"id": 1200007,
|
|
"limitStrategy": "QpsLimiter",
|
|
"limitType": "GENERIC_LIMIT",
|
|
"maxBurstRatio": 0.0,
|
|
"resourceConfigs": [
|
|
{
|
|
"baseName": "/health",
|
|
"paramRelation": "AND",
|
|
"resourceType": "WEB",
|
|
"ruleIds": []
|
|
}
|
|
],
|
|
"resourceType": "WEB",
|
|
"ruleBizId": "web限流",
|
|
"runMode": "CONTROL"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"version": 1
|
|
} |