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

alerting v2beta1 tunes #5200

Merged
merged 1 commit into from
Sep 7, 2022
Merged

alerting v2beta1 tunes #5200

merged 1 commit into from
Sep 7, 2022

Conversation

junotx
Copy link
Contributor

@junotx junotx commented Sep 7, 2022

What type of PR is this?

/kind feature

What this PR does / why we need it:

It is a supplement for #5115:

  • rule state statistics info
  • rule active time

Which issue(s) this PR fixes:

Fixes #

Special notes for reviewers:

Does this PR introduced a user-facing change?

None

Additional documentation, usage docs, etc.:


@ks-ci-bot ks-ci-bot added release-note-none kind/feature Categorizes issue or PR as related to a new feature. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 7, 2022
@junotx junotx requested a review from benjaminhuo September 7, 2022 07:49
RulesStats RulesStats `json:"rulesStats,omitempty" description:"statistics of rules in one RuleGroup"`
}

type RulesStats struct {
Copy link
Member

Choose a reason for hiding this comment

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

can be changed to

type RulesStats struct {
	Inactive int `json:"inactive" description:"count of rules in the inactive state"`
	Pending  int `json:"pending" description:"count of rules in the pending state"`
	Firing   int `json:"firing" description:"count of rules in the firing state"`
	Disabled  int `json:"disabled" description:"count of disabled rules"`
}

Copy link
Member

@benjaminhuo benjaminhuo Sep 7, 2022

Choose a reason for hiding this comment

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

These are adj, not nouns.
So we shouldn't add s to them

Signed-off-by: junot <junotxiang@kubesphere.io>
@benjaminhuo
Copy link
Member

/lgtm
/approve

@ks-ci-bot ks-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 7, 2022
@ks-ci-bot
Copy link
Collaborator

LGTM label has been added.

Git tree hash: 7fe492f5bd99ed55d45a4ce54c26f0bf9d74d60b

@ks-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: benjaminhuo, junotx

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ks-ci-bot ks-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 7, 2022
@ks-ci-bot ks-ci-bot merged commit d640c53 into kubesphere:master Sep 7, 2022
zhou1203 pushed a commit that referenced this pull request Oct 15, 2022
Signed-off-by: junot <junotxiang@kubesphere.io>

Signed-off-by: junot <junotxiang@kubesphere.io>
sologgfun pushed a commit to sologgfun/kubesphere that referenced this pull request Apr 24, 2023
Signed-off-by: junot <junotxiang@kubesphere.io>

Signed-off-by: junot <junotxiang@kubesphere.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note-none size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants