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.1.4.tar.gz
(21.8 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.1.4.tar.gz.
File metadata
- Download URL: intelab_python_tool-0.1.4.tar.gz
- Upload date:
- Size: 21.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eddf83dca49f7779048cf7763543cb9222b84014512c1b1e341973ce1164d4da
|
|
| MD5 |
734553a37282586a691952de0367fba0
|
|
| BLAKE2b-256 |
578d6993a7924defe51183ccf14e290bf73ef998901d05ab770953e1dff6347b
|
File details
Details for the file intelab_python_tool-0.1.4-py3-none-any.whl.
File metadata
- Download URL: intelab_python_tool-0.1.4-py3-none-any.whl
- Upload date:
- Size: 29.1 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 |
de6a50567c0afa3489c35814557eece8e8251aeb088935b5b38c16e8605f9959
|
|
| MD5 |
839e206902925b3e3bbb0448ffd9eba8
|
|
| BLAKE2b-256 |
8fcf765f412429071752bbe652dccb7254e7165d02d0e992860106cb13789bdd
|