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

prometheus 发送飞书时,告警恢复卡片颜色依然是红色,关键字判断有问题 #415

Open
ZzkGG opened this issue Jul 11, 2024 · 2 comments

Comments

@ZzkGG
Copy link

ZzkGG commented Jul 11, 2024

if strings.Count(text, "恢复信息") > 0 && strings.Count(text, "告警信息") > 0 {
	color = "orange"
} else if strings.Count(text, "恢复信息") > 0 {
	color = "green"
} else {
	color = "red"
}
@dellnoantechnp
Copy link

解决办法见 #354

@ZzkGG
Copy link
Author

ZzkGG commented Jul 15, 2024

thanks, 我自己已经手动改了

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

No branches or pull requests

2 participants