TencentBlueKing / bk-nodeman

蓝鲸节点管理,可以对蓝鲸体系中的GSE Agent进行管理,包括状态查询、版本更新、配置管理、健康检查、进程管理等。
MIT License
50 stars 51 forks source link

feat: IP选择器查询主机状态接口增加实时功能 (closed #2271) #2282

Closed Huayeaaa closed 2 months ago

Huayeaaa commented 2 months ago

PR

CheckList(PR Assigners)

确认已完成以下操作:

CheckList(PR Reviewers)

确认已完成以下操作:

Huayeaaa commented 2 months ago

单测

企业微信截图_17183370029555

非实时,以db为准

企业微信截图_17182774274930 企业微信截图_17182775027521

实时获取agent状态并回填ProcessStatus

企业微信截图_17182773861068 企业微信截图_17183469138640

查询gse接口校验

企业微信截图_17182775602266

获取实时agent状态参数

key:"show_agent_realtime_state", value: True

后台全局配置开关

key:IP_CHOOSER_ENABLE_SHOW_REALTIME_AGENT_STATE
value:true or false true开启 false关闭(agent实时状态)

codecov-commenter commented 2 months ago

Codecov Report

Attention: Patch coverage is 94.28571% with 2 lines in your changes missing coverage. Please review.

Please upload report for BASE (v2.4.6-dev@860ab4e). Learn more about missing BASE report.

Files Patch % Lines
apps/core/ipchooser/constants.py 83.33% 1 Missing :warning:
apps/core/ipchooser/handlers/host_handler.py 96.29% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## v2.4.6-dev #2282 +/- ## ============================================= Coverage ? 75.13% ============================================= Files ? 405 Lines ? 28879 Branches ? 0 ============================================= Hits ? 21699 Misses ? 7180 Partials ? 0 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.