@@ -428,6 +428,38 @@ class ChannelContent(JSONObject):
428428 # Other channel types like 'webhook', 'slack' could be added here as Optional fields.
429429
430430
431+ @dataclass
432+ class EmailDetails (JSONObject ):
433+ """
434+ Represents email-specific details for an alert channel.
435+ """
436+ usernames : Optional [List [str ]] = None
437+ recipient_type : Optional [str ] = None
438+
439+
440+ @dataclass
441+ class ChannelDetails (JSONObject ):
442+ """
443+ Represents the details block for an AlertChannel, which varies by channel type.
444+ """
445+ email : Optional [EmailDetails ] = None
446+
447+
448+ @dataclass
449+ class AlertsReference (JSONObject ):
450+ """
451+ Represents a reference to alerts associated with an alert channel.
452+
453+ Fields:
454+ - url: str - API URL to fetch the alerts for this channel
455+ - type: str - Type identifier (e.g., 'alerts-definitions')
456+ - alert_count: int - Number of alerts associated with this channel
457+ """
458+ url : str = ""
459+ _type : str = field (default = "" , metadata = {"json_key" : "type" })
460+ alert_count : int = 0
461+
462+
431463class AlertChannel (Base ):
432464 """
433465 Represents an alert channel used to deliver notifications when alerts
@@ -450,7 +482,8 @@ class AlertChannel(Base):
450482 "label" : Property (),
451483 "type" : Property (),
452484 "channel_type" : Property (),
453- "alerts" : Property (mutable = False , json_object = Alerts ),
485+ "details" : Property (mutable = False , json_object = ChannelDetails ),
486+ "alerts" : Property (mutable = False , json_object = AlertsReference ),
454487 "content" : Property (mutable = False , json_object = ChannelContent ),
455488 "created" : Property (is_datetime = True ),
456489 "updated" : Property (is_datetime = True ),
0 commit comments