Skip to main content

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


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.3.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

intelab_python_tool-0.1.3-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

Details for the file intelab_python_tool-0.1.3.tar.gz.

File metadata

  • Download URL: intelab_python_tool-0.1.3.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

Hashes for intelab_python_tool-0.1.3.tar.gz
Algorithm Hash digest
SHA256 bdd566004943ba0463fdd57dfb242ffd65c1818789688278155786365de2fdb6
MD5 c8d6ffef2cdf67a926cc325ca105900f
BLAKE2b-256 c1bb9dfe36b3fe6fa73b91b62bf6d194c37fa8aed9eca1a457a78d1cf90ebfa1

See more details on using hashes here.

File details

Details for the file intelab_python_tool-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for intelab_python_tool-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bd668f10420567619709906957705c837567e09309fa5b674d90e08c08f9ad47
MD5 2e9b2069e6a1fb4a258c9fa983b41a6b
BLAKE2b-256 5b640b1eb839df9db1097f81dc06c5c786ad9d1baa04a43296eff3e21906b07c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page