Skip to content
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

Counter是一直不停累加,如果需要按period累加,如何实现呢? #61

Open
bjo2008cnx opened this issue Apr 16, 2020 · 2 comments

Comments

@bjo2008cnx
Copy link

bjo2008cnx commented Apr 16, 2020

Counter是一直不停累加,如果需要按period累加,如何实现呢?比始,对每分钟的数据进行sum,再在每分钟上sum的基础上,对每小时的数据sum。

@ralf0131
Copy link
Collaborator

用BucketCounter可以实现。

@bjo2008cnx
Copy link
Author

用BucketCounter可以实现。
多谢解决小白的问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants