{ "@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", 100008: { "@type": "com.alipay.guardian.client.engine.limit.LimitRuleConfig", "actionConfig": { "actionType": "LIMIT_EXCEPTION", "limitUrlWithParams": true, "responseContent": "服务限流抛出异常!!!!" }, "calculationConfigs": [ { "calculationType": "INVOKE_BY_TIME", "maxAllow": 2, "period": 3000, "trafficType": "ALL" } ], "callerAppsCompare": "IN", "desc": "测试", "enable": true, "id": 100008, "limitStrategy": "QpsLimiter", "limitType": "GENERIC_LIMIT", "maxBurstRatio": 0.0, "resourceConfigs": [ { "baseName": "com.alipay.quality.sofarpcserver.facade.rpc.RpcInvokeService.helloRpc", "method": "helloRpc", "paramRelation": "AND", "resourceType": "METHOD", "ruleIds": [] } ], "resourceType": "METHOD", "ruleBizId": "测试", "runMode": "CONTROL" }, 1200008: { "@type": "com.alipay.guardian.client.engine.limit.LimitRuleConfig", "actionConfig": { "actionType": "LIMIT_JSONMESSAGE", "contentType": "text/javascript", "limitUrlWithParams": true, "responseContent": "yitao触发限流规则", "responseHeader": { "@type": "java.util.HashMap" } }, "calculationConfigs": [ { "calculationType": "INVOKE_BY_TIME", "maxAllow": 0, "period": 1000, "trafficType": "ALL" } ], "callerAppsCompare": "IN", "desc": "web页面限流faran", "enable": true, "id": 1200008, "limitStrategy": "QpsLimiter", "limitType": "GENERIC_LIMIT", "maxBurstRatio": 0.0, "resourceConfigs": [ { "baseName": "/health.", "interfaceName": "/health", "method": "", "paramConfigs": [], "resourceType": "WEB", "ruleIds": [] } ], "resourceType": "WEB", "ruleBizId": "web页面限流faran", "runMode": "CONTROL" }, 1200009: { "@type": "com.alipay.guardian.client.engine.limit.LimitRuleConfig", "actionConfig": { "actionType": "LIMIT_EXCEPTION", "limitUrlWithParams": true, "responseContent": "限流异常" }, "calculationConfigs": [ { "calculationType": "INVOKE_BY_TIME", "maxAllow": 1, "period": 1000, "trafficType": "ALL" } ], "callerAppsCompare": "IN", "desc": "dsrconsole接口限流", "enable": true, "id": 1200009, "limitStrategy": "QpsLimiter", "limitType": "GENERIC_LIMIT", "maxBurstRatio": 0.0, "resourceConfigs": [ { "baseName": "interfacename.methodname", "method": "methodname", "paramRelation": "AND", "resourceType": "METHOD", "ruleIds": [] } ], "resourceType": "METHOD", "ruleBizId": "dsrconsole接口限流", "runMode": "CONTROL" } } } }, "version": 1 }