pytbox 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pytbox might be problematic. Click here for more details.
- {pytbox-0.2.0/src/pytbox.egg-info → pytbox-0.2.1}/PKG-INFO +1 -1
- {pytbox-0.2.0 → pytbox-0.2.1}/pyproject.toml +1 -1
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/log/logger.py +7 -6
- {pytbox-0.2.0 → pytbox-0.2.1/src/pytbox.egg-info}/PKG-INFO +1 -1
- {pytbox-0.2.0 → pytbox-0.2.1}/MANIFEST.in +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/README.md +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/setup.cfg +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/alert/alert_handler.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/alert/ping.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/alicloud/sls.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/base.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/build_config.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/instances.toml +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/__init__.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.cpu/cpu.toml.j2 +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.disk/disk.toml.j2 +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.diskio/diskio.toml.j2 +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.dns_query/dns_query.toml.j2 +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.http_response/http_response.toml.j2 +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.mem/mem.toml.j2 +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.net/net.toml.j2 +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.net_response/net_response.toml.j2 +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.ping/ping.toml.j2 +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.prometheus/prometheus.toml.j2 +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.snmp/cisco_interface.toml.j2 +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.snmp/cisco_system.toml.j2 +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.snmp/h3c_interface.toml.j2 +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.snmp/h3c_system.toml.j2 +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.snmp/huawei_interface.toml.j2 +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.snmp/huawei_system.toml.j2 +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.snmp/ruijie_interface.toml.j2 +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.snmp/ruijie_system.toml.j2 +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.vsphere/vsphere.toml.j2 +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/cli/__init__.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/cli/categraf/__init__.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/cli/categraf/commands.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/cli/commands/vm.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/cli/common/__init__.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/cli/common/options.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/cli/common/utils.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/cli/formatters/__init__.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/cli/formatters/output.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/cli/main.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/cli.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/common/__init__.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/database/mongo.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/database/victoriametrics.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/dida365.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/excel.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/feishu/client.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/feishu/endpoints.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/feishu/errors.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/feishu/helpers.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/feishu/typing.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/log/victorialog.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/mail/alimail.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/mail/client.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/mail/mail_detail.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/network/meraki.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/onepassword_connect.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/onepassword_sa.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/pyjira.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/utils/cronjob.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/utils/env.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/utils/load_config.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/utils/load_vm_devfile.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/utils/response.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/utils/richutils.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/utils/timeutils.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/vmware.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/win/ad.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox.egg-info/SOURCES.txt +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox.egg-info/dependency_links.txt +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox.egg-info/entry_points.txt +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox.egg-info/requires.txt +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox.egg-info/top_level.txt +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/tests/test_base.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/tests/test_feishu.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/tests/test_load_jsonfile.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/tests/test_logger.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/tests/test_onepassword_connect.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/tests/test_onepassword_sa.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/tests/test_victoriametrics.py +0 -0
- {pytbox-0.2.0 → pytbox-0.2.1}/tests/test_vmware.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pytbox"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.1"
|
|
8
8
|
description = "A collection of Python integrations and utilities (Feishu, Dida365, VictoriaMetrics, ...)"
|
|
9
9
|
authors = [{ name = "mingming hou", email = "houm01@foxmail.com" }]
|
|
10
10
|
license = "MIT"
|
|
@@ -152,12 +152,13 @@ class AppLogger:
|
|
|
152
152
|
f"**function_name**: {caller_function}"
|
|
153
153
|
]
|
|
154
154
|
|
|
155
|
-
self.dida
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
155
|
+
if self.dida:
|
|
156
|
+
self.dida.task_create(
|
|
157
|
+
project_id="65e87d2b3e73517c2cdd9d63",
|
|
158
|
+
title=f"自动化脚本告警: {self.app_name}",
|
|
159
|
+
content="\n".join(dida_content_list),
|
|
160
|
+
tags=['L-程序告警', 't-问题处理']
|
|
161
|
+
)
|
|
161
162
|
|
|
162
163
|
def critical(self, message: str):
|
|
163
164
|
"""记录严重错误级别日志"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.http_response/http_response.toml.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.net_response/net_response.toml.j2
RENAMED
|
File without changes
|
|
File without changes
|
{pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.prometheus/prometheus.toml.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.snmp/huawei_interface.toml.j2
RENAMED
|
File without changes
|
|
File without changes
|
{pytbox-0.2.0 → pytbox-0.2.1}/src/pytbox/categraf/jinja2/input.snmp/ruijie_interface.toml.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|