public static interface RateLimitProto.RuleOrBuilder
extends com.google.protobuf.MessageOrBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsLabels(String key)
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8; |
boolean |
containsSubset(String key)
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4; |
com.google.protobuf.StringValue |
getAction()
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10; |
com.google.protobuf.StringValueOrBuilder |
getActionOrBuilder()
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10; |
RateLimitProto.AmountAdjuster |
getAdjuster()
配额调整算法
.v1.AmountAdjuster adjuster = 17; |
RateLimitProto.AmountAdjusterOrBuilder |
getAdjusterOrBuilder()
配额调整算法
.v1.AmountAdjuster adjuster = 17; |
RateLimitProto.Rule.AmountMode |
getAmountMode()
.v1.Rule.AmountMode amount_mode = 19; |
int |
getAmountModeValue()
.v1.Rule.AmountMode amount_mode = 19; |
RateLimitProto.Amount |
getAmounts(int index)
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
int |
getAmountsCount()
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
List<RateLimitProto.Amount> |
getAmountsList()
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
RateLimitProto.AmountOrBuilder |
getAmountsOrBuilder(int index)
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
List<? extends RateLimitProto.AmountOrBuilder> |
getAmountsOrBuilderList()
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
RateLimitProto.RateLimitCluster |
getCluster()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21; |
RateLimitProto.RateLimitClusterOrBuilder |
getClusterOrBuilder()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21; |
com.google.protobuf.StringValue |
getCtime()
限流规则创建时间
.google.protobuf.StringValue ctime = 13; |
com.google.protobuf.StringValueOrBuilder |
getCtimeOrBuilder()
限流规则创建时间
.google.protobuf.StringValue ctime = 13; |
com.google.protobuf.BoolValue |
getDisable()
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11; |
com.google.protobuf.BoolValueOrBuilder |
getDisableOrBuilder()
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11; |
RateLimitProto.Rule.FailoverType |
getFailover()
.v1.Rule.FailoverType failover = 20; |
int |
getFailoverValue()
.v1.Rule.FailoverType failover = 20; |
com.google.protobuf.StringValue |
getId()
限流规则唯一标识
.google.protobuf.StringValue id = 1; |
com.google.protobuf.StringValueOrBuilder |
getIdOrBuilder()
限流规则唯一标识
.google.protobuf.StringValue id = 1; |
Map<String,ModelProto.MatchString> |
getLabels()
已过时。
|
int |
getLabelsCount()
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8; |
Map<String,ModelProto.MatchString> |
getLabelsMap()
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8; |
ModelProto.MatchString |
getLabelsOrDefault(String key,
ModelProto.MatchString defaultValue)
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8; |
ModelProto.MatchString |
getLabelsOrThrow(String key)
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8; |
com.google.protobuf.StringValue |
getMtime()
限流规则修改时间
.google.protobuf.StringValue mtime = 14; |
com.google.protobuf.StringValueOrBuilder |
getMtimeOrBuilder()
限流规则修改时间
.google.protobuf.StringValue mtime = 14; |
com.google.protobuf.StringValue |
getNamespace()
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3; |
com.google.protobuf.StringValueOrBuilder |
getNamespaceOrBuilder()
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3; |
com.google.protobuf.UInt32Value |
getPriority()
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5; |
com.google.protobuf.UInt32ValueOrBuilder |
getPriorityOrBuilder()
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5; |
com.google.protobuf.BoolValue |
getRegexCombine()
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18; |
com.google.protobuf.BoolValueOrBuilder |
getRegexCombineOrBuilder()
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18; |
RateLimitProto.Report |
getReport()
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12; |
RateLimitProto.ReportOrBuilder |
getReportOrBuilder()
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12; |
RateLimitProto.Rule.Resource |
getResource()
.v1.Rule.Resource resource = 6; |
int |
getResourceValue()
.v1.Rule.Resource resource = 6; |
com.google.protobuf.StringValue |
getRevision()
限流规则revision信息
.google.protobuf.StringValue revision = 15; |
com.google.protobuf.StringValueOrBuilder |
getRevisionOrBuilder()
限流规则revision信息
.google.protobuf.StringValue revision = 15; |
com.google.protobuf.StringValue |
getService()
限流规则所属服务名
.google.protobuf.StringValue service = 2; |
com.google.protobuf.StringValueOrBuilder |
getServiceOrBuilder()
限流规则所属服务名
.google.protobuf.StringValue service = 2; |
com.google.protobuf.StringValue |
getServiceToken()
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"]; |
com.google.protobuf.StringValueOrBuilder |
getServiceTokenOrBuilder()
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"]; |
Map<String,ModelProto.MatchString> |
getSubset()
已过时。
|
int |
getSubsetCount()
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4; |
Map<String,ModelProto.MatchString> |
getSubsetMap()
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4; |
ModelProto.MatchString |
getSubsetOrDefault(String key,
ModelProto.MatchString defaultValue)
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4; |
ModelProto.MatchString |
getSubsetOrThrow(String key)
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4; |
RateLimitProto.Rule.Type |
getType()
.v1.Rule.Type type = 7; |
int |
getTypeValue()
.v1.Rule.Type type = 7; |
boolean |
hasAction()
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10; |
boolean |
hasAdjuster()
配额调整算法
.v1.AmountAdjuster adjuster = 17; |
boolean |
hasCluster()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21; |
boolean |
hasCtime()
限流规则创建时间
.google.protobuf.StringValue ctime = 13; |
boolean |
hasDisable()
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11; |
boolean |
hasId()
限流规则唯一标识
.google.protobuf.StringValue id = 1; |
boolean |
hasMtime()
限流规则修改时间
.google.protobuf.StringValue mtime = 14; |
boolean |
hasNamespace()
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3; |
boolean |
hasPriority()
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5; |
boolean |
hasRegexCombine()
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18; |
boolean |
hasReport()
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12; |
boolean |
hasRevision()
限流规则revision信息
.google.protobuf.StringValue revision = 15; |
boolean |
hasService()
限流规则所属服务名
.google.protobuf.StringValue service = 2; |
boolean |
hasServiceToken()
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"]; |
boolean hasId()
限流规则唯一标识
.google.protobuf.StringValue id = 1;com.google.protobuf.StringValue getId()
限流规则唯一标识
.google.protobuf.StringValue id = 1;com.google.protobuf.StringValueOrBuilder getIdOrBuilder()
限流规则唯一标识
.google.protobuf.StringValue id = 1;boolean hasService()
限流规则所属服务名
.google.protobuf.StringValue service = 2;com.google.protobuf.StringValue getService()
限流规则所属服务名
.google.protobuf.StringValue service = 2;com.google.protobuf.StringValueOrBuilder getServiceOrBuilder()
限流规则所属服务名
.google.protobuf.StringValue service = 2;boolean hasNamespace()
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3;com.google.protobuf.StringValue getNamespace()
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3;com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder()
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3;int getSubsetCount()
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4;boolean containsSubset(String key)
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4;@Deprecated Map<String,ModelProto.MatchString> getSubset()
getSubsetMap() instead.Map<String,ModelProto.MatchString> getSubsetMap()
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4;ModelProto.MatchString getSubsetOrDefault(String key, ModelProto.MatchString defaultValue)
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4;ModelProto.MatchString getSubsetOrThrow(String key)
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4;boolean hasPriority()
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5;com.google.protobuf.UInt32Value getPriority()
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5;com.google.protobuf.UInt32ValueOrBuilder getPriorityOrBuilder()
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5;int getResourceValue()
.v1.Rule.Resource resource = 6;RateLimitProto.Rule.Resource getResource()
.v1.Rule.Resource resource = 6;int getTypeValue()
.v1.Rule.Type type = 7;RateLimitProto.Rule.Type getType()
.v1.Rule.Type type = 7;int getLabelsCount()
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8;boolean containsLabels(String key)
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8;@Deprecated Map<String,ModelProto.MatchString> getLabels()
getLabelsMap() instead.Map<String,ModelProto.MatchString> getLabelsMap()
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8;ModelProto.MatchString getLabelsOrDefault(String key, ModelProto.MatchString defaultValue)
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8;ModelProto.MatchString getLabelsOrThrow(String key)
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8;List<RateLimitProto.Amount> getAmountsList()
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;RateLimitProto.Amount getAmounts(int index)
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;int getAmountsCount()
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;List<? extends RateLimitProto.AmountOrBuilder> getAmountsOrBuilderList()
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;RateLimitProto.AmountOrBuilder getAmountsOrBuilder(int index)
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;boolean hasAction()
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10;com.google.protobuf.StringValue getAction()
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10;com.google.protobuf.StringValueOrBuilder getActionOrBuilder()
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10;boolean hasDisable()
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11;com.google.protobuf.BoolValue getDisable()
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11;com.google.protobuf.BoolValueOrBuilder getDisableOrBuilder()
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11;boolean hasReport()
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12;RateLimitProto.Report getReport()
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12;RateLimitProto.ReportOrBuilder getReportOrBuilder()
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12;boolean hasCtime()
限流规则创建时间
.google.protobuf.StringValue ctime = 13;com.google.protobuf.StringValue getCtime()
限流规则创建时间
.google.protobuf.StringValue ctime = 13;com.google.protobuf.StringValueOrBuilder getCtimeOrBuilder()
限流规则创建时间
.google.protobuf.StringValue ctime = 13;boolean hasMtime()
限流规则修改时间
.google.protobuf.StringValue mtime = 14;com.google.protobuf.StringValue getMtime()
限流规则修改时间
.google.protobuf.StringValue mtime = 14;com.google.protobuf.StringValueOrBuilder getMtimeOrBuilder()
限流规则修改时间
.google.protobuf.StringValue mtime = 14;boolean hasRevision()
限流规则revision信息
.google.protobuf.StringValue revision = 15;com.google.protobuf.StringValue getRevision()
限流规则revision信息
.google.protobuf.StringValue revision = 15;com.google.protobuf.StringValueOrBuilder getRevisionOrBuilder()
限流规则revision信息
.google.protobuf.StringValue revision = 15;boolean hasServiceToken()
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"];com.google.protobuf.StringValue getServiceToken()
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"];com.google.protobuf.StringValueOrBuilder getServiceTokenOrBuilder()
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"];boolean hasAdjuster()
配额调整算法
.v1.AmountAdjuster adjuster = 17;RateLimitProto.AmountAdjuster getAdjuster()
配额调整算法
.v1.AmountAdjuster adjuster = 17;RateLimitProto.AmountAdjusterOrBuilder getAdjusterOrBuilder()
配额调整算法
.v1.AmountAdjuster adjuster = 17;boolean hasRegexCombine()
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18;com.google.protobuf.BoolValue getRegexCombine()
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18;com.google.protobuf.BoolValueOrBuilder getRegexCombineOrBuilder()
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18;int getAmountModeValue()
.v1.Rule.AmountMode amount_mode = 19;RateLimitProto.Rule.AmountMode getAmountMode()
.v1.Rule.AmountMode amount_mode = 19;int getFailoverValue()
.v1.Rule.FailoverType failover = 20;RateLimitProto.Rule.FailoverType getFailover()
.v1.Rule.FailoverType failover = 20;boolean hasCluster()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21;RateLimitProto.RateLimitCluster getCluster()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21;RateLimitProto.RateLimitClusterOrBuilder getClusterOrBuilder()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21;Copyright © 2021. All rights reserved.