Skip to content

Improve Node and Metric interface to support conditional metric retrieval #1115

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

Merged
merged 2 commits into from
Oct 25, 2019

Conversation

sczyh30
Copy link
Member

@sczyh30 sczyh30 commented Oct 24, 2019

Describe what this PR does / why we need it

Improve Node and Metric interface to support conditional metric retrieval, which could be useful for us to improve the memory footprint of generating metric logs latter.

Does this pull request fix one issue?

NONE

Describe how you did it

  • Add detailsOnCondition method in Metric interface to filter MetricNode within the time condition.
  • Add rawMetricsInMin method in Node interface, which will retrieve and generate metric items from the min-level sliding window on condition.

Describe how to verify it

Run the test cases.

Special notes for reviews

NONE

@sczyh30 sczyh30 added kind/enhancement Category issues or prs related to enhancement. to-review To review labels Oct 24, 2019
Copy link

@BlackImpl BlackImpl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sczyh30 sczyh30 merged commit 74a40aa into alibaba:master Oct 25, 2019
@sczyh30 sczyh30 deleted the enhancement/conditional-metric branch October 25, 2019 08:03
@sczyh30 sczyh30 removed the to-review To review label Oct 25, 2019
@sczyh30 sczyh30 added this to the 1.7.0 milestone Oct 25, 2019
hughpearse pushed a commit to hughpearse/Sentinel that referenced this pull request Jun 2, 2021
…eval (alibaba#1115)

* Add detailsOnCondition method in Metric interface to filter MetricNode within the time condition.
* Add rawMetricsInMin method in Node interface, which will retrieve and generate metric items from the min-level sliding window on condition.
* Add test cases for detailsOnCondition.

Signed-off-by: Eric Zhao <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Category issues or prs related to enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants