-
Notifications
You must be signed in to change notification settings - Fork 36
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
✨ 添加简单统计功能 #661
✨ 添加简单统计功能 #661
Conversation
✅ Deploy Preview for nonebot-bison ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #661 +/- ##
==========================================
+ Coverage 85.23% 85.34% +0.10%
==========================================
Files 97 98 +1
Lines 5473 5574 +101
==========================================
+ Hits 4665 4757 +92
- Misses 808 817 +9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sample:
新增订阅hook调用记录:
删除订阅hook调用记录:
调度统计:
weibo:
792958: 1266 次
794708: 1265 次
arknights:
default: 254 次
bilibili:
354678198: 127 次
发送消息统计:
明日方舟游戏信息:
2 次
所有调度对象:
arknights:
default: [权重]0 | [批量]False
bilibili.com:
354678198: [权重]0 | [批量]False
live.bilibili.com:
bilibili.com/bangumi:
ceobe_canteen:
AnonymousScheduleConfig[ff14]:
music.163.com:
rss:
weibo.com:
792958: [权重]-10 | [批量]False
794708: [权重]10 | [批量]False
「所有调度对象」里面,某一项,如果是空的,是不是可以不输出这一项 (或者加个选项?
说实话,这个该用 metrics 来做 |
@@ -3,6 +3,7 @@ | |||
from datetime import time, datetime | |||
from collections.abc import Callable, Sequence, Awaitable | |||
|
|||
from loguru import logger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为什么没有用 nb 的 logger
db_target = Target(target=target, platform_name=platform_name, target_name=target_name) | ||
await asyncio.gather(*[hook(platform_name, target) for hook in self.add_target_hook]) | ||
hook_resp = await asyncio.gather(*[hook(platform_name, target) for hook in self.add_target_hook]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个 hook resp 的内容会是什么
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hook func的返回值 虽然目前为空就是了(
由 #666 完成 |
No description provided.