Skip to content

Commit bac2f47

Browse files
committed
chore(providers): fixed typos and updated class names related to uptime kuma provider
1 parent 24f003f commit bac2f47

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@
244244
</td>
245245
<td align="center" width="150">
246246
<a href="https://docs.keephq.dev/providers/documentation/uptimekuma-provider" target="_blank">
247-
<img width="40" src="keep-ui/public/icons/uptimekuma-icon.png" alt="UptimeKume"/><br/>
248-
UptimeKume
247+
<img width="40" src="keep-ui/public/icons/uptimekuma-icon.png" alt="UptimeKuma"/><br/>
248+
UptimeKuma
249249
</a>
250250
</td>
251251
<td align="center" width="150">

docs/providers/documentation/uptimekuma-provider.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Obtain UptimeKuma Host URL, Username and Password
2424

2525
1. Connect to UptimeKuma provider with the required parameters.
2626
2. Use the Keep Backend API URL as the Host URL in UptimeKuma. [https://api.keephq.dev](https://api.keephq.dev) (Default)
27-
3. Navigate to Account Settings in Keep, proceed to API Keys, and generate a API Key for Webhook.
27+
3. Navigate to Account Settings in Keep, proceed to API Keys, and generate an API Key for Webhook.
2828

29-
## Usefull Links
29+
## Useful Links
3030

3131
- [UptimeKuma](https://uptime.kuma.pet/)

keep/providers/uptimekuma_provider/uptimekuma_provider.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616

1717
@pydantic.dataclasses.dataclass
18-
class UptimekumaProviderAuthConfig:
18+
class UptimeKumaProviderAuthConfig:
1919
"""
20-
UptimekumaProviderAuthConfig is a class that holds the authentication information for the UptimekumaProvider.
20+
UptimeKumaProviderAuthConfig is a class that holds the authentication information for the UptimekumaProvider.
2121
"""
2222

2323
host_url: str = dataclasses.field(
@@ -48,7 +48,7 @@ class UptimekumaProviderAuthConfig:
4848
)
4949

5050

51-
class UptimekumaProvider(BaseProvider):
51+
class UptimeKumaProvider(BaseProvider):
5252
PROVIDER_DISPLAY_NAME = "UptimeKuma"
5353
PROVIDER_TAGS = ["alert"]
5454
PROVIDER_CATEGORY = ["Monitoring"]
@@ -87,7 +87,7 @@ def validate_scopes(self):
8787
return {"alerts": False}
8888

8989
def validate_config(self):
90-
self.authentication_config = UptimekumaProviderAuthConfig(
90+
self.authentication_config = UptimeKumaProviderAuthConfig(
9191
**self.config.authentication
9292
)
9393
if self.authentication_config.host_url is None:
@@ -189,7 +189,7 @@ def _format_alert(
189189
},
190190
)
191191

192-
provider = UptimekumaProvider(
192+
provider = UptimeKumaProvider(
193193
context_manager=context_manager,
194194
provider_id="uptimekuma",
195195
config=config,

0 commit comments

Comments
 (0)