apache / hertzbeat

Apache HertzBeat(incubating) is a real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities.
https://hertzbeat.apache.org/
Apache License 2.0
5.54k stars 961 forks source link

[Question] API business status code parsing problem #2050

Closed Chandleroo closed 2 months ago

Chandleroo commented 4 months ago

Question

业务状态响应为“0000”和“0003”,解析为了“0”和“3” image image

Chandleroo commented 4 months ago

1.5.0版本没有此问题

Chandleroo commented 4 months ago

还有企业微信机器人这个通知配置,我理解手机号和userId非必填吧,二者都可以艾特群成员,或者可以不艾特 image

zhangshenghang commented 4 months ago

还有企业微信机器人这个通知配置,我理解手机号和userId非必填吧,二者都可以艾特群成员,或者可以不艾特 image

I will fix this problem because I have already done it on DingTalk notifications. You can open two issues, as these are two different problems.

Chandleroo commented 4 months ago

还有企业微信机器人这个通知配置,我理解手机号和userId非必填吧,二者都可以艾特群成员,或者可以不艾特 image

I will fix this problem because I have already done it on DingTalk notifications. You can open two issues, as these are two different problems.

好的,谢谢

tomsun28 commented 4 months ago

@Chandleroo hi if you want the status result is 0000, you can custom the metrics type is string not number. It is not a bug.

Chandleroo commented 4 months ago

@Chandleroo hi if you want the status result is 0000, you can custom the metrics type is string not number. It is not a bug.

我确认了一下配置,就是设置的string,不是number

zhangshenghang commented 4 months ago

@Chandleroo hi if you want the status result is 0000, you can custom the metrics type is string not number. It is not a bug.

我确认了一下配置,就是设置的string,不是number

Hi , I am trying to fix this issue , Please wait a few days