Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46229,6 +46229,9 @@ components:
IncidentTypeAttributes:
description: Incident type's attributes.
properties:
configuration:
$ref: "#/components/schemas/IncidentTypeConfiguration"
readOnly: true
createdAt:
description: Timestamp when the incident type was created.
format: date-time
Expand Down Expand Up @@ -46270,6 +46273,53 @@ components:
required:
- name
type: object
IncidentTypeConfiguration:
description: >-
The incident-type-scoped behavior settings. All fields are optional on update. Any field omitted from a PATCH request keeps its current value. This object is read-only on the incident type resource itself and is only mutated through the update (PATCH) endpoint.
properties:
allow_incident_deletion:
default: false
description: Whether incidents of this type can be deleted.
example: false
type: boolean
allow_workflows:
default: true
description: Whether automation workflows can be triggered for incidents of this type.
example: true
type: boolean
create_message:
description: An optional message shown to users when they declare an incident of this type.
example: "Create an incident here"
type: string
disable_out_of_the_box_postmortem_template:
default: false
description: Whether the out-of-the-box postmortem template is disabled for incidents of this type.
example: false
type: boolean
editable_timestamps:
default: false
description: Whether responders can edit incident timestamps for incidents of this type.
example: false
type: boolean
private_incidents:
default: false
description: >-
Whether responders can create private incidents of this type. This is an opt-in setting, distinct from `private_incidents_by_default`, which controls whether incidents are created private automatically.
example: false
type: boolean
private_incidents_by_default:
default: false
description: Whether incidents of this type are created as private by default.
example: false
type: boolean
slug_source:
$ref: "#/components/schemas/IncidentTypeSlugSource"
test_incidents:
default: true
description: Whether incidents of this type are treated as test incidents.
example: true
type: boolean
type: object
IncidentTypeCreateData:
description: Incident type data for a create request.
properties:
Expand Down Expand Up @@ -46364,6 +46414,18 @@ components:
required:
- data
type: object
IncidentTypeSlugSource:
default: default
description: >-
When set to `servicenow`, incidents will display the ServiceNow record ID instead of the public ID. If no ServiceNow integration exists, the public ID will be displayed.
enum:
- default
- servicenow
example: default
type: string
x-enum-varnames:
- DEFAULT
- SERVICENOW
IncidentTypeType:
default: incident_types
description: Incident type resource type.
Expand All @@ -46376,6 +46438,8 @@ components:
IncidentTypeUpdateAttributes:
description: Incident type's attributes for updates.
properties:
configuration:
$ref: "#/components/schemas/IncidentTypeConfiguration"
createdAt:
description: Timestamp when the incident type was created.
format: date-time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

/** Incident type's attributes. */
@JsonPropertyOrder({
IncidentTypeAttributes.JSON_PROPERTY_CONFIGURATION,
IncidentTypeAttributes.JSON_PROPERTY_CREATED_AT,
IncidentTypeAttributes.JSON_PROPERTY_CREATED_BY,
IncidentTypeAttributes.JSON_PROPERTY_DESCRIPTION,
Expand All @@ -33,6 +34,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class IncidentTypeAttributes {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_CONFIGURATION = "configuration";
private IncidentTypeConfiguration configuration;

public static final String JSON_PROPERTY_CREATED_AT = "createdAt";
private OffsetDateTime createdAt;

Expand Down Expand Up @@ -65,6 +69,30 @@ public IncidentTypeAttributes(
this.name = name;
}

public IncidentTypeAttributes configuration(IncidentTypeConfiguration configuration) {
this.configuration = configuration;
this.unparsed |= configuration.unparsed;
return this;
}

/**
* The incident-type-scoped behavior settings. All fields are optional on update. Any field
* omitted from a PATCH request keeps its current value. This object is read-only on the incident
* type resource itself and is only mutated through the update (PATCH) endpoint.
*
* @return configuration
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CONFIGURATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public IncidentTypeConfiguration getConfiguration() {
return configuration;
}

public void setConfiguration(IncidentTypeConfiguration configuration) {
this.configuration = configuration;
}

/**
* Timestamp when the incident type was created.
*
Expand Down Expand Up @@ -244,7 +272,8 @@ public boolean equals(Object o) {
return false;
}
IncidentTypeAttributes incidentTypeAttributes = (IncidentTypeAttributes) o;
return Objects.equals(this.createdAt, incidentTypeAttributes.createdAt)
return Objects.equals(this.configuration, incidentTypeAttributes.configuration)
&& Objects.equals(this.createdAt, incidentTypeAttributes.createdAt)
&& Objects.equals(this.createdBy, incidentTypeAttributes.createdBy)
&& Objects.equals(this.description, incidentTypeAttributes.description)
&& Objects.equals(this.isDefault, incidentTypeAttributes.isDefault)
Expand All @@ -258,6 +287,7 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
configuration,
createdAt,
createdBy,
description,
Expand All @@ -273,6 +303,7 @@ public int hashCode() {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IncidentTypeAttributes {\n");
sb.append(" configuration: ").append(toIndentedString(configuration)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
Expand Down
Loading
Loading