mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 12:45:19 +00:00
handle events sent to ups pipe
This commit is contained in:
parent
58e47ae584
commit
40e30529eb
10 changed files with 343 additions and 134 deletions
|
|
@ -9,7 +9,7 @@ from ..checks.utils import format_for_healthchecks_slug
|
|||
from ..core import cvars
|
||||
from .alert import Alert
|
||||
from .clients.healthchecks import HealthchecksClient
|
||||
from .enum import SEVERITY_TO_EMOJI, AlertType, Severity
|
||||
from .enum import SEVERITY_TO_EMOJI, Severity
|
||||
|
||||
|
||||
async def get_tg_client() -> TelegramClient:
|
||||
|
|
@ -23,9 +23,7 @@ async def get_tg_client() -> TelegramClient:
|
|||
def get_healthchecks_client() -> HealthchecksClient:
|
||||
config = cvars.config.get()
|
||||
base_url = config.alert_channels.healthchecks.pinging_api_endpoint
|
||||
client = HealthchecksClient(
|
||||
base_url=config.alert_channels.healthchecks.pinging_api_endpoint, client=AiohttpClient()
|
||||
)
|
||||
client = HealthchecksClient(base_url=base_url, client=AiohttpClient())
|
||||
return client
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue