|
15 | 15 |
|
16 | 16 |
|
17 | 17 | @pydantic.dataclasses.dataclass
|
18 |
| -class UptimeKumaProviderAuthConfig: |
| 18 | +class UptimekumaProviderAuthConfig: |
19 | 19 | """
|
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. |
21 | 21 | """
|
22 | 22 |
|
23 | 23 | host_url: str = dataclasses.field(
|
@@ -48,7 +48,7 @@ class UptimeKumaProviderAuthConfig:
|
48 | 48 | )
|
49 | 49 |
|
50 | 50 |
|
51 |
| -class UptimeKumaProvider(BaseProvider): |
| 51 | +class UptimekumaProvider(BaseProvider): |
52 | 52 | PROVIDER_DISPLAY_NAME = "UptimeKuma"
|
53 | 53 | PROVIDER_TAGS = ["alert"]
|
54 | 54 | PROVIDER_CATEGORY = ["Monitoring"]
|
@@ -87,7 +87,7 @@ def validate_scopes(self):
|
87 | 87 | return {"alerts": False}
|
88 | 88 |
|
89 | 89 | def validate_config(self):
|
90 |
| - self.authentication_config = UptimeKumaProviderAuthConfig( |
| 90 | + self.authentication_config = UptimekumaProviderAuthConfig( |
91 | 91 | **self.config.authentication
|
92 | 92 | )
|
93 | 93 | if self.authentication_config.host_url is None:
|
@@ -189,7 +189,7 @@ def _format_alert(
|
189 | 189 | },
|
190 | 190 | )
|
191 | 191 |
|
192 |
| - provider = UptimeKumaProvider( |
| 192 | + provider = UptimekumaProvider( |
193 | 193 | context_manager=context_manager,
|
194 | 194 | provider_id="uptimekuma",
|
195 | 195 | config=config,
|
|
0 commit comments