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

chore: add base rule and consolidate common logic #5849

Merged
merged 25 commits into from
Sep 11, 2024

Conversation

srikanthccv
Copy link
Member

@srikanthccv srikanthccv commented Sep 4, 2024

Summary

Part of #5469

This primarily adds the base rule that consolidates the common logic b/w the rules.

Right now, there are two rule types

  1. ThresholdRule - All rules built with ClickHouse queries and query builder
  2. PromRule - Technically threshold rule but special case for promql queries.

The new pkg/query-service/rules/base_rule.go contains the logic that is independent of the rule type. Most of the diff in this PR is just removing the functions form threshold_rule and prom_rule and moving them to base_rule.

@github-actions github-actions bot added the chore label Sep 4, 2024
Copy link

github-actions bot commented Sep 4, 2024

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

Base automatically changed from configure-ee-rule-manager-with-own-func to develop September 9, 2024 04:58
@srikanthccv srikanthccv marked this pull request as ready for review September 9, 2024 07:18
@srikanthccv srikanthccv merged commit c79520c into develop Sep 11, 2024
13 checks passed
@srikanthccv srikanthccv deleted the introduce-base-rule branch September 11, 2024 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants