Skip to main content

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: 接口测试时需要传入的参数

Metadata

Release files for intelab-python-tool 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for intelab-python-tool 0.1.5
File Size Uploaded
intelab_python_tool-0.1.5.tar.gz 21.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for intelab-python-tool 0.1.5
File Interpreter ABI Platform
intelab_python_tool-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 51.1 kB

Release files / intelab_python_tool-0.1.5.tar.gz

Download URL intelab_python_tool-0.1.5.tar.gz
Size 21.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0b574ff8bac3c37ff90dafe0d75422b72b03fa47a893213bebfc103605f41f91
BLAKE2b-256 checksum
How to use checksums
c41ee67adf6b740a8c45aedb5ec0743b07191ed40e283e2a17c92c6659f5173d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / intelab_python_tool-0.1.5-py3-none-any.whl

Download URL intelab_python_tool-0.1.5-py3-none-any.whl
Size 29.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6154673f946b2d66cf0bfd27ad5540fe2afdc24707cdddcf66482b5252b60e7
BLAKE2b-256 checksum
How to use checksums
68e872f90a5afd8523c7135458500499937a3d7518efd94692dc3a45b0447183
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page