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

Update feishu.go 修复飞书机器人@功能失效的bug #456

Closed
wants to merge 1 commit into from

Conversation

wppzxc
Copy link
Contributor

@wppzxc wppzxc commented Nov 11, 2024

remove 'id' attribute for feishu
issue #455

remove 'id' attribute for feishu <at />
issue feiyu563#455
@wppzxc wppzxc changed the title Update feishu.go Update feishu.go 修复飞书机器人@功能失效的bug Nov 11, 2024
@Leif160519
Copy link
Contributor

Leif160519 commented Nov 12, 2024

如果我没记错的话,我从用prometheusalert开始就只能用用户的uid(ou_xxx)来实现at人,这个uid的获取还比较复杂,需要根据公司的在飞书里的一些信息id和调用飞书接口,来获取用户的uid,然后将这些uid填写到prometheusalert url的后面就可以实现at人的功能了

image

你把前面的id去掉了,我猜测修改之前是将用户的邮箱当作id传递给了prometheusalert,删掉这个id之后,恰好将填写的邮箱地址传递给了email字段,从而能正常at人了(未测试,单纯猜测)

@feiyu563
Copy link
Owner

image

最新的4.9.1的版本经测试是可以直接支持id和email来@人的

@feiyu563 feiyu563 closed this Nov 12, 2024
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.

3 participants