Skip to content

feat(checker) Move bad state reminder into config - #1242

Open
kissken wants to merge 6 commits into
masterfrom
feat/add_reminder_into_config
Open

feat(checker) Move bad state reminder into config#1242
kissken wants to merge 6 commits into
masterfrom
feat/add_reminder_into_config

Conversation

@kissken

@kissken kissken commented Nov 11, 2025

Copy link
Copy Markdown
Member

PR Summary

Move bad state reminder into config

Closes/Relates #issue

@kissken
kissken requested a review from a team as a code owner November 11, 2025 11:02
realtime := urlValues.Get("realtime")
if realtime == "" {
return
return sourceProvider, targetName, from, to, triggerID, fetchRealtimeData, err

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

это линтер орал - полечила

Comment thread checker/trigger_checker.go Outdated
mchrome
mchrome previously approved these changes Nov 11, 2025
Comment thread cmd/checker/config.go
CriticalTimeOfCheck: "1h",
MetricEventTriggerCheckInterval: "30s",
BadStateReminder: map[string]int64{
moira.StateERROR.String(): moira.DefaultBadStateReminder,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

А у нас нет какого-то списка стейтов, которые считаются Bad? Чтобы не хардкодить, а по нему пробежаться

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

нет

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ну вообще вот мы тут как раз его и создаем - это ж конфиг :)

Comment thread checker/event.go
}

remindInterval, ok := badStateReminder[currentStateValue]
remindInterval, ok := triggerChecker.badStateReminder[currentStateValue]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Может добавить, что if !ok { remindInterval = moira.DefaultBadStateReminder }

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

норм, но я не уверена, что это будет явно

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fixed

@kissken

kissken commented Nov 19, 2025

Copy link
Copy Markdown
Member Author

/build

@github-actions

Copy link
Copy Markdown

Build and push Docker images with tag: feat-add_reminder_into_config.2025-11-19.4cd024a

1 similar comment
@github-actions

Copy link
Copy Markdown

Build and push Docker images with tag: feat-add_reminder_into_config.2025-11-19.4cd024a

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.

4 participants