Home
last modified time | relevance | path

Searched refs:fraction_per_million (Results 1 – 7 of 7) sorted by relevance

/third_party/grpc/src/core/ext/filters/client_channel/xds/
Dxds_api.h108 absl::optional<uint32_t> fraction_per_million; member
112 fraction_per_million == other.fraction_per_million);
Dxds_api.cc194 if (fraction_per_million.has_value()) { in ToString()
196 fraction_per_million.value())); in ToString()
1179 rds_route->matchers.fraction_per_million = numerator; in RouteRuntimeFractionParse()
Dxds_client.cc2112 route.matchers.fraction_per_million.has_value() in CreateServiceConfigRoute()
2114 route.matchers.fraction_per_million.value()) in CreateServiceConfigRoute()
/third_party/grpc/src/core/ext/xds/
Dxds_api.h75 absl::optional<uint32_t> fraction_per_million; member
80 fraction_per_million == other.fraction_per_million);
Dxds_api.cc151 if (fraction_per_million.has_value()) { in ToString()
153 fraction_per_million.value())); in ToString()
1061 route->matchers.fraction_per_million = numerator; in RouteRuntimeFractionParse()
/third_party/grpc/src/core/ext/filters/client_channel/resolver/xds/
Dxds_resolver.cc414 bool UnderFraction(const uint32_t fraction_per_million) { in UnderFraction() argument
417 return random_number < fraction_per_million; in UnderFraction()
434 if (entry.route.matchers.fraction_per_million.has_value() && in GetCallConfig()
435 !UnderFraction(entry.route.matchers.fraction_per_million.value())) { in GetCallConfig()
/third_party/grpc/src/core/ext/filters/client_channel/lb_policy/xds/
Dxds_routing.cc327 bool UnderFraction(const uint32_t fraction_per_million) { in UnderFraction() argument
330 return random_number < fraction_per_million; in UnderFraction()
342 if (route.matchers->fraction_per_million.has_value() && in Pick()
343 !UnderFraction(route.matchers->fraction_per_million.value())) { in Pick()
1097 route->matchers.fraction_per_million = in ParseRoute()