@cryptotaxi247 / CoPilot / commits / a0cb6f40

Update GraylogEventNotificationsNotification config type

Taylor committed Feb 15, 2024 at 09:15 UTC a0cb6f4083be6d23278291d27710c3332177412e
1 file changed +5 -2
backend/app/connectors/graylog/schema/monitoring.py
+5 -2
@@ -1,5 +1,7 @@
1 from typing import List
2 from typing import Optional
3 +from typing import Dict
4 +from typing import Any
5
6 from pydantic import BaseModel
7 from pydantic import Field
@@ -88,7 +90,8 @@ class GraylogEventNotificationsNotification(BaseModel):
90 id: str
91 title: str
92 description: str
91 - config: GraylogEventNotificationsConfig
93 + #config: GraylogEventNotificationsConfig
94 + config: Optional[Dict[str, Any]]
95
96
97 class GraylogEventNotifications(BaseModel):
@@ -102,6 +105,6 @@ class GraylogEventNotifications(BaseModel):
105
106
107 class GraylogEventNotificationsResponse(BaseModel):
105 - event_notifications: GraylogEventNotifications
108 + event_notifications: Optional[GraylogEventNotifications]
109 message: str
110 success: bool