DiscordBotLinuxMonitor 1.4.2__tar.gz → 1.5.0__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.
- {discordbotlinuxmonitor-1.4.2 → discordbotlinuxmonitor-1.5.0}/DiscordBotLinuxMonitor.egg-info/PKG-INFO +2 -2
- {discordbotlinuxmonitor-1.4.2 → discordbotlinuxmonitor-1.5.0}/DiscordBotLinuxMonitor.egg-info/requires.txt +1 -1
- {discordbotlinuxmonitor-1.4.2 → discordbotlinuxmonitor-1.5.0}/PKG-INFO +2 -2
- {discordbotlinuxmonitor-1.4.2 → discordbotlinuxmonitor-1.5.0}/discordbotlinuxmonitor/discordbotlinuxmonitor.py +3 -2
- {discordbotlinuxmonitor-1.4.2 → discordbotlinuxmonitor-1.5.0}/setup.py +2 -2
- {discordbotlinuxmonitor-1.4.2 → discordbotlinuxmonitor-1.5.0}/DiscordBotLinuxMonitor.egg-info/SOURCES.txt +0 -0
- {discordbotlinuxmonitor-1.4.2 → discordbotlinuxmonitor-1.5.0}/DiscordBotLinuxMonitor.egg-info/dependency_links.txt +0 -0
- {discordbotlinuxmonitor-1.4.2 → discordbotlinuxmonitor-1.5.0}/DiscordBotLinuxMonitor.egg-info/top_level.txt +0 -0
- {discordbotlinuxmonitor-1.4.2 → discordbotlinuxmonitor-1.5.0}/LICENSE.md +0 -0
- {discordbotlinuxmonitor-1.4.2 → discordbotlinuxmonitor-1.5.0}/README.md +0 -0
- {discordbotlinuxmonitor-1.4.2 → discordbotlinuxmonitor-1.5.0}/discordbotlinuxmonitor/__init__.py +0 -0
- {discordbotlinuxmonitor-1.4.2 → discordbotlinuxmonitor-1.5.0}/discordbotlinuxmonitor/__main__.py +0 -0
- {discordbotlinuxmonitor-1.4.2 → discordbotlinuxmonitor-1.5.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: DiscordBotLinuxMonitor
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5.0
|
|
4
4
|
Summary: From discord channels: Get information and warning status of Linux server like service, port, ping, ssl certificate, disk/folder/cpu/ram/swap usage, ip connection, ... (Python and shell library, Linux ONLY)
|
|
5
5
|
Home-page: https://github.com/QuentinCG/Discord-Bot-Linux-Monitor-Python-Library
|
|
6
6
|
Author: Quentin Comte-Gaz
|
|
@@ -22,7 +22,7 @@ Classifier: Environment :: Console
|
|
|
22
22
|
Requires-Python: >=3.3
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
License-File: LICENSE.md
|
|
25
|
-
Requires-Dist: linuxmonitor~=1.
|
|
25
|
+
Requires-Dist: linuxmonitor~=1.5.0
|
|
26
26
|
Requires-Dist: discord.py
|
|
27
27
|
Requires-Dist: typing
|
|
28
28
|
Requires-Dist: asyncio
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: DiscordBotLinuxMonitor
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5.0
|
|
4
4
|
Summary: From discord channels: Get information and warning status of Linux server like service, port, ping, ssl certificate, disk/folder/cpu/ram/swap usage, ip connection, ... (Python and shell library, Linux ONLY)
|
|
5
5
|
Home-page: https://github.com/QuentinCG/Discord-Bot-Linux-Monitor-Python-Library
|
|
6
6
|
Author: Quentin Comte-Gaz
|
|
@@ -22,7 +22,7 @@ Classifier: Environment :: Console
|
|
|
22
22
|
Requires-Python: >=3.3
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
License-File: LICENSE.md
|
|
25
|
-
Requires-Dist: linuxmonitor~=1.
|
|
25
|
+
Requires-Dist: linuxmonitor~=1.5.0
|
|
26
26
|
Requires-Dist: discord.py
|
|
27
27
|
Requires-Dist: typing
|
|
28
28
|
Requires-Dist: asyncio
|
|
@@ -33,7 +33,7 @@ __email__ = "quentin@comte-gaz.com"
|
|
|
33
33
|
__license__ = "MIT License"
|
|
34
34
|
__copyright__ = "Copyright Quentin Comte-Gaz (2024)"
|
|
35
35
|
__python_version__ = "3.+"
|
|
36
|
-
__version__ = "1.
|
|
36
|
+
__version__ = "1.5.0 (2024/10/27)"
|
|
37
37
|
__status__ = "Usable for any Linux project"
|
|
38
38
|
|
|
39
39
|
# pyright: reportMissingTypeStubs=false
|
|
@@ -446,6 +446,7 @@ class DiscordBotLinuxMonitor:
|
|
|
446
446
|
|
|
447
447
|
if is_private:
|
|
448
448
|
out_msg += "\n"
|
|
449
|
+
out_msg += self.monitoring.check_load_average(display_only_if_critical=False) + "\n"
|
|
449
450
|
out_msg += self.monitoring.check_cpu_usage(display_only_if_critical=False) + "\n"
|
|
450
451
|
out_msg += self.monitoring.check_ram_usage(display_only_if_critical=False) + "\n"
|
|
451
452
|
out_msg += self.monitoring.check_swap_usage(display_only_if_critical=False) + "\n"
|
|
@@ -750,7 +751,7 @@ class DiscordBotLinuxMonitor:
|
|
|
750
751
|
|
|
751
752
|
try:
|
|
752
753
|
# Récupérer la liste des processus actifs
|
|
753
|
-
out_msg: str = await self.monitoring.get_ordered_processes(get_non_consuming_processes=False, order_by_ram=order_by_ram)
|
|
754
|
+
out_msg: str = await self.monitoring.get_ordered_processes(get_non_consuming_processes=False, order_by_ram=order_by_ram, max_processes=20)
|
|
754
755
|
|
|
755
756
|
# Répondre à l'utilisateur
|
|
756
757
|
await self._interaction_followup_send_no_limit(interaction=interaction, msg=out_msg)
|
|
@@ -6,7 +6,7 @@ with io.open(file='README.md', mode='r', encoding='utf-8') as readme_file:
|
|
|
6
6
|
|
|
7
7
|
setup(
|
|
8
8
|
name="DiscordBotLinuxMonitor",
|
|
9
|
-
version="1.
|
|
9
|
+
version="1.5.0",
|
|
10
10
|
description="From discord channels: Get information and warning status of Linux server like service, port, ping, ssl certificate, disk/folder/cpu/ram/swap usage, ip connection, ... (Python and shell library, Linux ONLY)",
|
|
11
11
|
long_description=readme,
|
|
12
12
|
long_description_content_type="text/markdown",
|
|
@@ -36,7 +36,7 @@ setup(
|
|
|
36
36
|
keywords='discord bot warning info linux monitor monitoring server service port ping ssl certificate disk folder cpu ram swap usage ip connection',
|
|
37
37
|
platforms='Linux',
|
|
38
38
|
install_requires=[
|
|
39
|
-
"linuxmonitor~=1.
|
|
39
|
+
"linuxmonitor~=1.5.0", # follows the {MAJOR}.{MINOR}.x version range (because LinuxMonitor and DiscordBotLinuxMonitor are tightly coupled and should have same major and minor version)
|
|
40
40
|
"discord.py",
|
|
41
41
|
"typing",
|
|
42
42
|
"asyncio",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{discordbotlinuxmonitor-1.4.2 → discordbotlinuxmonitor-1.5.0}/discordbotlinuxmonitor/__init__.py
RENAMED
|
File without changes
|
{discordbotlinuxmonitor-1.4.2 → discordbotlinuxmonitor-1.5.0}/discordbotlinuxmonitor/__main__.py
RENAMED
|
File without changes
|
|
File without changes
|