Searched refs:fraction_per_million (Results 1 – 7 of 7) sorted by relevance
108 absl::optional<uint32_t> fraction_per_million; member112 fraction_per_million == other.fraction_per_million);
194 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()
2112 route.matchers.fraction_per_million.has_value() in CreateServiceConfigRoute()2114 route.matchers.fraction_per_million.value()) in CreateServiceConfigRoute()
75 absl::optional<uint32_t> fraction_per_million; member80 fraction_per_million == other.fraction_per_million);
151 if (fraction_per_million.has_value()) { in ToString()153 fraction_per_million.value())); in ToString()1061 route->matchers.fraction_per_million = numerator; in RouteRuntimeFractionParse()
414 bool UnderFraction(const uint32_t fraction_per_million) { in UnderFraction() argument417 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()
327 bool UnderFraction(const uint32_t fraction_per_million) { in UnderFraction() argument330 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()