1717
1818if TYPE_CHECKING :
1919 from datadog_api_client .v1 .model .creator import Creator
20+ from datadog_api_client .v1 .model .monitor_draft_status import MonitorDraftStatus
2021 from datadog_api_client .v1 .model .matching_downtime import MatchingDowntime
2122 from datadog_api_client .v1 .model .monitor_options import MonitorOptions
2223 from datadog_api_client .v1 .model .monitor_overall_states import MonitorOverallStates
@@ -28,6 +29,7 @@ class Monitor(ModelNormal):
2829 @cached_property
2930 def openapi_types (_ ):
3031 from datadog_api_client .v1 .model .creator import Creator
32+ from datadog_api_client .v1 .model .monitor_draft_status import MonitorDraftStatus
3133 from datadog_api_client .v1 .model .matching_downtime import MatchingDowntime
3234 from datadog_api_client .v1 .model .monitor_options import MonitorOptions
3335 from datadog_api_client .v1 .model .monitor_overall_states import MonitorOverallStates
@@ -38,6 +40,7 @@ def openapi_types(_):
3840 "created" : (datetime ,),
3941 "creator" : (Creator ,),
4042 "deleted" : (datetime , none_type ),
43+ "draft_status" : (MonitorDraftStatus ,),
4144 "id" : (int ,),
4245 "matching_downtimes" : ([MatchingDowntime ],),
4346 "message" : (str ,),
@@ -58,6 +61,7 @@ def openapi_types(_):
5861 "created" : "created" ,
5962 "creator" : "creator" ,
6063 "deleted" : "deleted" ,
64+ "draft_status" : "draft_status" ,
6165 "id" : "id" ,
6266 "matching_downtimes" : "matching_downtimes" ,
6367 "message" : "message" ,
@@ -91,6 +95,7 @@ def __init__(
9195 created : Union [datetime , UnsetType ] = unset ,
9296 creator : Union [Creator , UnsetType ] = unset ,
9397 deleted : Union [datetime , none_type , UnsetType ] = unset ,
98+ draft_status : Union [MonitorDraftStatus , UnsetType ] = unset ,
9499 id : Union [int , UnsetType ] = unset ,
95100 matching_downtimes : Union [List [MatchingDowntime ], UnsetType ] = unset ,
96101 message : Union [str , UnsetType ] = unset ,
@@ -117,6 +122,14 @@ def __init__(
117122 :param deleted: Whether or not the monitor is deleted. (Always ``null`` )
118123 :type deleted: datetime, none_type, optional
119124
125+ :param draft_status: Indicates whether the monitor is in a draft or published state.
126+
127+ ``draft`` : The monitor appears as Draft and does not send notifications.
128+ ``published`` : The monitor is active and evaluates conditions and notify as configured.
129+
130+ This field is in preview. The draft value is only available to customers with the feature enabled.
131+ :type draft_status: MonitorDraftStatus, optional
132+
120133 :param id: ID of this monitor.
121134 :type id: int, optional
122135
@@ -165,6 +178,8 @@ def __init__(
165178 kwargs ["creator" ] = creator
166179 if deleted is not unset :
167180 kwargs ["deleted" ] = deleted
181+ if draft_status is not unset :
182+ kwargs ["draft_status" ] = draft_status
168183 if id is not unset :
169184 kwargs ["id" ] = id
170185 if matching_downtimes is not unset :
0 commit comments