Skip to content

feat: log alerting function to api - #495

Merged
ACaiCat merged 8 commits into
west2-online:mainfrom
CutebreadCat:feat/prometheus
Jul 30, 2026
Merged

feat: log alerting function to api#495
ACaiCat merged 8 commits into
west2-online:mainfrom
CutebreadCat:feat/prometheus

Conversation

@CutebreadCat

Copy link
Copy Markdown
Contributor

自查 PR 结构

  • PR 标题符合这个格式: <type>(optional scope): <description>

  • 此 PR 标题的描述以用户为导向,足够清晰,其他人可以理解。

  • 我已经对所有 commit 提供了签名(GPG 密钥签名、SSH 密钥签名)

  • 这个 PR 属于强制变更/破坏性更改

如果是,请在 PR 标题中添加 BREAKING CHANGE 前缀,并在 PR 描述中详细说明。

这个 PR 的类型是什么?

feat

这个 PR 做了什么 / 我们为什么需要这个 PR?

为api层添加了日志报警的功能

(可选)这个 PR 解决了哪个/些 issue?

对 Reviewer 预留的一些提醒

@CutebreadCat
CutebreadCat requested review from a team, jiuxia211 and ozline as code owners June 25, 2026 11:45
@codecov

codecov Bot commented Jul 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@            Coverage Diff             @@
##             main     #495      +/-   ##
==========================================
+ Coverage   64.49%   64.58%   +0.08%     
==========================================
  Files         234      234              
  Lines        6183     6169      -14     
==========================================
- Hits         3988     3984       -4     
+ Misses       2067     2058       -9     
+ Partials      128      127       -1     
Flag Coverage Δ
unittest 64.58% <ø> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@renbaoshuo renbaoshuo changed the title feat:add log alerting function to api feat: log alerting function to api Jul 27, 2026
Comment thread api/mw/monitor/monitor.go Outdated
Comment thread cmd/api/main.go Outdated
Comment thread api/mw/monitor/state.go
ACaiCat
ACaiCat previously approved these changes Jul 30, 2026
@ACaiCat
ACaiCat merged commit 889204f into west2-online:main Jul 30, 2026
6 of 7 checks passed
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.

2 participants