-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support arbitrary statistic interval for flow control && stat parameters configurable #200
Support arbitrary statistic interval for flow control && stat parameters configurable #200
Conversation
Codecov Report
@@ Coverage Diff @@
## master #200 +/- ##
==========================================
+ Coverage 41.89% 43.06% +1.17%
==========================================
Files 77 79 +2
Lines 3817 3994 +177
==========================================
+ Hits 1599 1720 +121
- Misses 1977 2009 +32
- Partials 241 265 +24
Continue to review full report at Codecov.
|
f28d2b9
to
bd7baec
Compare
e9f2d77
to
77c9ad4
Compare
77c9ad4
to
5205051
Compare
@sczyh30 Could you please review this large PR? |
85dc2ce
to
875060e
Compare
875060e
to
444dfe2
Compare
ede8121
to
2d2bf98
Compare
2d2bf98
to
854ed30
Compare
854ed30
to
05e9d1f
Compare
05e9d1f
to
00ebf30
Compare
0b57285
to
cc1d73c
Compare
And we may need to support the scenario when only one of sampleCount or intervalMs is provided (use the default value for another). |
fcb4269
to
79a18bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Awesome. Thanks! |
Describe what this PR does / why we need it
Support arbitrary statistic interval for normal flow rule
stat parameters configurable
Does this pull request fix one issue?
Resolve
#129
#167
Describe how you did it
Support arbitrary statistic interval for normal flow rule
2.If user specifies StatisticConfig and meets the compliance of CheckValidityForReuseStatistic,
will build readonly metric statistic based on resource's global statistic.
3.If user specifies StatisticConfig and doesn't meet the compliance of CheckValidityForReuseStatistic,
will generate independent token bucket statistic for this rule.
Describe how to verify it
TODO
Special notes for reviews