Skip to content

Commit

Permalink
chore(providers): fixed typos and updated class names related to upti…
Browse files Browse the repository at this point in the history
…me kuma provider
  • Loading branch information
pehlicd committed Nov 25, 2024
1 parent 24f003f commit bac2f47
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@
</td>
<td align="center" width="150">
<a href="https://docs.keephq.dev/providers/documentation/uptimekuma-provider" target="_blank">
<img width="40" src="keep-ui/public/icons/uptimekuma-icon.png" alt="UptimeKume"/><br/>
UptimeKume
<img width="40" src="keep-ui/public/icons/uptimekuma-icon.png" alt="UptimeKuma"/><br/>
UptimeKuma
</a>
</td>
<td align="center" width="150">
Expand Down
4 changes: 2 additions & 2 deletions docs/providers/documentation/uptimekuma-provider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
10 changes: 5 additions & 5 deletions keep/providers/uptimekuma_provider/uptimekuma_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -48,7 +48,7 @@ class UptimekumaProviderAuthConfig:
)


class UptimekumaProvider(BaseProvider):
class UptimeKumaProvider(BaseProvider):
PROVIDER_DISPLAY_NAME = "UptimeKuma"
PROVIDER_TAGS = ["alert"]
PROVIDER_CATEGORY = ["Monitoring"]
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -189,7 +189,7 @@ def _format_alert(
},
)

provider = UptimekumaProvider(
provider = UptimeKumaProvider(
context_manager=context_manager,
provider_id="uptimekuma",
config=config,
Expand Down

0 comments on commit bac2f47

Please sign in to comment.