ILabor algorithm group tools 算法组常用工具方法
Project description
Common Liabrary
ilabservice 算法公共库
健康检测
from intelab_python_tool.tools.Web.flaskAPI import Monitor
Mt = Monitor(scheduler_list)
Mt.run()
scheduler_list: list
such as : [
[service_name, monitor_log_path, monitor_type, scheduler_period_type,
scheduler_period, dingtalk_function
restart_flag, args],
]
service_name: 如果监控日志,则是重启服务时的服务名;如果是接口测试,则是url
monitor_log_path: 如果监控日志,则是监控的日志文件的绝对路径;如果是接口测试,则是访问接口的方式get or post
monitor_type: 'l'表示监控日志, 'a'表示监控接口
scheduler_period_type: 定时任务的类型,'h'表示按小时,'m'表示按分钟
scheduler_period: 定时任务的时长, 多少小时/多少分钟
dingtalk_function: 发送报警的函数
restart_flag: 是否需要重启服务
args: 接口测试时需要传入的参数
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
intelab_python_tool-0.0.3.tar.gz
(21.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file intelab_python_tool-0.0.3.tar.gz.
File metadata
- Download URL: intelab_python_tool-0.0.3.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6a53235d6d43364740e86806320e3d6e0c493c92ef3bc1019adb3627afb7f85
|
|
| MD5 |
c1dffdb961b99c5a721601082362658c
|
|
| BLAKE2b-256 |
790a68c42510f05e73c3754d91e4c12a001e1de017daf1d25c94cb80d22900aa
|
File details
Details for the file intelab_python_tool-0.0.3-py3-none-any.whl.
File metadata
- Download URL: intelab_python_tool-0.0.3-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34ccb5f6125c9beeabf07baf365c5abac20cd794ff36757ae491bc68ec9f6564
|
|
| MD5 |
4a777809d38c9cafa797a88f56fc5d3d
|
|
| BLAKE2b-256 |
fb7ac788e0602e01abc8b1d3fe8b61df023522c31512c67acdf1fb8ede3e055f
|