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.5.tar.gz
(21.9 kB
view details)
Built Distribution
File details
Details for the file intelab_python_tool-0.1.5.tar.gz
.
File metadata
- Download URL: intelab_python_tool-0.1.5.tar.gz
- Upload date:
- Size: 21.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b574ff8bac3c37ff90dafe0d75422b72b03fa47a893213bebfc103605f41f91 |
|
MD5 | 65e58dd7204027d8ef14d805d0df1d1e |
|
BLAKE2b-256 | c41ee67adf6b740a8c45aedb5ec0743b07191ed40e283e2a17c92c6659f5173d |
File details
Details for the file intelab_python_tool-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: intelab_python_tool-0.1.5-py3-none-any.whl
- Upload date:
- Size: 29.2 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 | d6154673f946b2d66cf0bfd27ad5540fe2afdc24707cdddcf66482b5252b60e7 |
|
MD5 | 05a2916e67f71abafefd94fd4994ef02 |
|
BLAKE2b-256 | 68e872f90a5afd8523c7135458500499937a3d7518efd94692dc3a45b0447183 |