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

add interface of validation rule #1606

Merged
merged 10 commits into from
Jul 14, 2023

Conversation

shardingHe
Copy link
Contributor

@shardingHe shardingHe commented Jul 6, 2023

What type of PR is this?
Add interface of validation rule.

What this PR does / why we need it:
Validate the rule before saving, similar to checking for the absence of notify channel tokens.

Which issue(s) this PR fixes:
None.

Special notes for your reviewer:
If all users are missing certain notify channel configurations it will not validate (each channel should be configured with at least one user).

@710leo 710leo merged commit b7c3e8a into ccfos:main Jul 14, 2023
710leo added a commit that referenced this pull request Jul 14, 2023
* add MinIO  dashboard and alert rules based on categraf acquisition (#1625)

* set alert_rule.promql empty

* code refactor

* docs: update built-in alert rule

* add interface of validation rule (#1606)

* add interface of validation rule

---------

Co-authored-by: shardingHe <wangzihe@flashcat.cloud>
Co-authored-by: Yening Qin <710leo@gmail.com>

* refactor consume

---------

Co-authored-by: 青牛踏雪 <56914892+cyancow@users.noreply.github.com>
Co-authored-by: Ulric Qin <ulric.qin@gmail.com>
Co-authored-by: shardingHe <125482062+shardingHe@users.noreply.github.com>
Co-authored-by: shardingHe <wangzihe@flashcat.cloud>
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

Successfully merging this pull request may close these issues.

None yet

2 participants