範圍匹配器 (proto)

.xds.type.matcher.v3.Int64RangeMatcher

[.xds.type.matcher.v3.Int64RangeMatcher proto]

指定一組用於匹配 int64 數字的範圍和相關的匹配動作。

{
  "range_matchers": []
}
range_matchers

(repeated .xds.type.matcher.v3.Int64RangeMatcher.RangeMatcher) 透過數字範圍列表來匹配數字。如果多個範圍包含輸入數字,則會執行此列表中的第一個動作。

.xds.type.matcher.v3.Int64RangeMatcher.RangeMatcher

[.xds.type.matcher.v3.Int64RangeMatcher.RangeMatcher proto]

指定數字範圍列表和匹配動作。

{
  "ranges": [],
  "on_match": {...}
}
ranges

(repeated .xds.type.v3.Int64Range, 必要) 一組非空的 int64 範圍。

on_match

(.xds.type.matcher.v3.Matcher.OnMatch) 當輸入數字在其中一個範圍內時要套用的匹配動作。

.xds.type.matcher.v3.Int32RangeMatcher

[.xds.type.matcher.v3.Int32RangeMatcher proto]

指定一組用於匹配 int32 數字的範圍和相關的匹配動作。

{
  "range_matchers": []
}
range_matchers

(repeated .xds.type.matcher.v3.Int32RangeMatcher.RangeMatcher) 透過數字範圍列表來匹配數字。如果多個範圍包含輸入數字,則會執行此列表中的第一個動作。

.xds.type.matcher.v3.Int32RangeMatcher.RangeMatcher

[.xds.type.matcher.v3.Int32RangeMatcher.RangeMatcher proto]

指定數字範圍列表和匹配動作。

{
  "ranges": [],
  "on_match": {...}
}
ranges

(repeated .xds.type.v3.Int32Range, 必要) 一組非空的 int32 範圍。

on_match

(.xds.type.matcher.v3.Matcher.OnMatch) 當輸入數字在其中一個範圍內時要套用的匹配動作。

.xds.type.matcher.v3.DoubleRangeMatcher

[.xds.type.matcher.v3.DoubleRangeMatcher proto]

指定一組用於匹配 double 數字的範圍和相關的匹配動作。

{
  "range_matchers": []
}
range_matchers

(repeated .xds.type.matcher.v3.DoubleRangeMatcher.RangeMatcher) 透過數字範圍列表來匹配數字。如果多個範圍包含輸入數字,則會執行此列表中的第一個動作。

.xds.type.matcher.v3.DoubleRangeMatcher.RangeMatcher

[.xds.type.matcher.v3.DoubleRangeMatcher.RangeMatcher proto]

指定數字範圍列表和匹配動作。

{
  "ranges": [],
  "on_match": {...}
}
ranges

(repeated .xds.type.v3.DoubleRange, 必要) 一組非空的 double 範圍。

on_match

(.xds.type.matcher.v3.Matcher.OnMatch) 當輸入數字在其中一個範圍內時要套用的匹配動作。