|
34 | 34 | IncidentResponseAttributes.JSON_PROPERTY_DETECTED, |
35 | 35 | IncidentResponseAttributes.JSON_PROPERTY_FIELDS, |
36 | 36 | IncidentResponseAttributes.JSON_PROPERTY_INCIDENT_TYPE_UUID, |
| 37 | + IncidentResponseAttributes.JSON_PROPERTY_IS_TEST, |
37 | 38 | IncidentResponseAttributes.JSON_PROPERTY_MODIFIED, |
38 | 39 | IncidentResponseAttributes.JSON_PROPERTY_NON_DATADOG_CREATOR, |
39 | 40 | IncidentResponseAttributes.JSON_PROPERTY_NOTIFICATION_HANDLES, |
@@ -86,6 +87,9 @@ public class IncidentResponseAttributes { |
86 | 87 | public static final String JSON_PROPERTY_INCIDENT_TYPE_UUID = "incident_type_uuid"; |
87 | 88 | private String incidentTypeUuid; |
88 | 89 |
|
| 90 | + public static final String JSON_PROPERTY_IS_TEST = "is_test"; |
| 91 | + private Boolean isTest; |
| 92 | + |
89 | 93 | public static final String JSON_PROPERTY_MODIFIED = "modified"; |
90 | 94 | private OffsetDateTime modified; |
91 | 95 |
|
@@ -413,6 +417,27 @@ public void setIncidentTypeUuid(String incidentTypeUuid) { |
413 | 417 | this.incidentTypeUuid = incidentTypeUuid; |
414 | 418 | } |
415 | 419 |
|
| 420 | + public IncidentResponseAttributes isTest(Boolean isTest) { |
| 421 | + this.isTest = isTest; |
| 422 | + return this; |
| 423 | + } |
| 424 | + |
| 425 | + /** |
| 426 | + * A flag indicating whether the incident is a test incident. |
| 427 | + * |
| 428 | + * @return isTest |
| 429 | + */ |
| 430 | + @jakarta.annotation.Nullable |
| 431 | + @JsonProperty(JSON_PROPERTY_IS_TEST) |
| 432 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 433 | + public Boolean getIsTest() { |
| 434 | + return isTest; |
| 435 | + } |
| 436 | + |
| 437 | + public void setIsTest(Boolean isTest) { |
| 438 | + this.isTest = isTest; |
| 439 | + } |
| 440 | + |
416 | 441 | /** |
417 | 442 | * Timestamp when the incident was last modified. |
418 | 443 | * |
@@ -786,6 +811,7 @@ public boolean equals(Object o) { |
786 | 811 | && Objects.equals(this.detected, incidentResponseAttributes.detected) |
787 | 812 | && Objects.equals(this.fields, incidentResponseAttributes.fields) |
788 | 813 | && Objects.equals(this.incidentTypeUuid, incidentResponseAttributes.incidentTypeUuid) |
| 814 | + && Objects.equals(this.isTest, incidentResponseAttributes.isTest) |
789 | 815 | && Objects.equals(this.modified, incidentResponseAttributes.modified) |
790 | 816 | && Objects.equals(this.nonDatadogCreator, incidentResponseAttributes.nonDatadogCreator) |
791 | 817 | && Objects.equals(this.notificationHandles, incidentResponseAttributes.notificationHandles) |
@@ -818,6 +844,7 @@ public int hashCode() { |
818 | 844 | detected, |
819 | 845 | fields, |
820 | 846 | incidentTypeUuid, |
| 847 | + isTest, |
821 | 848 | modified, |
822 | 849 | nonDatadogCreator, |
823 | 850 | notificationHandles, |
@@ -855,6 +882,7 @@ public String toString() { |
855 | 882 | sb.append(" detected: ").append(toIndentedString(detected)).append("\n"); |
856 | 883 | sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); |
857 | 884 | sb.append(" incidentTypeUuid: ").append(toIndentedString(incidentTypeUuid)).append("\n"); |
| 885 | + sb.append(" isTest: ").append(toIndentedString(isTest)).append("\n"); |
858 | 886 | sb.append(" modified: ").append(toIndentedString(modified)).append("\n"); |
859 | 887 | sb.append(" nonDatadogCreator: ").append(toIndentedString(nonDatadogCreator)).append("\n"); |
860 | 888 | sb.append(" notificationHandles: ") |
|
0 commit comments