From bac2f470b26d5bb28d3e8043e35ac7d3ae1b9ba4 Mon Sep 17 00:00:00 2001
From: pehlicd <65170388+pehlicd@users.noreply.github.com>
Date: Mon, 25 Nov 2024 15:47:01 +0100
Subject: [PATCH] chore(providers): fixed typos and updated class names related
to uptime kuma provider
---
README.md | 4 ++--
docs/providers/documentation/uptimekuma-provider.mdx | 4 ++--
.../uptimekuma_provider/uptimekuma_provider.py | 10 +++++-----
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/README.md b/README.md
index 7bf0bbcea..1fc2d2db1 100644
--- a/README.md
+++ b/README.md
@@ -244,8 +244,8 @@
- 
- UptimeKume
+ 
+ UptimeKuma
|
diff --git a/docs/providers/documentation/uptimekuma-provider.mdx b/docs/providers/documentation/uptimekuma-provider.mdx
index b52f02769..06f45f486 100644
--- a/docs/providers/documentation/uptimekuma-provider.mdx
+++ b/docs/providers/documentation/uptimekuma-provider.mdx
@@ -24,8 +24,8 @@ Obtain UptimeKuma Host URL, Username and Password
1. Connect to UptimeKuma provider with the required parameters.
2. Use the Keep Backend API URL as the Host URL in UptimeKuma. [https://api.keephq.dev](https://api.keephq.dev) (Default)
-3. Navigate to Account Settings in Keep, proceed to API Keys, and generate a API Key for Webhook.
+3. Navigate to Account Settings in Keep, proceed to API Keys, and generate an API Key for Webhook.
-## Usefull Links
+## Useful Links
- [UptimeKuma](https://uptime.kuma.pet/)
diff --git a/keep/providers/uptimekuma_provider/uptimekuma_provider.py b/keep/providers/uptimekuma_provider/uptimekuma_provider.py
index f5c8f7728..aeb159b17 100644
--- a/keep/providers/uptimekuma_provider/uptimekuma_provider.py
+++ b/keep/providers/uptimekuma_provider/uptimekuma_provider.py
@@ -15,9 +15,9 @@
@pydantic.dataclasses.dataclass
-class UptimekumaProviderAuthConfig:
+class UptimeKumaProviderAuthConfig:
"""
- UptimekumaProviderAuthConfig is a class that holds the authentication information for the UptimekumaProvider.
+ UptimeKumaProviderAuthConfig is a class that holds the authentication information for the UptimekumaProvider.
"""
host_url: str = dataclasses.field(
@@ -48,7 +48,7 @@ class UptimekumaProviderAuthConfig:
)
-class UptimekumaProvider(BaseProvider):
+class UptimeKumaProvider(BaseProvider):
PROVIDER_DISPLAY_NAME = "UptimeKuma"
PROVIDER_TAGS = ["alert"]
PROVIDER_CATEGORY = ["Monitoring"]
@@ -87,7 +87,7 @@ def validate_scopes(self):
return {"alerts": False}
def validate_config(self):
- self.authentication_config = UptimekumaProviderAuthConfig(
+ self.authentication_config = UptimeKumaProviderAuthConfig(
**self.config.authentication
)
if self.authentication_config.host_url is None:
@@ -189,7 +189,7 @@ def _format_alert(
},
)
- provider = UptimekumaProvider(
+ provider = UptimeKumaProvider(
context_manager=context_manager,
provider_id="uptimekuma",
config=config,
|