@@ -36,6 +36,8 @@ type IncidentResponseAttributes struct {
3636 Fields map [string ]IncidentFieldAttributes `json:"fields,omitempty"`
3737 // A unique identifier that represents an incident type.
3838 IncidentTypeUuid * string `json:"incident_type_uuid,omitempty"`
39+ // A flag indicating whether the incident is a test incident.
40+ IsTest * bool `json:"is_test,omitempty"`
3941 // Timestamp when the incident was last modified.
4042 Modified * time.Time `json:"modified,omitempty"`
4143 // Incident's non Datadog creator.
@@ -460,6 +462,34 @@ func (o *IncidentResponseAttributes) SetIncidentTypeUuid(v string) {
460462 o .IncidentTypeUuid = & v
461463}
462464
465+ // GetIsTest returns the IsTest field value if set, zero value otherwise.
466+ func (o * IncidentResponseAttributes ) GetIsTest () bool {
467+ if o == nil || o .IsTest == nil {
468+ var ret bool
469+ return ret
470+ }
471+ return * o .IsTest
472+ }
473+
474+ // GetIsTestOk returns a tuple with the IsTest field value if set, nil otherwise
475+ // and a boolean to check if the value has been set.
476+ func (o * IncidentResponseAttributes ) GetIsTestOk () (* bool , bool ) {
477+ if o == nil || o .IsTest == nil {
478+ return nil , false
479+ }
480+ return o .IsTest , true
481+ }
482+
483+ // HasIsTest returns a boolean if a field has been set.
484+ func (o * IncidentResponseAttributes ) HasIsTest () bool {
485+ return o != nil && o .IsTest != nil
486+ }
487+
488+ // SetIsTest gets a reference to the given bool and assigns it to the IsTest field.
489+ func (o * IncidentResponseAttributes ) SetIsTest (v bool ) {
490+ o .IsTest = & v
491+ }
492+
463493// GetModified returns the Modified field value if set, zero value otherwise.
464494func (o * IncidentResponseAttributes ) GetModified () time.Time {
465495 if o == nil || o .Modified == nil {
@@ -907,6 +937,9 @@ func (o IncidentResponseAttributes) MarshalJSON() ([]byte, error) {
907937 if o .IncidentTypeUuid != nil {
908938 toSerialize ["incident_type_uuid" ] = o .IncidentTypeUuid
909939 }
940+ if o .IsTest != nil {
941+ toSerialize ["is_test" ] = o .IsTest
942+ }
910943 if o .Modified != nil {
911944 if o .Modified .Nanosecond () == 0 {
912945 toSerialize ["modified" ] = o .Modified .Format ("2006-01-02T15:04:05Z07:00" )
@@ -969,6 +1002,7 @@ func (o *IncidentResponseAttributes) UnmarshalJSON(bytes []byte) (err error) {
9691002 Detected datadog.NullableTime `json:"detected,omitempty"`
9701003 Fields map [string ]IncidentFieldAttributes `json:"fields,omitempty"`
9711004 IncidentTypeUuid * string `json:"incident_type_uuid,omitempty"`
1005+ IsTest * bool `json:"is_test,omitempty"`
9721006 Modified * time.Time `json:"modified,omitempty"`
9731007 NonDatadogCreator NullableIncidentNonDatadogCreator `json:"non_datadog_creator,omitempty"`
9741008 NotificationHandles []IncidentNotificationHandle `json:"notification_handles,omitempty"`
@@ -991,7 +1025,7 @@ func (o *IncidentResponseAttributes) UnmarshalJSON(bytes []byte) (err error) {
9911025 }
9921026 additionalProperties := make (map [string ]interface {})
9931027 if err = datadog .Unmarshal (bytes , & additionalProperties ); err == nil {
994- datadog .DeleteKeys (additionalProperties , & []string {"archived" , "case_id" , "created" , "customer_impact_duration" , "customer_impact_end" , "customer_impact_scope" , "customer_impact_start" , "customer_impacted" , "detected" , "fields" , "incident_type_uuid" , "modified" , "non_datadog_creator" , "notification_handles" , "public_id" , "resolved" , "severity" , "state" , "time_to_detect" , "time_to_internal_response" , "time_to_repair" , "time_to_resolve" , "title" , "visibility" })
1028+ datadog .DeleteKeys (additionalProperties , & []string {"archived" , "case_id" , "created" , "customer_impact_duration" , "customer_impact_end" , "customer_impact_scope" , "customer_impact_start" , "customer_impacted" , "detected" , "fields" , "incident_type_uuid" , "is_test" , " modified" , "non_datadog_creator" , "notification_handles" , "public_id" , "resolved" , "severity" , "state" , "time_to_detect" , "time_to_internal_response" , "time_to_repair" , "time_to_resolve" , "title" , "visibility" })
9951029 } else {
9961030 return err
9971031 }
@@ -1008,6 +1042,7 @@ func (o *IncidentResponseAttributes) UnmarshalJSON(bytes []byte) (err error) {
10081042 o .Detected = all .Detected
10091043 o .Fields = all .Fields
10101044 o .IncidentTypeUuid = all .IncidentTypeUuid
1045+ o .IsTest = all .IsTest
10111046 o .Modified = all .Modified
10121047 o .NonDatadogCreator = all .NonDatadogCreator
10131048 o .NotificationHandles = all .NotificationHandles
0 commit comments