apache / apache/hertzbeat

[BUG] <Incorrect number of recovery notifications>

Open
#1,369 16 comments 1 reaction 1 assignee Claimed by @Calvin979 View on GitHub
bug good first issue
Dominant language
Java
Stars
7.4k
Forks
1.3k
Avg merge
1d 20h
Merged PRs (30d)
32

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

如果告警阀值配置为超过3次才警告,当服务正常是,恢复通知应该发出一次通知就行,结果发出了3次
![image](https://github.com/dromara/hertzbeat/assets/4798540/c1d58be8-7c92-4940-a8a6-43d16e4df643)

![image](https://github.com/dromara/hertzbeat/assets/4798540/4e2366b9-fcd3-4d57-b852-f8d8620ace31)

### Expected Behavior

恢复通知应该发出一次通知就行,结果发出了3次

### Steps To Reproduce

### Environment

```markdown
HertzBeat version(s):1.4.2
```

### Debug logs

### Anything else?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.