diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml
index 73163c4c177..7d0cf9ebb60 100644
--- a/.generator/schemas/v2/openapi.yaml
+++ b/.generator/schemas/v2/openapi.yaml
@@ -558,6 +558,37 @@ components:
required: true
schema:
type: string
+ IncidentAutomationDataIncludeParameter:
+ description: Specifies which related objects to include in the response.
+ in: query
+ name: include
+ required: false
+ schema:
+ type: string
+ IncidentAutomationDataKeyParameter:
+ description: The automation data key.
+ example: workflow_status
+ in: path
+ name: key
+ required: true
+ schema:
+ type: string
+ IncidentCommunicationFilterTypeParameter:
+ description: Filter by communication type.
+ in: query
+ name: "filter[communication_type]"
+ required: false
+ schema:
+ type: string
+ IncidentCommunicationIdParameter:
+ description: The ID of the communication.
+ example: 00000000-0000-0000-0000-000000000000
+ in: path
+ name: communication_id
+ required: true
+ schema:
+ format: uuid
+ type: string
IncidentIDPathParameter:
description: The UUID of the incident.
in: path
@@ -609,6 +640,53 @@ components:
required: true
schema:
type: string
+ IncidentJiraTemplateIdParameter:
+ description: The ID of the Jira template.
+ example: 00000000-0000-0000-0000-000000000000
+ in: path
+ name: template_id
+ required: true
+ schema:
+ format: uuid
+ type: string
+ IncidentJiraTemplateIncidentTypeIdParameter:
+ description: Filter templates by incident type identifier.
+ in: query
+ name: incidentTypeId
+ required: false
+ schema:
+ format: uuid
+ type: string
+ IncidentJiraTemplateIsDefaultParameter:
+ description: Filter templates by default status.
+ in: query
+ name: isDefault
+ required: false
+ schema:
+ type: boolean
+ IncidentJiraTemplateTypeParameter:
+ description: Filter templates by type.
+ in: query
+ name: templateType
+ required: false
+ schema:
+ type: string
+ IncidentMicrosoftTeamsConfigurationIdParameter:
+ description: The ID of the Microsoft Teams configuration.
+ example: 00000000-0000-0000-0000-000000000000
+ in: path
+ name: configuration_id
+ required: true
+ schema:
+ format: uuid
+ type: string
+ IncidentMicrosoftTeamsIncludeParameter:
+ description: Specifies which related objects to include in the response.
+ in: query
+ name: include
+ required: false
+ schema:
+ type: string
IncidentNotificationRuleIDPathParameter:
description: The ID of the notification rule.
in: path
@@ -657,6 +735,77 @@ components:
schema:
example: "created_by_user,incident_type"
type: string
+ IncidentReservedRoleIdParameter:
+ description: The ID of the reserved role.
+ example: 00000000-0000-0000-0000-000000000000
+ in: path
+ name: role_id
+ required: true
+ schema:
+ format: uuid
+ type: string
+ IncidentRoleAssignmentIdParameter:
+ description: The ID of the role assignment.
+ example: 00000000-0000-0000-0000-000000000000
+ in: path
+ name: role_assignment_id
+ required: true
+ schema:
+ format: uuid
+ type: string
+ IncidentSearchIncidentsIncludeParameter:
+ description: Specifies which types of related objects to include.
+ in: query
+ name: include
+ required: false
+ schema:
+ items:
+ $ref: "#/components/schemas/IncidentSearchIncidentsIncludeType"
+ type: array
+ IncidentSearchIncidentsQueryParameter:
+ description: Specifies which incidents should be returned by the search.
+ in: query
+ name: query
+ required: false
+ schema:
+ type: string
+ IncidentSearchIncidentsSemanticQueryParameter:
+ description: A semantic search query.
+ in: query
+ name: semantic_query
+ required: false
+ schema:
+ type: string
+ IncidentSearchIncidentsSortParameter:
+ description: Specifies the order of returned incidents.
+ in: query
+ name: sort
+ required: false
+ schema:
+ $ref: "#/components/schemas/IncidentSearchIncidentsSortOrder"
+ IncidentSearchIncidentsTimezoneParameter:
+ description: The timezone for date-based operations.
+ in: query
+ name: timeZone
+ required: false
+ schema:
+ type: string
+ IncidentSearchIncidentsWithDeletedParameter:
+ description: Whether to include deleted incidents in the response.
+ in: query
+ name: "filter[with_deleted]"
+ required: false
+ schema:
+ default: false
+ type: boolean
+ IncidentSearchIncidentsWithFacetsParameter:
+ description: Whether to include facet data in the response.
+ in: query
+ name: with_facets
+ required: false
+ schema:
+ default: true
+ type: boolean
IncidentSearchIncludeQueryParameter:
description: Specifies which types of related objects should be included in the response.
in: query
@@ -705,6 +854,79 @@ components:
schema:
example: "ExampleServiceName"
type: string
+ IncidentStatusPageIdParameter:
+ description: The ID of the status page.
+ example: 00000000-0000-0000-0000-000000000000
+ in: path
+ name: statuspage_id
+ required: true
+ schema:
+ format: uuid
+ type: string
+ IncidentStatusPageNoticeIdParameter:
+ description: The ID of the status page notice.
+ example: 00000000-0000-0000-0000-000000000000
+ in: path
+ name: notice_id
+ required: true
+ schema:
+ format: uuid
+ type: string
+ IncidentStatusPageNotifySubscribersParameter:
+ description: Whether to notify subscribers about this notice.
+ in: query
+ name: notify_subscribers
+ required: false
+ schema:
+ type: boolean
+ IncidentStatuspageIncidentIdParameter:
+ description: The ID of the Statuspage incident.
+ example: abc123
+ in: path
+ name: statuspage_incident_id
+ required: true
+ schema:
+ type: string
+ IncidentStatuspagePageIdParameter:
+ description: The ID of the Statuspage page.
+ example: abc123
+ in: path
+ name: page_id
+ required: true
+ schema:
+ type: string
+ IncidentStatuspagePageIdPathParameter:
+ description: The ID of the status page.
+ example: my-status-page
+ in: path
+ name: page_id
+ required: true
+ schema:
+ type: string
+ IncidentTemplateVariableFilterIncidentTypeParameter:
+ description: Filter template variables by incident type.
+ in: query
+ name: "filter[incident-type]"
+ required: false
+ schema:
+ format: uuid
+ type: string
+ IncidentTemplateVariableIncludeFollowUpsParameter:
+ description: Whether to include follow-up template variables.
+ in: query
+ name: includeFollowUps
+ required: false
+ schema:
+ type: boolean
+ IncidentTimelineEntryIdParameter:
+ description: The ID of the timeline entry.
+ example: 00000000-0000-0000-0000-000000000000
+ in: path
+ name: timeline_entry_id
+ required: true
+ schema:
+ format: uuid
+ type: string
IncidentTodoIDPathParameter:
description: The UUID of the incident todo.
in: path
@@ -734,6 +956,22 @@ components:
schema:
example: "00000000-0000-0000-0000-000000000000"
type: string
+ IncidentZoomConfigurationIdParameter:
+ description: The ID of the Zoom configuration.
+ example: 00000000-0000-0000-0000-000000000000
+ in: path
+ name: configuration_id
+ required: true
+ schema:
+ format: uuid
+ type: string
+ IncidentZoomIncludeParameter:
+ description: Specifies which related objects to include in the response.
+ in: query
+ name: include
+ required: false
+ schema:
+ type: string
Include:
description: Include relationship data.
explode: true
@@ -1116,6 +1354,22 @@ components:
example: 10
format: int64
type: integer
+ PagerdutyIncidentIdParameter:
+ description: The PagerDuty incident identifier.
+ example: P1234AB
+ in: path
+ name: pagerduty_incident_id
+ required: true
+ schema:
+ type: string
+ PagerdutyIncludeUnresolvedParameter:
+ description: Whether to include unresolved PagerDuty services.
+ in: query
+ name: include_unresolved
+ required: false
+ schema:
+ default: false
+ type: boolean
PersonaMappingID:
description: The ID of the persona mapping
example: c5c758c6-18c2-4484-ae3f-46b84128404a
@@ -33501,6 +33755,373 @@ components:
type: string
x-enum-varnames:
- INCIDENT_ATTACHMENTS
+ IncidentAutomationDataAttributesRequest:
+ description: Attributes for upserting automation data.
+ properties:
+ value:
+ description: The automation data value.
+ example: completed
+ type: string
+ required:
+ - value
+ type: object
+ IncidentAutomationDataAttributesResponse:
+ description: Attributes of incident automation data.
+ properties:
+ created_at:
+ description: Timestamp when the data was created.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ incident_id:
+ description: The incident identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ key:
+ description: The automation data key.
+ example: workflow_status
+ type: string
+ updated_at:
+ description: Timestamp when the data was last updated.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ value:
+ description: The automation data value.
+ example: completed
+ type: string
+ required:
+ - incident_id
+ - key
+ - value
+ - created_at
+ - updated_at
+ type: object
+ IncidentAutomationDataDataRequest:
+ description: Automation data for a request.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentAutomationDataAttributesRequest"
+ type:
+ $ref: "#/components/schemas/IncidentAutomationDataType"
+ required:
+ - type
+ - attributes
+ type: object
+ IncidentAutomationDataDataResponse:
+ description: Automation data in a response.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentAutomationDataAttributesResponse"
+ id:
+ description: The automation data identifier.
+ example: workflow_status
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentAutomationDataType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentAutomationDataRequest:
+ description: Request to upsert automation data.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentAutomationDataDataRequest"
+ required:
+ - data
+ type: object
+ IncidentAutomationDataResponse:
+ description: Response with automation data.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentAutomationDataDataResponse"
+ required:
+ - data
+ type: object
+ IncidentAutomationDataType:
+ description: Incident automation data resource type.
+ enum:
+ - incidents_automation_data
+ example: incidents_automation_data
+ type: string
+ x-enum-varnames:
+ - INCIDENTS_AUTOMATION_DATA
+ IncidentBatchCreateRuleExecutionStatesData:
+ description: Data for batch creating rule execution states.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentBatchCreateRuleExecutionStatesDataAttributes"
+ type:
+ $ref: "#/components/schemas/IncidentRuleExecutionStateType"
+ required:
+ - type
+ - attributes
+ type: object
+ IncidentBatchCreateRuleExecutionStatesDataAttributes:
+ description: Attributes for batch creating rule execution states.
+ properties:
+ rules:
+ description: List of rules to create execution states for.
+ items:
+ $ref: "#/components/schemas/IncidentRuleExecutionStateRule"
+ type: array
+ required:
+ - rules
+ type: object
+ IncidentBatchCreateRuleExecutionStatesRequest:
+ description: Request to batch create rule execution states.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentBatchCreateRuleExecutionStatesData"
+ required:
+ - data
+ type: object
+ IncidentBatchUpdateRuleExecutionStatesData:
+ description: Data for batch updating rule execution states.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentBatchUpdateRuleExecutionStatesDataAttributes"
+ type:
+ $ref: "#/components/schemas/IncidentRuleExecutionStateType"
+ required:
+ - type
+ - attributes
+ type: object
+ IncidentBatchUpdateRuleExecutionStatesDataAttributes:
+ description: Attributes for batch updating rule execution states.
+ properties:
+ rules:
+ description: List of rules to update execution states for.
+ items:
+ $ref: "#/components/schemas/IncidentRuleExecutionStateRule"
+ type: array
+ required:
+ - rules
+ type: object
+ IncidentBatchUpdateRuleExecutionStatesRequest:
+ description: Request to batch update rule execution states.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentBatchUpdateRuleExecutionStatesData"
+ required:
+ - data
+ type: object
+ IncidentCaseLinkData:
+ description: Case link data.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentCaseLinkDataAttributes"
+ id:
+ description: The case link identifier.
+ example: "12345"
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentCaseLinkType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentCaseLinkDataAttributes:
+ description: Attributes of a case link.
+ properties:
+ entity_id:
+ description: The entity identifier.
+ example: "12345"
+ type: string
+ is_page:
+ description: Whether this is a page link.
+ example: false
+ type: boolean
+ relationship:
+ description: The relationship type.
+ example: source
+ type: string
+ required:
+ - entity_id
+ - is_page
+ - relationship
+ type: object
+ IncidentCaseLinkResponse:
+ description: Response with a case link.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentCaseLinkData"
+ required:
+ - data
+ type: object
+ IncidentCaseLinkType:
+ description: Case link resource type.
+ enum:
+ - case_link
+ example: case_link
+ type: string
+ x-enum-varnames:
+ - CASE_LINK
+ IncidentCommunicationContent:
+ description: The content of a communication.
+ properties:
+ grouping_key:
+ description: A key used for grouping communications.
+ example: update-1
+ type: string
+ handles:
+ description: The list of handles the communication is sent to.
+ items:
+ $ref: "#/components/schemas/IncidentCommunicationContentHandle"
+ type: array
+ message:
+ description: The message body of the communication.
+ example: Incident update for INC-123.
+ type: string
+ status:
+ description: The status code of the communication.
+ example: 0
+ format: int32
+ maximum: 2147483647
+ type: integer
+ subject:
+ description: The subject line of the communication.
+ example: "Incident INC-123: Update"
+ type: string
+ required:
+ - handles
+ - message
+ type: object
+ IncidentCommunicationContentHandle:
+ description: A handle used for sending a communication.
+ properties:
+ created_at:
+ description: Timestamp when the handle was added.
+ example: "2024-01-01T00:00:00.000Z"
+ type: string
+ display_name:
+ description: The display name for the handle.
+ example: "#incidents-channel"
+ type: string
+ handle:
+ description: The notification handle.
+ example: "@slack-incidents-channel"
+ type: string
+ required:
+ - handle
+ type: object
+ IncidentCommunicationDataAttributesRequest:
+ description: Attributes for creating or updating a communication.
+ properties:
+ communication_type:
+ $ref: "#/components/schemas/IncidentCommunicationKind"
+ content:
+ $ref: "#/components/schemas/IncidentCommunicationContent"
+ required:
+ - communication_type
+ - content
+ type: object
+ IncidentCommunicationDataAttributesResponse:
+ description: Attributes of an incident communication response.
+ properties:
+ communication_type:
+ $ref: "#/components/schemas/IncidentCommunicationKind"
+ content:
+ $ref: "#/components/schemas/IncidentCommunicationContent"
+ created:
+ description: Timestamp when the communication was created.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ incident_id:
+ description: The incident identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ modified:
+ description: Timestamp when the communication was last modified.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ required:
+ - incident_id
+ - communication_type
+ - content
+ - created
+ - modified
+ type: object
+ IncidentCommunicationDataRequest:
+ description: Incident communication data for a request.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentCommunicationDataAttributesRequest"
+ type:
+ $ref: "#/components/schemas/IncidentCommunicationType"
+ required:
+ - type
+ - attributes
+ type: object
+ IncidentCommunicationDataResponse:
+ description: Incident communication data in a response.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentCommunicationDataAttributesResponse"
+ id:
+ description: The communication identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentCommunicationType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentCommunicationKind:
+ description: The kind of communication.
+ enum:
+ - manual
+ - automated
+ example: manual
+ type: string
+ x-enum-varnames:
+ - MANUAL
+ - AUTOMATED
+ IncidentCommunicationRequest:
+ description: Request to create or update a communication.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentCommunicationDataRequest"
+ required:
+ - data
+ type: object
+ IncidentCommunicationResponse:
+ description: Response with a single communication.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentCommunicationDataResponse"
+ required:
+ - data
+ type: object
+ IncidentCommunicationType:
+ description: Incident communication resource type.
+ enum:
+ - communication
+ example: communication
+ type: string
+ x-enum-varnames:
+ - COMMUNICATION
+ IncidentCommunicationsResponse:
+ description: Response with a list of communications.
+ properties:
+ data:
+ description: List of communications.
+ items:
+ $ref: "#/components/schemas/IncidentCommunicationDataResponse"
+ type: array
+ required:
+ - data
+ type: object
IncidentCreateAttributes:
description: The incident's attributes for a create request.
properties:
@@ -33574,6 +34195,35 @@ components:
required:
- data
type: object
+ IncidentCreateZoomMeetingData:
+ description: Data for creating a Zoom meeting.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentCreateZoomMeetingDataAttributes"
+ type:
+ $ref: "#/components/schemas/IncidentZoomIntegrationType"
+ required:
+ - type
+ - attributes
+ type: object
+ IncidentCreateZoomMeetingDataAttributes:
+ description: Attributes for creating a Zoom meeting.
+ properties:
+ topic:
+ description: The topic of the Zoom meeting.
+ example: "Incident INC-123 War Room"
+ type: string
+ required:
+ - topic
+ type: object
+ IncidentCreateZoomMeetingRequest:
+ description: Request to create a Zoom meeting for an incident.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentCreateZoomMeetingData"
+ required:
+ - data
+ type: object
IncidentFieldAttributes:
description: Dynamic fields for which selections can be made, with field names as keys.
oneOf:
@@ -33631,6 +34281,92 @@ components:
- TEXTARRAY
- METRICTAG
- AUTOCOMPLETE
+ IncidentGoogleMeetIntegrationDataAttributes:
+ description: Attributes of a Google Meet integration metadata.
+ properties:
+ created:
+ description: Timestamp when the integration was created.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ integration_type:
+ description: The type of integration.
+ example: google_meet
+ type: string
+ modified:
+ description: Timestamp when the integration was last modified.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ spaces:
+ description: List of Google Meet spaces.
+ items:
+ $ref: "#/components/schemas/IncidentGoogleMeetSpace"
+ type: array
+ status:
+ description: The status of the integration.
+ example: active
+ type: string
+ required:
+ - status
+ - integration_type
+ - spaces
+ - created
+ - modified
+ type: object
+ IncidentGoogleMeetIntegrationDataResponse:
+ description: Google Meet integration data in a response.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentGoogleMeetIntegrationDataAttributes"
+ id:
+ description: The integration identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentGoogleMeetIntegrationType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentGoogleMeetIntegrationResponse:
+ description: Response with Google Meet integration metadata.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentGoogleMeetIntegrationDataResponse"
+ required:
+ - data
+ type: object
+ IncidentGoogleMeetIntegrationType:
+ description: Incident integration resource type.
+ enum:
+ - incident_integrations
+ example: incident_integrations
+ type: string
+ x-enum-varnames:
+ - INCIDENT_INTEGRATIONS
+ IncidentGoogleMeetSpace:
+ description: A Google Meet space associated with an incident.
+ properties:
+ join_url:
+ description: The URL to join the Google Meet space.
+ example: https://meet.google.com/abc-defg-hij
+ type: string
+ meeting_code:
+ description: The meeting code for the space.
+ example: abc-defg-hij
+ type: string
+ name:
+ description: The name of the Google Meet space.
+ example: spaces/abc123
+ type: string
+ required:
+ - name
+ - join_url
+ - meeting_code
+ type: object
IncidentHandleAttributesFields:
description: Dynamic fields associated with the handle
example:
@@ -34454,6 +35190,579 @@ components:
last_modified_by_user:
$ref: "#/components/schemas/RelationshipToUser"
type: object
+ IncidentJiraIssueDataAttributesRequest:
+ description: Attributes for creating a Jira issue from an incident.
+ properties:
+ account_id:
+ description: The Jira account identifier.
+ example: "123456"
+ type: string
+ issue_type_id:
+ description: The Jira issue type identifier.
+ example: "10001"
+ type: string
+ project_id:
+ description: The Jira project identifier.
+ example: "10000"
+ type: string
+ template_id:
+ description: The identifier of the Jira template to use.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ required:
+ - account_id
+ - project_id
+ - issue_type_id
+ type: object
+ IncidentJiraIssueDataRequest:
+ description: Jira issue data for a request.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentJiraIssueDataAttributesRequest"
+ type:
+ $ref: "#/components/schemas/IncidentJiraIssueType"
+ required:
+ - type
+ - attributes
+ type: object
+ IncidentJiraIssueIntegrationDataAttributes:
+ description: Attributes of a Jira issue integration.
+ properties:
+ created:
+ description: Timestamp when the integration was created.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ integration_type:
+ description: The type of integration.
+ example: jira
+ type: string
+ modified:
+ description: Timestamp when the integration was last modified.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ status:
+ description: The status of the integration.
+ example: active
+ type: string
+ required:
+ - status
+ - integration_type
+ - created
+ - modified
+ type: object
+ IncidentJiraIssueIntegrationDataResponse:
+ description: Jira issue integration data in a response.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentJiraIssueIntegrationDataAttributes"
+ id:
+ description: The integration identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentJiraIssueIntegrationType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentJiraIssueIntegrationResponse:
+ description: Response with Jira issue integration metadata.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentJiraIssueIntegrationDataResponse"
+ required:
+ - data
+ type: object
+ IncidentJiraIssueIntegrationType:
+ description: Incident integration resource type.
+ enum:
+ - incident_integrations
+ example: incident_integrations
+ type: string
+ x-enum-varnames:
+ - INCIDENT_INTEGRATIONS
+ IncidentJiraIssueRequest:
+ description: Request to create a Jira issue from an incident.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentJiraIssueDataRequest"
+ required:
+ - data
+ type: object
+ IncidentJiraIssueType:
+ description: Incident Jira issue resource type.
+ enum:
+ - incident_jira_issues
+ example: incident_jira_issues
+ type: string
+ x-enum-varnames:
+ - INCIDENT_JIRA_ISSUES
+ IncidentJiraTemplateDataAttributesRequest:
+ description: Attributes for creating or updating an incident Jira template.
+ properties:
+ account_id:
+ description: The Jira account identifier.
+ example: "123456"
+ type: string
+ field_configurations:
+ description: Field configuration mappings.
+ items:
+ $ref: "#/components/schemas/IncidentJiraTemplateFieldConfiguration"
+ type: array
+ fields:
+ additionalProperties: {}
+ description: The Jira fields configuration.
+ type: object
+ is_default:
+ description: Whether this is the default template.
+ example: false
+ type: boolean
+ issue_id:
+ description: The Jira issue type identifier.
+ example: "10001"
+ type: string
+ mappings:
+ additionalProperties: {}
+ description: The field mappings configuration.
+ type: object
+ meta:
+ additionalProperties: {}
+ description: Additional metadata for the template.
+ type: object
+ name:
+ description: The name of the template.
+ example: Default Jira Template
+ type: string
+ project_id:
+ description: The Jira project identifier.
+ example: "10000"
+ type: string
+ project_key:
+ description: The Jira project key.
+ example: INC
+ type: string
+ sync_enabled:
+ description: Whether synchronization is enabled.
+ example: true
+ type: boolean
+ type:
+ description: The type of the template.
+ example: jira
+ type: string
+ required:
+ - account_id
+ - issue_id
+ - project_id
+ - project_key
+ type: object
+ IncidentJiraTemplateDataAttributesResponse:
+ description: Attributes of an incident Jira template.
+ properties:
+ account_id:
+ description: The Jira account identifier.
+ example: "123456"
+ type: string
+ created:
+ description: Timestamp when the template was created.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ created_by_uuid:
+ description: UUID of the user who created the template.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ field_configurations:
+ description: Field configuration mappings.
+ items:
+ $ref: "#/components/schemas/IncidentJiraTemplateFieldConfiguration"
+ type: array
+ fields:
+ additionalProperties: {}
+ description: The Jira fields configuration.
+ type: object
+ is_default:
+ description: Whether this is the default template.
+ example: false
+ type: boolean
+ issue_id:
+ description: The Jira issue type identifier.
+ example: "10001"
+ type: string
+ last_modified_by_uuid:
+ description: UUID of the user who last modified the template.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ mappings:
+ additionalProperties: {}
+ description: The field mappings configuration.
+ type: object
+ meta:
+ additionalProperties: {}
+ description: Additional metadata for the template.
+ type: object
+ modified:
+ description: Timestamp when the template was last modified.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ name:
+ description: The name of the template.
+ example: Default Jira Template
+ type: string
+ project_id:
+ description: The Jira project identifier.
+ example: "10000"
+ type: string
+ project_key:
+ description: The Jira project key.
+ example: INC
+ type: string
+ sync_enabled:
+ description: Whether synchronization is enabled.
+ example: true
+ type: boolean
+ type:
+ description: The type of the template.
+ example: jira
+ type: string
+ required:
+ - account_id
+ - issue_id
+ - project_id
+ - project_key
+ - name
+ - type
+ - is_default
+ - sync_enabled
+ - created
+ - modified
+ - created_by_uuid
+ - last_modified_by_uuid
+ type: object
+ IncidentJiraTemplateDataRequest:
+ description: Incident Jira template data for a create or update request.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentJiraTemplateDataAttributesRequest"
+ relationships:
+ $ref: "#/components/schemas/IncidentJiraTemplateRelationships"
+ type:
+ $ref: "#/components/schemas/IncidentJiraTemplateType"
+ required:
+ - type
+ - attributes
+ type: object
+ IncidentJiraTemplateDataResponse:
+ description: Incident Jira template data in a response.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentJiraTemplateDataAttributesResponse"
+ id:
+ description: The template identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ relationships:
+ $ref: "#/components/schemas/IncidentJiraTemplateRelationships"
+ type:
+ $ref: "#/components/schemas/IncidentJiraTemplateType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentJiraTemplateFieldConfiguration:
+ description: Configuration for a Jira field mapping.
+ properties:
+ custom_outbound_value:
+ description: Custom value for outbound synchronization.
+ incident_field:
+ description: The incident field to map to.
+ example: title
+ nullable: true
+ type: string
+ jira_field_key:
+ description: The Jira field key.
+ example: summary
+ type: string
+ jira_field_type:
+ description: The type of the Jira field.
+ example: string
+ nullable: true
+ type: string
+ sync_direction:
+ description: The direction of synchronization.
+ example: bidirectional
+ type: string
+ value_mapping:
+ additionalProperties:
+ type: string
+ description: Mapping of values between incident and Jira fields.
+ type: object
+ required:
+ - jira_field_key
+ - sync_direction
+ type: object
+ IncidentJiraTemplateIncidentTypeRelationship:
+ description: Relationship to an incident type.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentJiraTemplateIncidentTypeRelationshipData"
+ required:
+ - data
+ type: object
+ IncidentJiraTemplateIncidentTypeRelationshipData:
+ description: Incident type relationship data.
+ properties:
+ id:
+ description: The incident type identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ type:
+ description: The incident type resource type.
+ example: incident_types
+ type: string
+ required:
+ - id
+ - type
+ type: object
+ IncidentJiraTemplateRelationships:
+ description: Relationships for an incident Jira template.
+ properties:
+ incident_type:
+ $ref: "#/components/schemas/IncidentJiraTemplateIncidentTypeRelationship"
+ type: object
+ IncidentJiraTemplateRequest:
+ description: Create or update request for an incident Jira template.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentJiraTemplateDataRequest"
+ required:
+ - data
+ type: object
+ IncidentJiraTemplateResponse:
+ description: Response with a single incident Jira template.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentJiraTemplateDataResponse"
+ required:
+ - data
+ type: object
+ IncidentJiraTemplateType:
+ description: Incident Jira template resource type.
+ enum:
+ - incidents_jira_templates
+ example: incidents_jira_templates
+ type: string
+ x-enum-varnames:
+ - INCIDENTS_JIRA_TEMPLATES
+ IncidentJiraTemplatesResponse:
+ description: Response with a list of incident Jira templates.
+ properties:
+ data:
+ description: List of incident Jira templates.
+ items:
+ $ref: "#/components/schemas/IncidentJiraTemplateDataResponse"
+ type: array
+ required:
+ - data
+ type: object
+ IncidentMSTeamsChannel:
+ description: A Microsoft Teams channel associated with an incident.
+ properties:
+ ms_channel_id:
+ description: The Teams channel identifier.
+ example: "19:abc123@thread.tacv2"
+ type: string
+ ms_channel_name:
+ description: The name of the Teams channel.
+ example: incidents-channel
+ type: string
+ ms_team_id:
+ description: The Teams team identifier.
+ example: "00000000-0000-0000-0000-000000000000"
+ type: string
+ ms_tenant_id:
+ description: The Teams tenant identifier.
+ example: "00000000-0000-0000-0000-000000000000"
+ type: string
+ redirect_url:
+ description: The redirect URL for the channel.
+ example: https://teams.microsoft.com/l/channel/abc123
+ type: string
+ team_name:
+ description: The name of the Teams team.
+ example: Incident Response
+ type: string
+ required:
+ - ms_channel_name
+ - ms_channel_id
+ type: object
+ IncidentMSTeamsIntegrationDataAttributes:
+ description: Attributes of a Microsoft Teams integration metadata.
+ properties:
+ created:
+ description: Timestamp when the integration was created.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ integration_type:
+ description: The type of integration.
+ example: ms_teams
+ type: string
+ modified:
+ description: Timestamp when the integration was last modified.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ status:
+ description: The status of the integration.
+ example: active
+ type: string
+ teams:
+ description: List of Microsoft Teams channels.
+ items:
+ $ref: "#/components/schemas/IncidentMSTeamsChannel"
+ type: array
+ required:
+ - status
+ - integration_type
+ - teams
+ - created
+ - modified
+ type: object
+ IncidentMSTeamsIntegrationDataResponse:
+ description: Microsoft Teams integration data in a response.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentMSTeamsIntegrationDataAttributes"
+ id:
+ description: The integration identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentMicrosoftTeamsIntegrationType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentMSTeamsIntegrationResponse:
+ description: Response with Microsoft Teams integration metadata.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentMSTeamsIntegrationDataResponse"
+ required:
+ - data
+ type: object
+ IncidentMicrosoftTeamsConfigurationDataAttributesRequest:
+ description: Attributes for creating or updating a Microsoft Teams configuration.
+ properties:
+ manual_meeting_creation:
+ description: Whether manual meeting creation is enabled.
+ example: false
+ type: boolean
+ post_meeting_summary:
+ description: Whether post-meeting summary is enabled.
+ example: true
+ type: boolean
+ type: object
+ IncidentMicrosoftTeamsConfigurationDataAttributesResponse:
+ description: Attributes of a Microsoft Teams configuration.
+ properties:
+ created_at:
+ description: Timestamp when the configuration was created.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ manual_meeting_creation:
+ description: Whether manual meeting creation is enabled.
+ example: false
+ type: boolean
+ modified_at:
+ description: Timestamp when the configuration was last modified.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ post_meeting_summary:
+ description: Whether post-meeting summary is enabled.
+ example: true
+ type: boolean
+ required:
+ - manual_meeting_creation
+ - post_meeting_summary
+ - created_at
+ - modified_at
+ type: object
+ IncidentMicrosoftTeamsConfigurationDataRequest:
+ description: Microsoft Teams configuration data for a request.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentMicrosoftTeamsConfigurationDataAttributesRequest"
+ type:
+ $ref: "#/components/schemas/IncidentMicrosoftTeamsConfigurationType"
+ required:
+ - type
+ - attributes
+ type: object
+ IncidentMicrosoftTeamsConfigurationDataResponse:
+ description: Microsoft Teams configuration data in a response.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentMicrosoftTeamsConfigurationDataAttributesResponse"
+ id:
+ description: The configuration identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentMicrosoftTeamsConfigurationType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentMicrosoftTeamsConfigurationRequest:
+ description: Request to create or update a Microsoft Teams configuration.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentMicrosoftTeamsConfigurationDataRequest"
+ required:
+ - data
+ type: object
+ IncidentMicrosoftTeamsConfigurationResponse:
+ description: Response with a Microsoft Teams configuration.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentMicrosoftTeamsConfigurationDataResponse"
+ required:
+ - data
+ type: object
+ IncidentMicrosoftTeamsConfigurationType:
+ description: Microsoft Teams configuration resource type.
+ enum:
+ - microsoft_teams_configurations
+ example: microsoft_teams_configurations
+ type: string
+ x-enum-varnames:
+ - MICROSOFT_TEAMS_CONFIGURATIONS
+ IncidentMicrosoftTeamsIntegrationType:
+ description: Incident integration resource type.
+ enum:
+ - incident_integrations
+ example: incident_integrations
+ type: string
+ x-enum-varnames:
+ - INCIDENT_INTEGRATIONS
IncidentNonDatadogCreator:
description: Incident's non Datadog creator.
nullable: true
@@ -34967,6 +36276,93 @@ components:
- id
- type
type: object
+ IncidentPagerdutyIncidentDataResponse:
+ description: Incident data related to a PagerDuty incident.
+ properties:
+ id:
+ description: The Datadog incident identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ type:
+ description: The incident resource type.
+ example: incidents
+ type: string
+ required:
+ - id
+ - type
+ type: object
+ IncidentPagerdutyRelatedIncidentsResponse:
+ description: Response with a list of Datadog incidents related to a PagerDuty incident.
+ properties:
+ data:
+ description: List of related Datadog incidents.
+ items:
+ $ref: "#/components/schemas/IncidentPagerdutyIncidentDataResponse"
+ type: array
+ required:
+ - data
+ type: object
+ IncidentPagerdutyServiceData:
+ description: PagerDuty service data.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentPagerdutyServiceDataAttributes"
+ id:
+ description: The PagerDuty service identifier.
+ example: P1234AB
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentPagerdutyServiceType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentPagerdutyServiceDataAttributes:
+ description: Attributes of a PagerDuty service.
+ properties:
+ handle:
+ description: The handle for the PagerDuty service.
+ example: my-pagerduty-service
+ type: string
+ name:
+ description: The name of the PagerDuty service.
+ example: My PagerDuty Service
+ type: string
+ service_id:
+ description: The PagerDuty service identifier.
+ example: P1234AB
+ type: string
+ webhooks_enabled:
+ description: Whether webhooks are enabled for this service.
+ example: true
+ type: boolean
+ required:
+ - name
+ - service_id
+ - webhooks_enabled
+ - handle
+ type: object
+ IncidentPagerdutyServiceType:
+ description: PagerDuty service resource type.
+ enum:
+ - pagerduty_service
+ example: pagerduty_service
+ type: string
+ x-enum-varnames:
+ - PAGERDUTY_SERVICE
+ IncidentPagerdutyServicesResponse:
+ description: Response with a list of PagerDuty services.
+ properties:
+ data:
+ description: List of PagerDuty services.
+ items:
+ $ref: "#/components/schemas/IncidentPagerdutyServiceData"
+ type: array
+ required:
+ - data
+ type: object
IncidentPostmortemType:
default: incident_postmortems
description: Incident postmortem resource type.
@@ -34998,6 +36394,180 @@ components:
- type
- id
type: object
+ IncidentRenderTemplateDataAttributesRequest:
+ description: Attributes for rendering a template.
+ properties:
+ content:
+ description: The template content to render.
+ example: "Incident INC-123 is SEV-1."
+ type: string
+ datetime_format:
+ description: The date-time format to use for rendering.
+ example: "2006-01-02T15:04:05Z07:00"
+ type: string
+ timezone:
+ description: The timezone to use for rendering.
+ example: America/New_York
+ type: string
+ validate_links:
+ description: Whether to validate links in the rendered template.
+ example: false
+ nullable: true
+ type: boolean
+ validate_variables:
+ description: Whether to validate variables in the template.
+ example: false
+ nullable: true
+ type: boolean
+ required:
+ - content
+ type: object
+ IncidentRenderTemplateDataRequest:
+ description: Data for rendering a template.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentRenderTemplateDataAttributesRequest"
+ type:
+ $ref: "#/components/schemas/IncidentRenderedTemplateType"
+ required:
+ - type
+ - attributes
+ type: object
+ IncidentRenderTemplateRequest:
+ description: Request to render a template.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentRenderTemplateDataRequest"
+ required:
+ - data
+ type: object
+ IncidentRenderedTemplateData:
+ description: Rendered template data.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentRenderedTemplateDataAttributes"
+ id:
+ description: The rendered template identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentRenderedTemplateType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentRenderedTemplateDataAttributes:
+ description: Attributes of a rendered template.
+ properties:
+ rendered_content:
+ description: The rendered template content.
+ example: "Incident Server Down is SEV-1."
+ type: string
+ required:
+ - rendered_content
+ type: object
+ IncidentRenderedTemplateResponse:
+ description: Response with a rendered template.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentRenderedTemplateData"
+ required:
+ - data
+ type: object
+ IncidentRenderedTemplateType:
+ description: Rendered template resource type.
+ enum:
+ - rendered_templates
+ example: rendered_templates
+ type: string
+ x-enum-varnames:
+ - RENDERED_TEMPLATES
+ IncidentReservedRoleDataAttributesResponse:
+ description: Attributes of a reserved role.
+ properties:
+ created:
+ description: Timestamp when the role was created.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ description:
+ description: A description of the reserved role.
+ example: The incident commander.
+ nullable: true
+ type: string
+ modified:
+ description: Timestamp when the role was last modified.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ name:
+ description: The name of the reserved role.
+ example: commander
+ type: string
+ policy:
+ $ref: "#/components/schemas/IncidentReservedRolePolicy"
+ required:
+ - name
+ - policy
+ - created
+ - modified
+ type: object
+ IncidentReservedRoleDataResponse:
+ description: Reserved role data in a response.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentReservedRoleDataAttributesResponse"
+ id:
+ description: The reserved role identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentReservedRoleType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentReservedRolePolicy:
+ description: Policy for a reserved role.
+ properties:
+ is_single:
+ description: Whether this role can only be assigned to a single responder.
+ example: true
+ type: boolean
+ required:
+ - is_single
+ type: object
+ IncidentReservedRoleResponse:
+ description: Response with a single reserved role.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentReservedRoleDataResponse"
+ required:
+ - data
+ type: object
+ IncidentReservedRoleType:
+ description: Incident reserved role resource type.
+ enum:
+ - incident_reserved_roles
+ example: incident_reserved_roles
+ type: string
+ x-enum-varnames:
+ - INCIDENT_RESERVED_ROLES
+ IncidentReservedRolesResponse:
+ description: Response with a list of reserved roles.
+ properties:
+ data:
+ description: List of reserved roles.
+ items:
+ $ref: "#/components/schemas/IncidentReservedRoleDataResponse"
+ type: array
+ required:
+ - data
+ type: object
IncidentResourceType:
description: Incident resource type
enum:
@@ -35241,6 +36811,310 @@ components:
user_defined_fields:
$ref: "#/components/schemas/RelationshipToIncidentUserDefinedFields"
type: object
+ IncidentRoleAssignmentDataAttributesRequest:
+ description: Attributes for creating a role assignment.
+ properties:
+ role:
+ description: The name of the role to assign.
+ example: commander
+ nullable: true
+ type: string
+ type: object
+ IncidentRoleAssignmentDataAttributesResponse:
+ description: Attributes of an incident role assignment.
+ properties:
+ created:
+ description: Timestamp when the role assignment was created.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ modified:
+ description: Timestamp when the role assignment was last modified.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ responder_type:
+ description: The type of the responder.
+ example: user
+ type: string
+ role:
+ description: The name of the assigned role.
+ example: commander
+ type: string
+ required:
+ - role
+ - responder_type
+ - created
+ - modified
+ type: object
+ IncidentRoleAssignmentDataRequest:
+ description: Role assignment data for a request.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentRoleAssignmentDataAttributesRequest"
+ relationships:
+ $ref: "#/components/schemas/IncidentRoleAssignmentRelationshipsRequest"
+ type:
+ $ref: "#/components/schemas/IncidentRoleAssignmentType"
+ required:
+ - type
+ - relationships
+ type: object
+ IncidentRoleAssignmentDataResponse:
+ description: Role assignment data in a response.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentRoleAssignmentDataAttributesResponse"
+ id:
+ description: The role assignment identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ relationships:
+ $ref: "#/components/schemas/IncidentRoleAssignmentRelationshipsResponse"
+ type:
+ $ref: "#/components/schemas/IncidentRoleAssignmentType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentRoleAssignmentRelationshipsRequest:
+ description: Relationships for creating a role assignment.
+ properties:
+ reserved_role:
+ $ref: "#/components/schemas/IncidentRoleAssignmentRoleRelationship"
+ responder:
+ $ref: "#/components/schemas/IncidentRoleAssignmentResponderRelationship"
+ user_defined_role:
+ $ref: "#/components/schemas/IncidentRoleAssignmentRoleRelationship"
+ required:
+ - responder
+ type: object
+ IncidentRoleAssignmentRelationshipsResponse:
+ description: Relationships of a role assignment.
+ properties:
+ created_by_user:
+ $ref: "#/components/schemas/IncidentRoleAssignmentResponderRelationship"
+ last_modified_by_user:
+ $ref: "#/components/schemas/IncidentRoleAssignmentResponderRelationship"
+ reserved_role:
+ $ref: "#/components/schemas/IncidentRoleAssignmentRoleRelationship"
+ responder:
+ $ref: "#/components/schemas/IncidentRoleAssignmentResponderRelationship"
+ user_defined_role:
+ $ref: "#/components/schemas/IncidentRoleAssignmentRoleRelationship"
+ required:
+ - responder
+ type: object
+ IncidentRoleAssignmentRequest:
+ description: Request to create a role assignment.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentRoleAssignmentDataRequest"
+ required:
+ - data
+ type: object
+ IncidentRoleAssignmentResponderRelationship:
+ description: Relationship to a responder.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentRoleAssignmentResponderRelationshipData"
+ required:
+ - data
+ type: object
+ IncidentRoleAssignmentResponderRelationshipData:
+ description: Responder relationship data.
+ properties:
+ id:
+ description: The responder identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ type:
+ description: The responder resource type.
+ example: users
+ type: string
+ required:
+ - id
+ - type
+ type: object
+ IncidentRoleAssignmentResponse:
+ description: Response with a single role assignment.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentRoleAssignmentDataResponse"
+ required:
+ - data
+ type: object
+ IncidentRoleAssignmentRoleRelationship:
+ description: Relationship to a role.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentRoleAssignmentRoleRelationshipData"
+ type: object
+ IncidentRoleAssignmentRoleRelationshipData:
+ description: Role relationship data.
+ properties:
+ id:
+ description: The role identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ type:
+ description: The role resource type.
+ example: incident_reserved_roles
+ type: string
+ required:
+ - id
+ - type
+ type: object
+ IncidentRoleAssignmentType:
+ description: Incident role assignment resource type.
+ enum:
+ - incident_role_assignments
+ example: incident_role_assignments
+ type: string
+ x-enum-varnames:
+ - INCIDENT_ROLE_ASSIGNMENTS
+ IncidentRuleExecutionStateDataAttributesResponse:
+ description: Attributes of an incident rule execution state.
+ properties:
+ created:
+ description: Timestamp when the state was created.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ incident_uuid:
+ description: The incident identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ last_executed_at:
+ description: Timestamp of the last rule execution.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ nullable: true
+ type: string
+ modified:
+ description: Timestamp when the state was last modified.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ rule_uuid:
+ description: The rule identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ required:
+ - rule_uuid
+ - incident_uuid
+ - created
+ - modified
+ type: object
+ IncidentRuleExecutionStateDataResponse:
+ description: Rule execution state data in a response.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentRuleExecutionStateDataAttributesResponse"
+ id:
+ description: The rule execution state identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentRuleExecutionStateType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentRuleExecutionStateRule:
+ description: A rule in a batch request.
+ properties:
+ last_executed_at:
+ description: Timestamp of the last rule execution.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ nullable: true
+ type: string
+ rule_uuid:
+ description: The rule identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ required:
+ - rule_uuid
+ type: object
+ IncidentRuleExecutionStateType:
+ description: Incident rule execution state resource type.
+ enum:
+ - incident_rule_execution_states
+ example: incident_rule_execution_states
+ type: string
+ x-enum-varnames:
+ - INCIDENT_RULE_EXECUTION_STATES
+ IncidentRuleExecutionStatesResponse:
+ description: Response with a list of rule execution states.
+ properties:
+ data:
+ description: List of rule execution states.
+ items:
+ $ref: "#/components/schemas/IncidentRuleExecutionStateDataResponse"
+ type: array
+ required:
+ - data
+ type: object
+ IncidentSearchIncidentsExportRequest:
+ description: Request to export incidents as CSV.
+ properties:
+ fields:
+ description: The list of fields to include in the export.
+ example:
+ - title
+ - severity
+ - state
+ items:
+ type: string
+ type: array
+ query:
+ description: The search query to filter incidents for export.
+ example: "state:active"
+ type: string
+ required:
+ - query
+ - fields
+ type: object
+ IncidentSearchIncidentsIncludeType:
+ description: Types of related objects to include.
+ enum:
+ - incident_type
+ - impacts
+ - users
+ - responders
+ - integrations
+ - attachments
+ type: string
+ x-enum-varnames:
+ - INCIDENT_TYPE
+ - IMPACTS
+ - USERS
+ - RESPONDERS
+ - INTEGRATIONS
+ - ATTACHMENTS
+ IncidentSearchIncidentsSortOrder:
+ description: The ways searched incidents can be sorted.
+ enum:
+ - created
+ - -created
+ - modified
+ - -modified
+ type: string
+ x-enum-varnames:
+ - CREATED_ASCENDING
+ - CREATED_DESCENDING
+ - MODIFIED_ASCENDING
+ - MODIFIED_DESCENDING
IncidentSearchResponse:
description: Response with incidents and facets.
properties:
@@ -35638,6 +37512,531 @@ components:
- SEV_3
- SEV_4
- SEV_5
+ IncidentStatusPageNoticeCreateData:
+ description: Data for publishing a status page notice.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentStatusPageNoticeCreateDataAttributes"
+ type:
+ $ref: "#/components/schemas/IncidentStatusPageNoticeIntegrationType"
+ required:
+ - type
+ - attributes
+ type: object
+ IncidentStatusPageNoticeCreateDataAttributes:
+ description: Attributes for publishing a status page notice.
+ properties:
+ components:
+ additionalProperties:
+ type: string
+ description: Map of component identifiers to their status.
+ example:
+ component_1: degraded_performance
+ type: object
+ message:
+ description: The message body of the notice.
+ example: We are investigating reports of elevated error rates.
+ type: string
+ status:
+ description: The status of the notice.
+ example: investigating
+ type: string
+ title:
+ description: The title of the notice.
+ example: Service degradation detected.
+ type: string
+ type: object
+ IncidentStatusPageNoticeCreateRequest:
+ description: Request to publish a status page notice.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentStatusPageNoticeCreateData"
+ required:
+ - data
+ type: object
+ IncidentStatusPageNoticeIntegrationDataAttributes:
+ description: Attributes of a status page notice integration.
+ properties:
+ created:
+ description: Timestamp when the integration was created.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ integration_type:
+ description: The type of integration.
+ example: statuspage
+ type: string
+ modified:
+ description: Timestamp when the integration was last modified.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ status:
+ description: The status of the integration.
+ example: active
+ type: string
+ required:
+ - status
+ - integration_type
+ - created
+ - modified
+ type: object
+ IncidentStatusPageNoticeIntegrationDataResponse:
+ description: Status page notice integration data in a response.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentStatusPageNoticeIntegrationDataAttributes"
+ id:
+ description: The integration identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentStatusPageNoticeIntegrationType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentStatusPageNoticeIntegrationResponse:
+ description: Response with status page notice integration metadata.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentStatusPageNoticeIntegrationDataResponse"
+ required:
+ - data
+ type: object
+ IncidentStatusPageNoticeIntegrationType:
+ description: Incident integration resource type.
+ enum:
+ - incident_integrations
+ example: incident_integrations
+ type: string
+ x-enum-varnames:
+ - INCIDENT_INTEGRATIONS
+ IncidentStatusPageNoticeUpdateData:
+ description: Data for updating a status page notice.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentStatusPageNoticeUpdateDataAttributes"
+ type:
+ $ref: "#/components/schemas/IncidentStatusPageNoticeIntegrationType"
+ required:
+ - type
+ - attributes
+ type: object
+ IncidentStatusPageNoticeUpdateDataAttributes:
+ description: Attributes for updating a status page notice.
+ properties:
+ components:
+ additionalProperties:
+ type: string
+ description: Map of component identifiers to their status.
+ type: object
+ message:
+ description: The message body of the notice.
+ example: The issue has been resolved.
+ type: string
+ status:
+ description: The status of the notice.
+ example: resolved
+ type: string
+ title:
+ description: The title of the notice.
+ example: Service degradation resolved.
+ type: string
+ type: object
+ IncidentStatusPageNoticeUpdateRequest:
+ description: Request to update a status page notice.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentStatusPageNoticeUpdateData"
+ required:
+ - data
+ type: object
+ IncidentStatusPagesSuggestionData:
+ description: Status pages suggestion data.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentStatusPagesSuggestionDataAttributes"
+ id:
+ description: The suggestion title.
+ example: Service Degradation Detected
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentStatusPagesSuggestionType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentStatusPagesSuggestionDataAttributes:
+ description: Attributes of a status pages suggestion.
+ properties:
+ status:
+ description: The suggested status for the status page.
+ example: investigating
+ type: string
+ update_text:
+ description: The suggested update text for the status page notice.
+ example: We are investigating reports of elevated error rates.
+ type: string
+ required:
+ - status
+ - update_text
+ type: object
+ IncidentStatusPagesSuggestionResponse:
+ description: Response with a status pages suggestion.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentStatusPagesSuggestionData"
+ required:
+ - data
+ type: object
+ IncidentStatusPagesSuggestionType:
+ description: Incident status pages suggestion resource type.
+ enum:
+ - incident_statuspages_suggestion
+ example: incident_statuspages_suggestion
+ type: string
+ x-enum-varnames:
+ - INCIDENT_STATUSPAGES_SUGGESTION
+ IncidentStatuspageIncidentDataAttributesRequest:
+ description: Attributes for creating or updating a Statuspage incident.
+ properties:
+ body:
+ description: The body text of the Statuspage incident.
+ example: We are investigating the issue.
+ nullable: true
+ type: string
+ components:
+ additionalProperties:
+ type: string
+ description: Map of component identifiers to their status.
+ type: object
+ deliver_notifications:
+ description: Whether to deliver notifications.
+ example: true
+ nullable: true
+ type: boolean
+ impact:
+ description: The impact level of the incident.
+ example: major
+ nullable: true
+ type: string
+ name:
+ description: The name of the Statuspage incident.
+ example: Service Outage
+ nullable: true
+ type: string
+ page_id:
+ description: The Statuspage page identifier.
+ example: abc123
+ type: string
+ status:
+ description: The status of the Statuspage incident.
+ example: investigating
+ nullable: true
+ type: string
+ type: object
+ IncidentStatuspageIncidentDataAttributesResponse:
+ description: Attributes of a Statuspage incident integration.
+ properties:
+ created:
+ description: Timestamp when the integration was created.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ incidents:
+ description: List of Statuspage incidents.
+ items:
+ $ref: "#/components/schemas/IncidentStatuspageIncidentEntry"
+ type: array
+ integration_type:
+ description: The type of integration.
+ example: statuspage
+ type: string
+ modified:
+ description: Timestamp when the integration was last modified.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ status:
+ description: The status of the integration.
+ example: active
+ type: string
+ required:
+ - status
+ - integration_type
+ - created
+ - modified
+ type: object
+ IncidentStatuspageIncidentDataRequest:
+ description: Statuspage incident data for a request.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentStatuspageIncidentDataAttributesRequest"
+ type:
+ $ref: "#/components/schemas/IncidentStatuspageIncidentType"
+ required:
+ - type
+ - attributes
+ type: object
+ IncidentStatuspageIncidentDataResponse:
+ description: Statuspage incident data in a response.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentStatuspageIncidentDataAttributesResponse"
+ id:
+ description: The integration identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentStatuspageIncidentType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentStatuspageIncidentEntry:
+ description: A Statuspage incident entry.
+ properties:
+ incident_id:
+ description: The Datadog incident identifier.
+ example: "12345"
+ type: string
+ page_id:
+ description: The Statuspage page identifier.
+ example: abc123
+ type: string
+ redirect_url:
+ description: The URL of the Statuspage incident.
+ example: https://status.example.com/incidents/abc123
+ type: string
+ required:
+ - incident_id
+ - page_id
+ type: object
+ IncidentStatuspageIncidentRequest:
+ description: Request to create or update a Statuspage incident.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentStatuspageIncidentDataRequest"
+ required:
+ - data
+ type: object
+ IncidentStatuspageIncidentResponse:
+ description: Response with Statuspage incident integration metadata.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentStatuspageIncidentDataResponse"
+ required:
+ - data
+ type: object
+ IncidentStatuspageIncidentType:
+ description: Statuspage incident integration resource type.
+ enum:
+ - incident_integrations
+ example: incident_integrations
+ type: string
+ x-enum-varnames:
+ - INCIDENT_INTEGRATIONS
+ IncidentStatuspagePreferencesData:
+ description: Subscription preferences data.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentStatuspagePreferencesDataAttributes"
+ id:
+ description: The preferences identifier.
+ example: "12345"
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentStatuspagePreferencesType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentStatuspagePreferencesDataAttributes:
+ description: Attributes of subscription preferences.
+ properties:
+ subscribed:
+ description: Whether the user is subscribed.
+ example: true
+ type: boolean
+ required:
+ - subscribed
+ type: object
+ IncidentStatuspagePreferencesResponse:
+ description: Response with subscription preferences.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentStatuspagePreferencesData"
+ required:
+ - data
+ type: object
+ IncidentStatuspagePreferencesType:
+ description: Subscription preferences resource type.
+ enum:
+ - statuspage_subscription_preferences
+ example: statuspage_subscription_preferences
+ type: string
+ x-enum-varnames:
+ - STATUSPAGE_SUBSCRIPTION_PREFERENCES
+ IncidentStatuspageSubscriptionDataAttributesRequest:
+ description: Attributes for creating an email subscription.
+ properties:
+ email:
+ description: The email address to subscribe.
+ example: user@example.com
+ type: string
+ required:
+ - email
+ type: object
+ IncidentStatuspageSubscriptionDataAttributesResponse:
+ description: Attributes of an email subscription.
+ properties:
+ confirmed:
+ description: Whether the subscription has been confirmed.
+ example: true
+ type: boolean
+ created_at:
+ description: Timestamp when the subscription was created.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ email:
+ description: The subscribed email address.
+ example: user@example.com
+ type: string
+ required:
+ - email
+ - confirmed
+ - created_at
+ type: object
+ IncidentStatuspageSubscriptionDataRequest:
+ description: Subscription data for a request.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentStatuspageSubscriptionDataAttributesRequest"
+ type:
+ $ref: "#/components/schemas/IncidentStatuspageSubscriptionType"
+ required:
+ - type
+ - attributes
+ type: object
+ IncidentStatuspageSubscriptionDataResponse:
+ description: Email subscription data in a response.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentStatuspageSubscriptionDataAttributesResponse"
+ id:
+ description: The subscription identifier.
+ example: "12345"
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentStatuspageSubscriptionType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentStatuspageSubscriptionRequest:
+ description: Request to create an email subscription.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentStatuspageSubscriptionDataRequest"
+ required:
+ - data
+ type: object
+ IncidentStatuspageSubscriptionResponse:
+ description: Response with a single email subscription.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentStatuspageSubscriptionDataResponse"
+ required:
+ - data
+ type: object
+ IncidentStatuspageSubscriptionType:
+ description: Statuspage email subscription resource type.
+ enum:
+ - statuspage_email_subscription
+ example: statuspage_email_subscription
+ type: string
+ x-enum-varnames:
+ - STATUSPAGE_EMAIL_SUBSCRIPTION
+ IncidentStatuspageSubscriptionsResponse:
+ description: Response with a list of email subscriptions.
+ properties:
+ data:
+ description: List of email subscriptions.
+ items:
+ $ref: "#/components/schemas/IncidentStatuspageSubscriptionDataResponse"
+ type: array
+ required:
+ - data
+ type: object
+ IncidentTemplateVariableData:
+ description: Template variable data.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentTemplateVariableDataAttributes"
+ id:
+ description: The template variable identifier.
+ example: incident.title
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentTemplateVariableType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentTemplateVariableDataAttributes:
+ description: Attributes of a template variable.
+ properties:
+ description:
+ description: A description of the template variable.
+ example: The title of the incident.
+ type: string
+ display_name:
+ description: The display name of the template variable.
+ example: Incident Title
+ type: string
+ domain:
+ description: The domain of the template variable.
+ example: incident
+ type: string
+ variable:
+ description: The variable name used in templates.
+ example: "incident.title"
+ type: string
+ required:
+ - display_name
+ - domain
+ - variable
+ - description
+ type: object
+ IncidentTemplateVariableType:
+ description: Template variable resource type.
+ enum:
+ - template_variables
+ example: template_variables
+ type: string
+ x-enum-varnames:
+ - TEMPLATE_VARIABLES
+ IncidentTemplateVariablesResponse:
+ description: Response with a list of template variables.
+ properties:
+ data:
+ description: List of template variables.
+ items:
+ $ref: "#/components/schemas/IncidentTemplateVariableData"
+ type: array
+ required:
+ - data
+ type: object
IncidentTimelineCellCreateAttributes:
description: The timeline cell's attributes for a create request.
oneOf:
@@ -35676,6 +38075,206 @@ components:
nullable: false
type: string
type: object
+ IncidentTimelineCellSource:
+ description: The source of a timeline cell.
+ enum:
+ - slack
+ - microsoft_teams
+ - datadog
+ - api
+ example: api
+ type: string
+ x-enum-varnames:
+ - SLACK
+ - MICROSOFT_TEAMS
+ - DATADOG
+ - API
+ IncidentTimelineCellType:
+ description: The type of a timeline cell.
+ enum:
+ - markdown
+ - incident_status_change
+ - timestamp_change
+ - meeting_summary
+ - meeting_chat
+ - role_assignment_change
+ - postmortem_change
+ example: markdown
+ type: string
+ x-enum-varnames:
+ - MARKDOWN
+ - INCIDENT_STATUS_CHANGE
+ - TIMESTAMP_CHANGE
+ - MEETING_SUMMARY
+ - MEETING_CHAT
+ - ROLE_ASSIGNMENT_CHANGE
+ - POSTMORTEM_CHANGE
+ IncidentTimelineEntriesResponse:
+ description: Response with a list of timeline entries.
+ properties:
+ data:
+ description: List of timeline entries.
+ items:
+ $ref: "#/components/schemas/IncidentTimelineEntryDataResponse"
+ type: array
+ required:
+ - data
+ type: object
+ IncidentTimelineEntryContent:
+ description: The content of a timeline entry.
+ properties:
+ message:
+ description: The markdown message content.
+ example: Investigating the issue.
+ type: string
+ type: object
+ IncidentTimelineEntryDataAttributesRequest:
+ description: Attributes for creating or updating a timeline entry.
+ properties:
+ cell_type:
+ $ref: "#/components/schemas/IncidentTimelineCellType"
+ content:
+ $ref: "#/components/schemas/IncidentTimelineEntryContent"
+ display_time:
+ description: The display time for this timeline entry.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ important:
+ description: Whether this timeline entry is marked as important.
+ example: false
+ type: boolean
+ required:
+ - cell_type
+ - content
+ type: object
+ IncidentTimelineEntryDataAttributesResponse:
+ description: Attributes of a timeline entry.
+ properties:
+ cell_type:
+ $ref: "#/components/schemas/IncidentTimelineCellType"
+ content:
+ $ref: "#/components/schemas/IncidentTimelineEntryContent"
+ created:
+ description: Timestamp when the entry was created.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ display_time:
+ description: The display time for this timeline entry.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ important:
+ description: Whether this timeline entry is marked as important.
+ example: false
+ type: boolean
+ incident_id:
+ description: The incident identifier.
+ example: "12345"
+ type: string
+ modified:
+ description: Timestamp when the entry was last modified.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ parent_uuid:
+ description: UUID of the parent timeline entry.
+ example: 00000000-0000-0000-0000-000000000000
+ nullable: true
+ type: string
+ source:
+ $ref: "#/components/schemas/IncidentTimelineCellSource"
+ required:
+ - incident_id
+ - cell_type
+ - content
+ - source
+ - display_time
+ - important
+ - created
+ - modified
+ type: object
+ IncidentTimelineEntryDataRequest:
+ description: Timeline entry data for a request.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentTimelineEntryDataAttributesRequest"
+ type:
+ $ref: "#/components/schemas/IncidentTimelineEntryType"
+ required:
+ - type
+ - attributes
+ type: object
+ IncidentTimelineEntryDataResponse:
+ description: Timeline entry data in a response.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentTimelineEntryDataAttributesResponse"
+ id:
+ description: The timeline entry identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentTimelineEntryType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentTimelineEntryRequest:
+ description: Request to create or update a timeline entry.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentTimelineEntryDataRequest"
+ required:
+ - data
+ type: object
+ IncidentTimelineEntryResponse:
+ description: Response with a single timeline entry.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentTimelineEntryDataResponse"
+ required:
+ - data
+ type: object
+ IncidentTimelineEntryType:
+ description: Incident timeline entry resource type.
+ enum:
+ - incident_timeline_cells
+ example: incident_timeline_cells
+ type: string
+ x-enum-varnames:
+ - INCIDENT_TIMELINE_CELLS
+ IncidentTimelineThreadDataResponse:
+ description: Thread data for a timeline entry.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentTimelineEntryDataAttributesResponse"
+ id:
+ description: The thread entry identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentTimelineEntryType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentTimelineThreadResponse:
+ description: Response with thread entries for a timeline entry.
+ properties:
+ data:
+ description: List of thread entries.
+ items:
+ $ref: "#/components/schemas/IncidentTimelineThreadDataResponse"
+ type: array
+ required:
+ - data
+ type: object
IncidentTodoAnonymousAssignee:
description: Anonymous assignee entity.
properties:
@@ -36624,6 +39223,200 @@ components:
- display_name
- value
type: object
+ IncidentZoomConfigurationDataAttributesRequest:
+ description: Attributes for creating or updating a Zoom configuration.
+ properties:
+ manual_meeting_creation:
+ description: Whether manual meeting creation is enabled.
+ example: false
+ type: boolean
+ meeting_chat_timeline_sync:
+ description: Whether meeting chat timeline sync is enabled.
+ example: false
+ type: boolean
+ post_meeting_summary:
+ description: Whether post-meeting summary is enabled.
+ example: true
+ type: boolean
+ type: object
+ IncidentZoomConfigurationDataAttributesResponse:
+ description: Attributes of a Zoom configuration.
+ properties:
+ created_at:
+ description: Timestamp when the configuration was created.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ manual_meeting_creation:
+ description: Whether manual meeting creation is enabled.
+ example: false
+ type: boolean
+ meeting_chat_timeline_sync:
+ description: Whether meeting chat timeline sync is enabled.
+ example: false
+ type: boolean
+ modified_at:
+ description: Timestamp when the configuration was last modified.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ post_meeting_summary:
+ description: Whether post-meeting summary is enabled.
+ example: true
+ type: boolean
+ required:
+ - manual_meeting_creation
+ - post_meeting_summary
+ - meeting_chat_timeline_sync
+ - created_at
+ - modified_at
+ type: object
+ IncidentZoomConfigurationDataRequest:
+ description: Zoom configuration data for a request.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentZoomConfigurationDataAttributesRequest"
+ type:
+ $ref: "#/components/schemas/IncidentZoomConfigurationType"
+ required:
+ - type
+ - attributes
+ type: object
+ IncidentZoomConfigurationDataResponse:
+ description: Zoom configuration data in a response.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentZoomConfigurationDataAttributesResponse"
+ id:
+ description: The configuration identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentZoomConfigurationType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentZoomConfigurationRequest:
+ description: Request to create or update a Zoom configuration.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentZoomConfigurationDataRequest"
+ required:
+ - data
+ type: object
+ IncidentZoomConfigurationResponse:
+ description: Response with a Zoom configuration.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentZoomConfigurationDataResponse"
+ required:
+ - data
+ type: object
+ IncidentZoomConfigurationType:
+ description: Zoom configuration resource type.
+ enum:
+ - zoom_configurations
+ example: zoom_configurations
+ type: string
+ x-enum-varnames:
+ - ZOOM_CONFIGURATIONS
+ IncidentZoomIntegrationDataAttributes:
+ description: Attributes of a Zoom integration metadata.
+ properties:
+ created:
+ description: Timestamp when the integration was created.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ integration_type:
+ description: The type of integration.
+ example: zoom
+ type: string
+ meetings:
+ description: List of Zoom meetings.
+ items:
+ $ref: "#/components/schemas/IncidentZoomMeeting"
+ type: array
+ modified:
+ description: Timestamp when the integration was last modified.
+ example: "2024-01-01T00:00:00.000Z"
+ format: date-time
+ type: string
+ status:
+ description: The status of the integration.
+ example: active
+ type: string
+ required:
+ - status
+ - integration_type
+ - meetings
+ - created
+ - modified
+ type: object
+ IncidentZoomIntegrationDataResponse:
+ description: Zoom integration data in a response.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/IncidentZoomIntegrationDataAttributes"
+ id:
+ description: The integration identifier.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ type:
+ $ref: "#/components/schemas/IncidentZoomIntegrationType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ IncidentZoomIntegrationResponse:
+ description: Response with Zoom integration metadata.
+ properties:
+ data:
+ $ref: "#/components/schemas/IncidentZoomIntegrationDataResponse"
+ required:
+ - data
+ type: object
+ IncidentZoomIntegrationType:
+ description: Incident integration resource type.
+ enum:
+ - incident_integrations
+ example: incident_integrations
+ type: string
+ x-enum-varnames:
+ - INCIDENT_INTEGRATIONS
+ IncidentZoomMeeting:
+ description: A Zoom meeting associated with an incident.
+ properties:
+ host_id:
+ description: The Zoom host identifier.
+ example: abc123
+ type: string
+ join_url:
+ description: The URL to join the meeting.
+ example: https://zoom.us/j/1234567890
+ type: string
+ meeting_id:
+ description: The Zoom meeting identifier.
+ example: 1234567890
+ format: int64
+ type: integer
+ password:
+ description: The meeting password.
+ example: abc123
+ type: string
+ recording_url:
+ description: The URL of the meeting recording.
+ example: https://zoom.us/rec/share/abc123
+ type: string
+ required:
+ - join_url
+ - meeting_id
+ type: object
IncidentsResponse:
description: Response with a list of incidents.
properties:
@@ -104250,6 +107043,475 @@ paths:
x-unstable: |-
**Note**: This endpoint is in public beta and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/config/jira-templates:
+ get:
+ description: List all incident Jira templates for the organization.
+ operationId: ListIncidentJiraTemplates
+ parameters:
+ - $ref: "#/components/parameters/IncidentJiraTemplateIsDefaultParameter"
+ - $ref: "#/components/parameters/IncidentJiraTemplateIncidentTypeIdParameter"
+ - $ref: "#/components/parameters/IncidentJiraTemplateTypeParameter"
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data: []
+ schema:
+ $ref: "#/components/schemas/IncidentJiraTemplatesResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_settings_read
+ summary: List incident Jira templates
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ post:
+ description: Create a new incident Jira template for the organization.
+ operationId: CreateIncidentJiraTemplate
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ account_id: "123456"
+ issue_id: "10001"
+ project_id: "10000"
+ project_key: INC
+ type: incidents_jira_templates
+ schema:
+ $ref: "#/components/schemas/IncidentJiraTemplateRequest"
+ required: true
+ responses:
+ "201":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ account_id: "123456"
+ created: "2024-01-01T00:00:00.000Z"
+ created_by_uuid: 00000000-0000-0000-0000-000000000000
+ is_default: false
+ issue_id: "10001"
+ last_modified_by_uuid: 00000000-0000-0000-0000-000000000000
+ modified: "2024-01-01T00:00:00.000Z"
+ name: Default Jira Template
+ project_id: "10000"
+ project_key: INC
+ sync_enabled: true
+ type: jira
+ id: 00000000-0000-0000-0000-000000000000
+ type: incidents_jira_templates
+ schema:
+ $ref: "#/components/schemas/IncidentJiraTemplateResponse"
+ description: Created
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_settings_write
+ summary: Create an incident Jira template
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/config/jira-templates/{template_id}:
+ delete:
+ description: Delete an incident Jira template by its identifier.
+ operationId: DeleteIncidentJiraTemplate
+ parameters:
+ - $ref: "#/components/parameters/IncidentJiraTemplateIdParameter"
+ responses:
+ "204":
+ description: No Content
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_settings_write
+ summary: Delete an incident Jira template
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ get:
+ description: Get the details of an incident Jira template by its identifier.
+ operationId: GetIncidentJiraTemplate
+ parameters:
+ - $ref: "#/components/parameters/IncidentJiraTemplateIdParameter"
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ account_id: "123456"
+ created: "2024-01-01T00:00:00.000Z"
+ created_by_uuid: 00000000-0000-0000-0000-000000000000
+ is_default: false
+ issue_id: "10001"
+ last_modified_by_uuid: 00000000-0000-0000-0000-000000000000
+ modified: "2024-01-01T00:00:00.000Z"
+ name: Default Jira Template
+ project_id: "10000"
+ project_key: INC
+ sync_enabled: true
+ type: jira
+ id: 00000000-0000-0000-0000-000000000000
+ type: incidents_jira_templates
+ schema:
+ $ref: "#/components/schemas/IncidentJiraTemplateResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_settings_read
+ summary: Get an incident Jira template
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ put:
+ description: Update an existing incident Jira template.
+ operationId: UpdateIncidentJiraTemplate
+ parameters:
+ - $ref: "#/components/parameters/IncidentJiraTemplateIdParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ account_id: "123456"
+ issue_id: "10001"
+ project_id: "10000"
+ project_key: INC
+ type: incidents_jira_templates
+ schema:
+ $ref: "#/components/schemas/IncidentJiraTemplateRequest"
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ account_id: "123456"
+ created: "2024-01-01T00:00:00.000Z"
+ created_by_uuid: 00000000-0000-0000-0000-000000000000
+ is_default: false
+ issue_id: "10001"
+ last_modified_by_uuid: 00000000-0000-0000-0000-000000000000
+ modified: "2024-01-01T00:00:00.000Z"
+ name: Default Jira Template
+ project_id: "10000"
+ project_key: INC
+ sync_enabled: true
+ type: jira
+ id: 00000000-0000-0000-0000-000000000000
+ type: incidents_jira_templates
+ schema:
+ $ref: "#/components/schemas/IncidentJiraTemplateResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_settings_write
+ summary: Update an incident Jira template
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/config/microsoft-teams-configurations:
+ post:
+ description: Create a Microsoft Teams configuration for incidents.
+ operationId: CreateIncidentMicrosoftTeamsConfiguration
+ parameters:
+ - $ref: "#/components/parameters/IncidentMicrosoftTeamsIncludeParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ manual_meeting_creation: false
+ post_meeting_summary: true
+ type: microsoft_teams_configurations
+ schema:
+ $ref: "#/components/schemas/IncidentMicrosoftTeamsConfigurationRequest"
+ required: true
+ responses:
+ "201":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ created_at: "2024-01-01T00:00:00.000Z"
+ manual_meeting_creation: false
+ modified_at: "2024-01-01T00:00:00.000Z"
+ post_meeting_summary: true
+ id: 00000000-0000-0000-0000-000000000000
+ type: microsoft_teams_configurations
+ schema:
+ $ref: "#/components/schemas/IncidentMicrosoftTeamsConfigurationResponse"
+ description: Created
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_settings_write
+ summary: Create an incident Microsoft Teams configuration
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/config/microsoft-teams-configurations/{configuration_id}:
+ patch:
+ description: Update a Microsoft Teams configuration for incidents.
+ operationId: UpdateIncidentMicrosoftTeamsConfiguration
+ parameters:
+ - $ref: "#/components/parameters/IncidentMicrosoftTeamsConfigurationIdParameter"
+ - $ref: "#/components/parameters/IncidentMicrosoftTeamsIncludeParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ manual_meeting_creation: false
+ post_meeting_summary: true
+ type: microsoft_teams_configurations
+ schema:
+ $ref: "#/components/schemas/IncidentMicrosoftTeamsConfigurationRequest"
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ created_at: "2024-01-01T00:00:00.000Z"
+ manual_meeting_creation: false
+ modified_at: "2024-01-01T00:00:00.000Z"
+ post_meeting_summary: true
+ id: 00000000-0000-0000-0000-000000000000
+ type: microsoft_teams_configurations
+ schema:
+ $ref: "#/components/schemas/IncidentMicrosoftTeamsConfigurationResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_settings_write
+ summary: Update an incident Microsoft Teams configuration
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/incidents/config/notification-rules:
get:
description: Lists all notification rules for the organization. Optionally filter by incident type.
@@ -104488,6 +107750,100 @@ paths:
x-unstable: |-
**Note**: This endpoint is in Preview.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ patch:
+ description: Partially updates an existing notification rule.
+ operationId: PatchIncidentNotificationRule
+ parameters:
+ - $ref: "#/components/parameters/IncidentNotificationRuleIDPathParameter"
+ - $ref: "#/components/parameters/IncidentNotificationRuleIncludeQueryParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ conditions:
+ - field: severity
+ values:
+ - SEV-1
+ - SEV-2
+ enabled: true
+ handles:
+ - "@team-email@company.com"
+ - "@slack-channel"
+ renotify_on:
+ - status
+ - severity
+ trigger: incident_created_trigger
+ visibility: organization
+ id: 00000000-0000-0000-0000-000000000001
+ relationships:
+ incident_type:
+ data:
+ id: 00000000-0000-0000-0000-000000000000
+ type: incident_types
+ notification_template:
+ data:
+ id: 00000000-0000-0000-0000-000000000001
+ type: notification_templates
+ type: incident_notification_rules
+ schema:
+ $ref: "#/components/schemas/PutIncidentNotificationRuleRequest"
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ conditions:
+ - field: severity
+ values:
+ - SEV-1
+ - SEV-2
+ created: "2024-01-01T00:00:00+00:00"
+ enabled: true
+ handles:
+ - "@team-email@example.com"
+ modified: "2024-01-01T00:00:00+00:00"
+ trigger: incident_created_trigger
+ visibility: organization
+ id: 00000000-0000-0000-0000-000000000001
+ type: incident_notification_rules
+ schema:
+ $ref: "#/components/schemas/IncidentNotificationRule"
+ description: OK
+ "400":
+ $ref: "#/components/responses/BadRequestResponse"
+ "401":
+ $ref: "#/components/responses/UnauthorizedResponse"
+ "403":
+ $ref: "#/components/responses/ForbiddenResponse"
+ "404":
+ $ref: "#/components/responses/NotFoundResponse"
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_notification_settings_write
+ summary: Patch an incident notification rule
+ tags:
+ - Incidents
+ x-codegen-request-body-name: body
+ x-permission:
+ operator: AND
+ permissions:
+ - incident_notification_settings_write
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
put:
description: Updates an existing notification rule with a complete replacement.
operationId: UpdateIncidentNotificationRule
@@ -105093,6 +108449,146 @@ paths:
x-unstable: |-
**Note**: This endpoint is in preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/config/reserved-roles:
+ get:
+ description: List all reserved roles for incidents.
+ operationId: ListIncidentReservedRoles
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data: []
+ schema:
+ $ref: "#/components/schemas/IncidentReservedRolesResponse"
+ description: OK
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_settings_read
+ summary: List incident reserved roles
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/config/reserved-roles/{role_id}:
+ get:
+ description: Get the details of a reserved role by its identifier.
+ operationId: GetIncidentReservedRole
+ parameters:
+ - $ref: "#/components/parameters/IncidentReservedRoleIdParameter"
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ created: "2024-01-01T00:00:00.000Z"
+ description: The incident commander.
+ modified: "2024-01-01T00:00:00.000Z"
+ name: commander
+ policy:
+ is_single: true
+ id: 00000000-0000-0000-0000-000000000000
+ type: incident_reserved_roles
+ schema:
+ $ref: "#/components/schemas/IncidentReservedRoleResponse"
+ description: OK
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_settings_read
+ summary: Get an incident reserved role
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/config/template-variables:
+ get:
+ description: List all available template variables for incident templates.
+ operationId: ListIncidentTemplateVariables
+ parameters:
+ - $ref: "#/components/parameters/IncidentTemplateVariableFilterIncidentTypeParameter"
+ - $ref: "#/components/parameters/IncidentTemplateVariableIncludeFollowUpsParameter"
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data: []
+ schema:
+ $ref: "#/components/schemas/IncidentTemplateVariablesResponse"
+ description: OK
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_read
+ summary: List incident template variables
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/incidents/config/types:
get:
description: Get all incident types.
@@ -105832,6 +109328,155 @@ paths:
x-unstable: |-
**Note**: This endpoint is in preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/config/zoom-configurations:
+ post:
+ description: Create a Zoom configuration for incidents.
+ operationId: CreateIncidentZoomConfiguration
+ parameters:
+ - $ref: "#/components/parameters/IncidentZoomIncludeParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ manual_meeting_creation: false
+ meeting_chat_timeline_sync: false
+ post_meeting_summary: true
+ type: zoom_configurations
+ schema:
+ $ref: "#/components/schemas/IncidentZoomConfigurationRequest"
+ required: true
+ responses:
+ "201":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ created_at: "2024-01-01T00:00:00.000Z"
+ manual_meeting_creation: false
+ meeting_chat_timeline_sync: false
+ modified_at: "2024-01-01T00:00:00.000Z"
+ post_meeting_summary: true
+ id: 00000000-0000-0000-0000-000000000000
+ type: zoom_configurations
+ schema:
+ $ref: "#/components/schemas/IncidentZoomConfigurationResponse"
+ description: Created
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_settings_write
+ summary: Create an incident Zoom configuration
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/config/zoom-configurations/{configuration_id}:
+ patch:
+ description: Update a Zoom configuration for incidents.
+ operationId: UpdateIncidentZoomConfiguration
+ parameters:
+ - $ref: "#/components/parameters/IncidentZoomConfigurationIdParameter"
+ - $ref: "#/components/parameters/IncidentZoomIncludeParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ manual_meeting_creation: false
+ meeting_chat_timeline_sync: false
+ post_meeting_summary: true
+ type: zoom_configurations
+ schema:
+ $ref: "#/components/schemas/IncidentZoomConfigurationRequest"
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ created_at: "2024-01-01T00:00:00.000Z"
+ manual_meeting_creation: false
+ meeting_chat_timeline_sync: false
+ modified_at: "2024-01-01T00:00:00.000Z"
+ post_meeting_summary: true
+ id: 00000000-0000-0000-0000-000000000000
+ type: zoom_configurations
+ schema:
+ $ref: "#/components/schemas/IncidentZoomConfigurationResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_settings_write
+ summary: Update an incident Zoom configuration
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/incidents/import:
post:
description: |-
@@ -105922,6 +109567,297 @@ paths:
x-unstable: |-
**Note**: This endpoint is in Preview.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/pagerduty/services:
+ get:
+ description: List all PagerDuty services configured for the organization.
+ operationId: ListIncidentPagerdutyServices
+ parameters:
+ - $ref: "#/components/parameters/PagerdutyIncludeUnresolvedParameter"
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data: []
+ schema:
+ $ref: "#/components/schemas/IncidentPagerdutyServicesResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_read
+ summary: List PagerDuty services
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/pagerduty/{pagerduty_incident_id}/relationships/incidents:
+ get:
+ description: Get the list of Datadog incidents attached to a PagerDuty incident.
+ operationId: GetIncidentPagerdutyRelatedIncidents
+ parameters:
+ - $ref: "#/components/parameters/PagerdutyIncidentIdParameter"
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data: []
+ schema:
+ $ref: "#/components/schemas/IncidentPagerdutyRelatedIncidentsResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_read
+ summary: Get PagerDuty related incidents
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/role_assignments:
+ post:
+ description: Create a new role assignment for an incident.
+ operationId: CreateIncidentRoleAssignment
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ role: commander
+ relationships:
+ responder:
+ data:
+ id: 00000000-0000-0000-0000-000000000000
+ type: users
+ type: incident_role_assignments
+ schema:
+ $ref: "#/components/schemas/IncidentRoleAssignmentRequest"
+ required: true
+ responses:
+ "201":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ created: "2024-01-01T00:00:00.000Z"
+ modified: "2024-01-01T00:00:00.000Z"
+ responder_type: user
+ role: commander
+ id: 00000000-0000-0000-0000-000000000000
+ type: incident_role_assignments
+ schema:
+ $ref: "#/components/schemas/IncidentRoleAssignmentResponse"
+ description: Created
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "409":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Conflict
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_write
+ summary: Create an incident role assignment
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/role_assignments/{role_assignment_id}:
+ delete:
+ description: Delete a role assignment by its identifier.
+ operationId: DeleteIncidentRoleAssignment
+ parameters:
+ - $ref: "#/components/parameters/IncidentRoleAssignmentIdParameter"
+ responses:
+ "204":
+ description: No Content
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_write
+ summary: Delete an incident role assignment
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ get:
+ description: Get the details of a role assignment by its identifier.
+ operationId: GetIncidentRoleAssignment
+ parameters:
+ - $ref: "#/components/parameters/IncidentRoleAssignmentIdParameter"
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ created: "2024-01-01T00:00:00.000Z"
+ modified: "2024-01-01T00:00:00.000Z"
+ responder_type: user
+ role: commander
+ id: 00000000-0000-0000-0000-000000000000
+ type: incident_role_assignments
+ schema:
+ $ref: "#/components/schemas/IncidentRoleAssignmentResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_read
+ summary: Get an incident role assignment
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/incidents/search:
get:
description: >-
@@ -105980,6 +109916,285 @@ paths:
x-unstable: |-
**Note**: This endpoint is in public beta.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/search-incidents:
+ get:
+ description: Search for incidents using advanced filtering and pagination.
+ operationId: SearchIncidentsV2
+ parameters:
+ - $ref: "#/components/parameters/IncidentSearchIncidentsQueryParameter"
+ - $ref: "#/components/parameters/IncidentSearchIncidentsSortParameter"
+ - $ref: "#/components/parameters/IncidentSearchIncidentsWithFacetsParameter"
+ - $ref: "#/components/parameters/IncidentSearchIncidentsWithDeletedParameter"
+ - $ref: "#/components/parameters/IncidentSearchIncidentsSemanticQueryParameter"
+ - $ref: "#/components/parameters/IncidentSearchIncidentsTimezoneParameter"
+ - $ref: "#/components/parameters/IncidentSearchIncidentsIncludeParameter"
+ - $ref: "#/components/parameters/PageSize"
+ - $ref: "#/components/parameters/PageOffset"
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ facets: {}
+ incidents: []
+ total: 0
+ type: incidents_search_results
+ schema:
+ $ref: "#/components/schemas/IncidentSearchResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_read
+ summary: Search incidents
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/search-incidents/export:
+ post:
+ description: Export incidents matching a search query as a CSV file.
+ operationId: ExportIncidents
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ fields:
+ - title
+ - severity
+ - state
+ query: "state:active"
+ schema:
+ $ref: "#/components/schemas/IncidentSearchIncidentsExportRequest"
+ required: true
+ responses:
+ "200":
+ content:
+ text/csv:
+ examples:
+ default:
+ value: "title,severity,state"
+ schema:
+ format: binary
+ type: string
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_read
+ summary: Export incidents
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/statuspage/{incident_id}/statuspage-incidents:
+ post:
+ description: Create a Statuspage incident linked to a Datadog incident.
+ operationId: CreateIncidentStatuspageIncident
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ body: We are investigating the issue.
+ deliver_notifications: true
+ name: Service Outage
+ page_id: abc123
+ status: investigating
+ type: incident_integrations
+ schema:
+ $ref: "#/components/schemas/IncidentStatuspageIncidentRequest"
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ created: "2024-01-01T00:00:00.000Z"
+ integration_type: statuspage
+ modified: "2024-01-01T00:00:00.000Z"
+ status: active
+ id: 00000000-0000-0000-0000-000000000000
+ type: incident_integrations
+ schema:
+ $ref: "#/components/schemas/IncidentStatuspageIncidentResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_write
+ summary: Create an incident Statuspage incident
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/statuspage/{incident_id}/statuspage-incidents/pages/{page_id}/incidents/{statuspage_incident_id}:
+ patch:
+ description: Update a Statuspage incident linked to a Datadog incident.
+ operationId: UpdateIncidentStatuspageIncident
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ - $ref: "#/components/parameters/IncidentStatuspagePageIdParameter"
+ - $ref: "#/components/parameters/IncidentStatuspageIncidentIdParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ body: The issue has been resolved.
+ deliver_notifications: true
+ name: Service Outage
+ page_id: abc123
+ status: resolved
+ type: incident_integrations
+ schema:
+ $ref: "#/components/schemas/IncidentStatuspageIncidentRequest"
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ created: "2024-01-01T00:00:00.000Z"
+ integration_type: statuspage
+ modified: "2024-01-01T00:00:00.000Z"
+ status: active
+ id: 00000000-0000-0000-0000-000000000000
+ type: incident_integrations
+ schema:
+ $ref: "#/components/schemas/IncidentStatuspageIncidentResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_write
+ summary: Update an incident Statuspage incident
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/incidents/{incident_id}:
delete:
description: Deletes an existing incident from the users organization.
@@ -106461,6 +110676,592 @@ paths:
x-unstable: |-
**Note**: This endpoint is in Preview.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/{incident_id}/automation-data/{key}:
+ get:
+ description: Get automation data for a given incident and key.
+ operationId: GetIncidentAutomationData
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ - $ref: "#/components/parameters/IncidentAutomationDataKeyParameter"
+ - $ref: "#/components/parameters/IncidentAutomationDataIncludeParameter"
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ created_at: "2024-01-01T00:00:00.000Z"
+ incident_id: 00000000-0000-0000-0000-000000000000
+ key: workflow_status
+ updated_at: "2024-01-01T00:00:00.000Z"
+ value: completed
+ id: workflow_status
+ type: incidents_automation_data
+ schema:
+ $ref: "#/components/schemas/IncidentAutomationDataResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_read
+ summary: Get incident automation data
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ put:
+ description: Create or update automation data for a given incident and key.
+ operationId: UpsertIncidentAutomationData
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ - $ref: "#/components/parameters/IncidentAutomationDataKeyParameter"
+ - $ref: "#/components/parameters/IncidentAutomationDataIncludeParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ value: completed
+ type: incidents_automation_data
+ schema:
+ $ref: "#/components/schemas/IncidentAutomationDataRequest"
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ created_at: "2024-01-01T00:00:00.000Z"
+ incident_id: 00000000-0000-0000-0000-000000000000
+ key: workflow_status
+ updated_at: "2024-01-01T00:00:00.000Z"
+ value: completed
+ id: workflow_status
+ type: incidents_automation_data
+ schema:
+ $ref: "#/components/schemas/IncidentAutomationDataResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_write
+ summary: Upsert incident automation data
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/{incident_id}/cases/source-link:
+ get:
+ description: Get the source link for a case associated with an incident.
+ operationId: GetIncidentCaseSourceLink
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ entity_id: "12345"
+ is_page: false
+ relationship: source
+ id: "12345"
+ type: case_link
+ schema:
+ $ref: "#/components/schemas/IncidentCaseLinkResponse"
+ description: OK
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_read
+ summary: Get incident case source link
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/{incident_id}/communications:
+ get:
+ description: List all communications for a given incident.
+ operationId: ListIncidentCommunications
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ - $ref: "#/components/parameters/IncidentCommunicationFilterTypeParameter"
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data: []
+ schema:
+ $ref: "#/components/schemas/IncidentCommunicationsResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_read
+ summary: List incident communications
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ post:
+ description: Create a new communication for a given incident.
+ operationId: CreateIncidentCommunication
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ communication_type: manual
+ content:
+ handles:
+ - handle: "@slack-incidents-channel"
+ message: Incident update for INC-123.
+ type: communication
+ schema:
+ $ref: "#/components/schemas/IncidentCommunicationRequest"
+ required: true
+ responses:
+ "201":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ communication_type: manual
+ content:
+ handles:
+ - handle: "@slack-incidents-channel"
+ message: Incident update for INC-123.
+ created: "2024-01-01T00:00:00.000Z"
+ incident_id: 00000000-0000-0000-0000-000000000000
+ modified: "2024-01-01T00:00:00.000Z"
+ id: 00000000-0000-0000-0000-000000000000
+ type: communication
+ schema:
+ $ref: "#/components/schemas/IncidentCommunicationResponse"
+ description: Created
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_write
+ summary: Create an incident communication
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/{incident_id}/communications/{communication_id}:
+ delete:
+ description: Delete a communication for a given incident.
+ operationId: DeleteIncidentCommunication
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ - $ref: "#/components/parameters/IncidentCommunicationIdParameter"
+ responses:
+ "204":
+ description: No Content
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_write
+ summary: Delete an incident communication
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ get:
+ description: Get the details of a communication for a given incident.
+ operationId: GetIncidentCommunication
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ - $ref: "#/components/parameters/IncidentCommunicationIdParameter"
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ communication_type: manual
+ content:
+ handles:
+ - handle: "@slack-incidents-channel"
+ message: Incident update for INC-123.
+ created: "2024-01-01T00:00:00.000Z"
+ incident_id: 00000000-0000-0000-0000-000000000000
+ modified: "2024-01-01T00:00:00.000Z"
+ id: 00000000-0000-0000-0000-000000000000
+ type: communication
+ schema:
+ $ref: "#/components/schemas/IncidentCommunicationResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_read
+ summary: Get an incident communication
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ patch:
+ description: Update a communication for a given incident.
+ operationId: UpdateIncidentCommunication
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ - $ref: "#/components/parameters/IncidentCommunicationIdParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ communication_type: manual
+ content:
+ handles:
+ - handle: "@slack-incidents-channel"
+ message: Updated incident communication for INC-123.
+ type: communication
+ schema:
+ $ref: "#/components/schemas/IncidentCommunicationRequest"
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ communication_type: manual
+ content:
+ handles:
+ - handle: "@slack-incidents-channel"
+ message: Updated incident communication for INC-123.
+ created: "2024-01-01T00:00:00.000Z"
+ incident_id: 00000000-0000-0000-0000-000000000000
+ modified: "2024-01-01T00:00:00.000Z"
+ id: 00000000-0000-0000-0000-000000000000
+ type: communication
+ schema:
+ $ref: "#/components/schemas/IncidentCommunicationResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_write
+ summary: Update an incident communication
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/{incident_id}/google-meet/space:
+ post:
+ description: Create a Google Meet space for a given incident.
+ operationId: CreateIncidentGoogleMeetSpace
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ responses:
+ "201":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ created: "2024-01-01T00:00:00.000Z"
+ integration_type: google_meet
+ modified: "2024-01-01T00:00:00.000Z"
+ spaces: []
+ status: active
+ id: 00000000-0000-0000-0000-000000000000
+ type: incident_integrations
+ schema:
+ $ref: "#/components/schemas/IncidentGoogleMeetIntegrationResponse"
+ description: Created
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_write
+ summary: Create an incident Google Meet space
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/incidents/{incident_id}/impacts:
get:
description: Get all impacts for an incident.
@@ -106604,6 +111405,198 @@ paths:
operator: OR
permissions:
- incident_write
+ /api/v2/incidents/{incident_id}/jira-issues:
+ post:
+ description: Create a Jira issue linked to a given incident.
+ operationId: CreateIncidentJiraIssue
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ account_id: "123456"
+ issue_type_id: "10001"
+ project_id: "10000"
+ type: incident_jira_issues
+ schema:
+ $ref: "#/components/schemas/IncidentJiraIssueRequest"
+ required: true
+ responses:
+ "201":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ created: "2024-01-01T00:00:00.000Z"
+ integration_type: jira
+ modified: "2024-01-01T00:00:00.000Z"
+ status: active
+ id: 00000000-0000-0000-0000-000000000000
+ type: incident_integrations
+ schema:
+ $ref: "#/components/schemas/IncidentJiraIssueIntegrationResponse"
+ description: Created
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_write
+ summary: Create an incident Jira issue
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/{incident_id}/microsoft-teams-integration/online-meeting:
+ post:
+ description: Create a Microsoft Teams online meeting for a given incident.
+ operationId: CreateIncidentMSTeamsOnlineMeeting
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ responses:
+ "201":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ created: "2024-01-01T00:00:00.000Z"
+ integration_type: ms_teams
+ modified: "2024-01-01T00:00:00.000Z"
+ status: active
+ teams: []
+ id: 00000000-0000-0000-0000-000000000000
+ type: incident_integrations
+ schema:
+ $ref: "#/components/schemas/IncidentMSTeamsIntegrationResponse"
+ description: Created
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_write
+ summary: Create an incident Microsoft Teams online meeting
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/{incident_id}/pages/source-link:
+ get:
+ description: Get the source link for a page associated with an incident.
+ operationId: GetIncidentPageSourceLink
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ entity_id: "12345"
+ is_page: true
+ relationship: source
+ id: "12345"
+ type: case_link
+ schema:
+ $ref: "#/components/schemas/IncidentCaseLinkResponse"
+ description: OK
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_read
+ summary: Get incident page source link
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/incidents/{incident_id}/relationships/integrations:
get:
description: Get all integration metadata for an incident.
@@ -107142,6 +112135,871 @@ paths:
x-unstable: |-
**Note**: This endpoint is in public beta.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/{incident_id}/render-template:
+ post:
+ description: Render a template with incident-specific data.
+ operationId: RenderIncidentTemplate
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ content: "Incident INC-123 is SEV-1."
+ type: rendered_templates
+ schema:
+ $ref: "#/components/schemas/IncidentRenderTemplateRequest"
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ rendered_content: "Incident Server Down is SEV-1."
+ id: 00000000-0000-0000-0000-000000000000
+ type: rendered_templates
+ schema:
+ $ref: "#/components/schemas/IncidentRenderedTemplateResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_read
+ summary: Render an incident template
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/{incident_id}/rule-execution-states:
+ get:
+ description: List all rule execution states for a given incident.
+ operationId: ListIncidentRuleExecutionStates
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data: []
+ schema:
+ $ref: "#/components/schemas/IncidentRuleExecutionStatesResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_read
+ summary: List incident rule execution states
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/{incident_id}/rule-execution-states/batch:
+ post:
+ description: Batch create rule execution states for a given incident.
+ operationId: BatchCreateIncidentRuleExecutionStates
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ rules:
+ - rule_uuid: 00000000-0000-0000-0000-000000000000
+ type: incident_rule_execution_states
+ schema:
+ $ref: "#/components/schemas/IncidentBatchCreateRuleExecutionStatesRequest"
+ required: true
+ responses:
+ "201":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data: []
+ schema:
+ $ref: "#/components/schemas/IncidentRuleExecutionStatesResponse"
+ description: Created
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_write
+ summary: Batch create incident rule execution states
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ put:
+ description: Batch update rule execution states for a given incident.
+ operationId: BatchUpdateIncidentRuleExecutionStates
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ rules:
+ - last_executed_at: "2024-01-01T00:00:00.000Z"
+ rule_uuid: 00000000-0000-0000-0000-000000000000
+ type: incident_rule_execution_states
+ schema:
+ $ref: "#/components/schemas/IncidentBatchUpdateRuleExecutionStatesRequest"
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data: []
+ schema:
+ $ref: "#/components/schemas/IncidentRuleExecutionStatesResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_write
+ summary: Batch update incident rule execution states
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/{incident_id}/statuspages-suggestion:
+ get:
+ description: Get an AI-generated suggestion for a status page notice for a given incident.
+ operationId: GetIncidentStatusPagesSuggestion
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ status: investigating
+ update_text: We are investigating reports of elevated error rates.
+ id: Service Degradation Detected
+ type: incident_statuspages_suggestion
+ schema:
+ $ref: "#/components/schemas/IncidentStatusPagesSuggestionResponse"
+ description: OK
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_read
+ summary: Get incident status pages suggestion
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/{incident_id}/statuspages/{statuspage_id}/notices:
+ post:
+ description: Publish a status page notice for a given incident.
+ operationId: CreateIncidentStatusPageNotice
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ - $ref: "#/components/parameters/IncidentStatusPageIdParameter"
+ - $ref: "#/components/parameters/IncidentStatusPageNotifySubscribersParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ components:
+ component_1: degraded_performance
+ message: We are investigating reports of elevated error rates.
+ status: investigating
+ title: Service degradation detected.
+ type: incident_integrations
+ schema:
+ $ref: "#/components/schemas/IncidentStatusPageNoticeCreateRequest"
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ created: "2024-01-01T00:00:00.000Z"
+ integration_type: statuspage
+ modified: "2024-01-01T00:00:00.000Z"
+ status: active
+ id: 00000000-0000-0000-0000-000000000000
+ type: incident_integrations
+ schema:
+ $ref: "#/components/schemas/IncidentStatusPageNoticeIntegrationResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_write
+ summary: Publish an incident status page notice
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/{incident_id}/statuspages/{statuspage_id}/notices/{notice_id}:
+ patch:
+ description: Update a status page notice for a given incident.
+ operationId: UpdateIncidentStatusPageNotice
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ - $ref: "#/components/parameters/IncidentStatusPageIdParameter"
+ - $ref: "#/components/parameters/IncidentStatusPageNoticeIdParameter"
+ - $ref: "#/components/parameters/IncidentStatusPageNotifySubscribersParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ message: The issue has been resolved.
+ status: resolved
+ title: Service degradation resolved.
+ type: incident_integrations
+ schema:
+ $ref: "#/components/schemas/IncidentStatusPageNoticeUpdateRequest"
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ created: "2024-01-01T00:00:00.000Z"
+ integration_type: statuspage
+ modified: "2024-01-01T00:00:00.000Z"
+ status: active
+ id: 00000000-0000-0000-0000-000000000000
+ type: incident_integrations
+ schema:
+ $ref: "#/components/schemas/IncidentStatusPageNoticeIntegrationResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_write
+ summary: Update an incident status page notice
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/{incident_id}/timeline:
+ get:
+ description: Get the timeline for a given incident.
+ operationId: ListIncidentTimelineEntries
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data: []
+ schema:
+ $ref: "#/components/schemas/IncidentTimelineEntriesResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_read
+ summary: List incident timeline entries
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ post:
+ description: Create a new timeline entry for a given incident.
+ operationId: CreateIncidentTimelineEntry
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ cell_type: markdown
+ content:
+ message: Investigating the issue.
+ type: incident_timeline_cells
+ schema:
+ $ref: "#/components/schemas/IncidentTimelineEntryRequest"
+ required: true
+ responses:
+ "201":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ cell_type: markdown
+ content:
+ message: Investigating the issue.
+ created: "2024-01-01T00:00:00.000Z"
+ display_time: "2024-01-01T00:00:00.000Z"
+ important: false
+ incident_id: "12345"
+ modified: "2024-01-01T00:00:00.000Z"
+ source: api
+ id: 00000000-0000-0000-0000-000000000000
+ type: incident_timeline_cells
+ schema:
+ $ref: "#/components/schemas/IncidentTimelineEntryResponse"
+ description: Created
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_write
+ summary: Create an incident timeline entry
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/{incident_id}/timeline/{timeline_entry_id}:
+ delete:
+ description: Delete a timeline entry for a given incident.
+ operationId: DeleteIncidentTimelineEntry
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ - $ref: "#/components/parameters/IncidentTimelineEntryIdParameter"
+ responses:
+ "204":
+ description: No Content
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_write
+ summary: Delete an incident timeline entry
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ patch:
+ description: Update a timeline entry for a given incident.
+ operationId: UpdateIncidentTimelineEntry
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ - $ref: "#/components/parameters/IncidentTimelineEntryIdParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ cell_type: markdown
+ content:
+ message: Updated investigation notes.
+ type: incident_timeline_cells
+ schema:
+ $ref: "#/components/schemas/IncidentTimelineEntryRequest"
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ cell_type: markdown
+ content:
+ message: Updated investigation notes.
+ created: "2024-01-01T00:00:00.000Z"
+ display_time: "2024-01-01T00:00:00.000Z"
+ important: false
+ incident_id: "12345"
+ modified: "2024-01-01T00:00:00.000Z"
+ source: api
+ id: 00000000-0000-0000-0000-000000000000
+ type: incident_timeline_cells
+ schema:
+ $ref: "#/components/schemas/IncidentTimelineEntryResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_write
+ summary: Update an incident timeline entry
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/{incident_id}/timeline/{timeline_entry_id}/thread:
+ get:
+ description: Get the thread entries for a given timeline entry.
+ operationId: GetIncidentTimelineEntryThread
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ - $ref: "#/components/parameters/IncidentTimelineEntryIdParameter"
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data: []
+ schema:
+ $ref: "#/components/schemas/IncidentTimelineThreadResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_read
+ summary: Get incident timeline entry thread
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ /api/v2/incidents/{incident_id}/zoom/meeting:
+ post:
+ description: Create a Zoom meeting for a given incident.
+ operationId: CreateIncidentZoomMeeting
+ parameters:
+ - $ref: "#/components/parameters/IncidentIDPathParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ topic: "Incident INC-123 War Room"
+ type: incident_integrations
+ schema:
+ $ref: "#/components/schemas/IncidentCreateZoomMeetingRequest"
+ required: true
+ responses:
+ "201":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ created: "2024-01-01T00:00:00.000Z"
+ integration_type: zoom
+ meetings: []
+ modified: "2024-01-01T00:00:00.000Z"
+ status: active
+ id: 00000000-0000-0000-0000-000000000000
+ type: incident_integrations
+ schema:
+ $ref: "#/components/schemas/IncidentZoomIntegrationResponse"
+ description: Created
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_write
+ summary: Create an incident Zoom meeting
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/integration/aws/accounts:
get:
description: Get a list of AWS Account Integration Configs.
@@ -139061,6 +144919,48 @@ paths:
operator: AND
permissions:
- status_pages_settings_read
+ /api/v2/statuspages/subscription/preferences:
+ get:
+ description: Get the subscription preferences for the current user.
+ operationId: GetStatuspageSubscriptionPreferences
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ subscribed: true
+ id: "12345"
+ type: statuspage_subscription_preferences
+ schema:
+ $ref: "#/components/schemas/IncidentStatuspagePreferencesResponse"
+ description: OK
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ summary: Get status page subscription preferences
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/statuspages/{page_id}:
delete:
description: Deletes a status page by its ID.
@@ -140168,6 +146068,103 @@ paths:
- status_pages_settings_write
- status_pages_public_page_publish
- status_pages_internal_page_publish
+ /api/v2/statuspages/{page_id}/subscriptions/email:
+ get:
+ description: List all email subscriptions for a status page.
+ operationId: ListStatuspageEmailSubscriptions
+ parameters:
+ - $ref: "#/components/parameters/IncidentStatuspagePageIdPathParameter"
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data: []
+ schema:
+ $ref: "#/components/schemas/IncidentStatuspageSubscriptionsResponse"
+ description: OK
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Not Found
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - incident_read
+ summary: List status page email subscriptions
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
+ post:
+ description: Create an email subscription for a status page.
+ operationId: CreateStatuspageEmailSubscription
+ parameters:
+ - $ref: "#/components/parameters/IncidentStatuspagePageIdPathParameter"
+ requestBody:
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ email: user@example.com
+ type: statuspage_email_subscription
+ schema:
+ $ref: "#/components/schemas/IncidentStatuspageSubscriptionRequest"
+ required: true
+ responses:
+ "201":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ attributes:
+ confirmed: true
+ created_at: "2024-01-01T00:00:00.000Z"
+ email: user@example.com
+ id: "12345"
+ type: statuspage_email_subscription
+ schema:
+ $ref: "#/components/schemas/IncidentStatuspageSubscriptionResponse"
+ description: Created
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ summary: Create a status page email subscription
+ tags:
+ - Incidents
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/statuspages/{page_id}/unpublish:
post:
description: Unpublishes a status page. For pages of type `public`, removes the status page from the public internet and requires the `status_pages_public_page_publish` permission. For pages of type `internal`, removes the `status-pages/$domain_prefix/view` route from the Datadog organization and requires the `status_pages_internal_page_publish` permission. The `status_pages_settings_write` permission is temporarily honored as we migrate unpublishing functionality from the update status page endpoint to the unpublish status page endpoint.
diff --git a/examples/v2/incidents/BatchCreateIncidentRuleExecutionStates.java b/examples/v2/incidents/BatchCreateIncidentRuleExecutionStates.java
new file mode 100644
index 00000000000..222656cfd93
--- /dev/null
+++ b/examples/v2/incidents/BatchCreateIncidentRuleExecutionStates.java
@@ -0,0 +1,51 @@
+// Batch create incident rule execution states returns "Created" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentBatchCreateRuleExecutionStatesData;
+import com.datadog.api.client.v2.model.IncidentBatchCreateRuleExecutionStatesDataAttributes;
+import com.datadog.api.client.v2.model.IncidentBatchCreateRuleExecutionStatesRequest;
+import com.datadog.api.client.v2.model.IncidentRuleExecutionStateRule;
+import com.datadog.api.client.v2.model.IncidentRuleExecutionStateType;
+import com.datadog.api.client.v2.model.IncidentRuleExecutionStatesResponse;
+import java.time.OffsetDateTime;
+import java.util.Collections;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.batchCreateIncidentRuleExecutionStates", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentBatchCreateRuleExecutionStatesRequest body =
+ new IncidentBatchCreateRuleExecutionStatesRequest()
+ .data(
+ new IncidentBatchCreateRuleExecutionStatesData()
+ .attributes(
+ new IncidentBatchCreateRuleExecutionStatesDataAttributes()
+ .rules(
+ Collections.singletonList(
+ new IncidentRuleExecutionStateRule()
+ .lastExecutedAt(
+ OffsetDateTime.parse("2024-01-01T00:00:00.000Z"))
+ .ruleUuid(
+ UUID.fromString(
+ "00000000-0000-0000-0000-000000000000")))))
+ .type(IncidentRuleExecutionStateType.INCIDENT_RULE_EXECUTION_STATES));
+
+ try {
+ IncidentRuleExecutionStatesResponse result =
+ apiInstance.batchCreateIncidentRuleExecutionStates("incident_id", body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println(
+ "Exception when calling IncidentsApi#batchCreateIncidentRuleExecutionStates");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/BatchUpdateIncidentRuleExecutionStates.java b/examples/v2/incidents/BatchUpdateIncidentRuleExecutionStates.java
new file mode 100644
index 00000000000..a217d47db98
--- /dev/null
+++ b/examples/v2/incidents/BatchUpdateIncidentRuleExecutionStates.java
@@ -0,0 +1,51 @@
+// Batch update incident rule execution states returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentBatchUpdateRuleExecutionStatesData;
+import com.datadog.api.client.v2.model.IncidentBatchUpdateRuleExecutionStatesDataAttributes;
+import com.datadog.api.client.v2.model.IncidentBatchUpdateRuleExecutionStatesRequest;
+import com.datadog.api.client.v2.model.IncidentRuleExecutionStateRule;
+import com.datadog.api.client.v2.model.IncidentRuleExecutionStateType;
+import com.datadog.api.client.v2.model.IncidentRuleExecutionStatesResponse;
+import java.time.OffsetDateTime;
+import java.util.Collections;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.batchUpdateIncidentRuleExecutionStates", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentBatchUpdateRuleExecutionStatesRequest body =
+ new IncidentBatchUpdateRuleExecutionStatesRequest()
+ .data(
+ new IncidentBatchUpdateRuleExecutionStatesData()
+ .attributes(
+ new IncidentBatchUpdateRuleExecutionStatesDataAttributes()
+ .rules(
+ Collections.singletonList(
+ new IncidentRuleExecutionStateRule()
+ .lastExecutedAt(
+ OffsetDateTime.parse("2024-01-01T00:00:00.000Z"))
+ .ruleUuid(
+ UUID.fromString(
+ "00000000-0000-0000-0000-000000000000")))))
+ .type(IncidentRuleExecutionStateType.INCIDENT_RULE_EXECUTION_STATES));
+
+ try {
+ IncidentRuleExecutionStatesResponse result =
+ apiInstance.batchUpdateIncidentRuleExecutionStates("incident_id", body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println(
+ "Exception when calling IncidentsApi#batchUpdateIncidentRuleExecutionStates");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/CreateIncidentCommunication.java b/examples/v2/incidents/CreateIncidentCommunication.java
new file mode 100644
index 00000000000..2017a05e2e4
--- /dev/null
+++ b/examples/v2/incidents/CreateIncidentCommunication.java
@@ -0,0 +1,55 @@
+// Create an incident communication returns "Created" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentCommunicationContent;
+import com.datadog.api.client.v2.model.IncidentCommunicationContentHandle;
+import com.datadog.api.client.v2.model.IncidentCommunicationDataAttributesRequest;
+import com.datadog.api.client.v2.model.IncidentCommunicationDataRequest;
+import com.datadog.api.client.v2.model.IncidentCommunicationKind;
+import com.datadog.api.client.v2.model.IncidentCommunicationRequest;
+import com.datadog.api.client.v2.model.IncidentCommunicationResponse;
+import com.datadog.api.client.v2.model.IncidentCommunicationType;
+import java.util.Collections;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.createIncidentCommunication", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentCommunicationRequest body =
+ new IncidentCommunicationRequest()
+ .data(
+ new IncidentCommunicationDataRequest()
+ .attributes(
+ new IncidentCommunicationDataAttributesRequest()
+ .communicationType(IncidentCommunicationKind.MANUAL)
+ .content(
+ new IncidentCommunicationContent()
+ .groupingKey("update-1")
+ .handles(
+ Collections.singletonList(
+ new IncidentCommunicationContentHandle()
+ .createdAt("2024-01-01T00:00:00.000Z")
+ .displayName("#incidents-channel")
+ .handle("@slack-incidents-channel")))
+ .message("Incident update for INC-123.")
+ .status(0)
+ .subject("Incident INC-123: Update")))
+ .type(IncidentCommunicationType.COMMUNICATION));
+
+ try {
+ IncidentCommunicationResponse result =
+ apiInstance.createIncidentCommunication("incident_id", body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#createIncidentCommunication");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/CreateIncidentGoogleMeetSpace.java b/examples/v2/incidents/CreateIncidentGoogleMeetSpace.java
new file mode 100644
index 00000000000..0e179fb073d
--- /dev/null
+++ b/examples/v2/incidents/CreateIncidentGoogleMeetSpace.java
@@ -0,0 +1,26 @@
+// Create an incident Google Meet space returns "Created" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentGoogleMeetIntegrationResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.createIncidentGoogleMeetSpace", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentGoogleMeetIntegrationResponse result =
+ apiInstance.createIncidentGoogleMeetSpace("incident_id");
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#createIncidentGoogleMeetSpace");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/CreateIncidentJiraIssue.java b/examples/v2/incidents/CreateIncidentJiraIssue.java
new file mode 100644
index 00000000000..094c84baae4
--- /dev/null
+++ b/examples/v2/incidents/CreateIncidentJiraIssue.java
@@ -0,0 +1,43 @@
+// Create an incident Jira issue returns "Created" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentJiraIssueDataAttributesRequest;
+import com.datadog.api.client.v2.model.IncidentJiraIssueDataRequest;
+import com.datadog.api.client.v2.model.IncidentJiraIssueIntegrationResponse;
+import com.datadog.api.client.v2.model.IncidentJiraIssueRequest;
+import com.datadog.api.client.v2.model.IncidentJiraIssueType;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.createIncidentJiraIssue", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentJiraIssueRequest body =
+ new IncidentJiraIssueRequest()
+ .data(
+ new IncidentJiraIssueDataRequest()
+ .attributes(
+ new IncidentJiraIssueDataAttributesRequest()
+ .accountId("123456")
+ .issueTypeId("10001")
+ .projectId("10000")
+ .templateId(UUID.fromString("00000000-0000-0000-0000-000000000000")))
+ .type(IncidentJiraIssueType.INCIDENT_JIRA_ISSUES));
+
+ try {
+ IncidentJiraIssueIntegrationResponse result =
+ apiInstance.createIncidentJiraIssue("incident_id", body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#createIncidentJiraIssue");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/CreateIncidentJiraTemplate.java b/examples/v2/incidents/CreateIncidentJiraTemplate.java
new file mode 100644
index 00000000000..b9a84914626
--- /dev/null
+++ b/examples/v2/incidents/CreateIncidentJiraTemplate.java
@@ -0,0 +1,68 @@
+// Create an incident Jira template returns "Created" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateDataAttributesRequest;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateDataRequest;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateFieldConfiguration;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateIncidentTypeRelationship;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateIncidentTypeRelationshipData;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateRelationships;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateRequest;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateResponse;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateType;
+import java.util.Collections;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.createIncidentJiraTemplate", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentJiraTemplateRequest body =
+ new IncidentJiraTemplateRequest()
+ .data(
+ new IncidentJiraTemplateDataRequest()
+ .attributes(
+ new IncidentJiraTemplateDataAttributesRequest()
+ .accountId("123456")
+ .fieldConfigurations(
+ Collections.singletonList(
+ new IncidentJiraTemplateFieldConfiguration()
+ .incidentField("title")
+ .jiraFieldKey("summary")
+ .jiraFieldType("string")
+ .syncDirection("bidirectional")))
+ .isDefault(false)
+ .issueId("10001")
+ .name("Default Jira Template")
+ .projectId("10000")
+ .projectKey("INC")
+ .syncEnabled(true)
+ .type("jira"))
+ .relationships(
+ new IncidentJiraTemplateRelationships()
+ .incidentType(
+ new IncidentJiraTemplateIncidentTypeRelationship()
+ .data(
+ new IncidentJiraTemplateIncidentTypeRelationshipData()
+ .id(
+ UUID.fromString(
+ "00000000-0000-0000-0000-000000000000"))
+ .type("incident_types"))))
+ .type(IncidentJiraTemplateType.INCIDENTS_JIRA_TEMPLATES));
+
+ try {
+ IncidentJiraTemplateResponse result = apiInstance.createIncidentJiraTemplate(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#createIncidentJiraTemplate");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/CreateIncidentMSTeamsOnlineMeeting.java b/examples/v2/incidents/CreateIncidentMSTeamsOnlineMeeting.java
new file mode 100644
index 00000000000..c250d41a15c
--- /dev/null
+++ b/examples/v2/incidents/CreateIncidentMSTeamsOnlineMeeting.java
@@ -0,0 +1,26 @@
+// Create an incident Microsoft Teams online meeting returns "Created" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentMSTeamsIntegrationResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.createIncidentMSTeamsOnlineMeeting", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentMSTeamsIntegrationResponse result =
+ apiInstance.createIncidentMSTeamsOnlineMeeting("incident_id");
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#createIncidentMSTeamsOnlineMeeting");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/CreateIncidentMicrosoftTeamsConfiguration.java b/examples/v2/incidents/CreateIncidentMicrosoftTeamsConfiguration.java
new file mode 100644
index 00000000000..117cf003142
--- /dev/null
+++ b/examples/v2/incidents/CreateIncidentMicrosoftTeamsConfiguration.java
@@ -0,0 +1,41 @@
+// Create an incident Microsoft Teams configuration returns "Created" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentMicrosoftTeamsConfigurationDataAttributesRequest;
+import com.datadog.api.client.v2.model.IncidentMicrosoftTeamsConfigurationDataRequest;
+import com.datadog.api.client.v2.model.IncidentMicrosoftTeamsConfigurationRequest;
+import com.datadog.api.client.v2.model.IncidentMicrosoftTeamsConfigurationResponse;
+import com.datadog.api.client.v2.model.IncidentMicrosoftTeamsConfigurationType;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.createIncidentMicrosoftTeamsConfiguration", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentMicrosoftTeamsConfigurationRequest body =
+ new IncidentMicrosoftTeamsConfigurationRequest()
+ .data(
+ new IncidentMicrosoftTeamsConfigurationDataRequest()
+ .attributes(
+ new IncidentMicrosoftTeamsConfigurationDataAttributesRequest()
+ .manualMeetingCreation(false)
+ .postMeetingSummary(true))
+ .type(IncidentMicrosoftTeamsConfigurationType.MICROSOFT_TEAMS_CONFIGURATIONS));
+
+ try {
+ IncidentMicrosoftTeamsConfigurationResponse result =
+ apiInstance.createIncidentMicrosoftTeamsConfiguration(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println(
+ "Exception when calling IncidentsApi#createIncidentMicrosoftTeamsConfiguration");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/CreateIncidentRoleAssignment.java b/examples/v2/incidents/CreateIncidentRoleAssignment.java
new file mode 100644
index 00000000000..3501b195461
--- /dev/null
+++ b/examples/v2/incidents/CreateIncidentRoleAssignment.java
@@ -0,0 +1,68 @@
+// Create an incident role assignment returns "Created" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentRoleAssignmentDataAttributesRequest;
+import com.datadog.api.client.v2.model.IncidentRoleAssignmentDataRequest;
+import com.datadog.api.client.v2.model.IncidentRoleAssignmentRelationshipsRequest;
+import com.datadog.api.client.v2.model.IncidentRoleAssignmentRequest;
+import com.datadog.api.client.v2.model.IncidentRoleAssignmentResponderRelationship;
+import com.datadog.api.client.v2.model.IncidentRoleAssignmentResponderRelationshipData;
+import com.datadog.api.client.v2.model.IncidentRoleAssignmentResponse;
+import com.datadog.api.client.v2.model.IncidentRoleAssignmentRoleRelationship;
+import com.datadog.api.client.v2.model.IncidentRoleAssignmentRoleRelationshipData;
+import com.datadog.api.client.v2.model.IncidentRoleAssignmentType;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.createIncidentRoleAssignment", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentRoleAssignmentRequest body =
+ new IncidentRoleAssignmentRequest()
+ .data(
+ new IncidentRoleAssignmentDataRequest()
+ .attributes(new IncidentRoleAssignmentDataAttributesRequest().role("commander"))
+ .relationships(
+ new IncidentRoleAssignmentRelationshipsRequest()
+ .reservedRole(
+ new IncidentRoleAssignmentRoleRelationship()
+ .data(
+ new IncidentRoleAssignmentRoleRelationshipData()
+ .id(
+ UUID.fromString(
+ "00000000-0000-0000-0000-000000000000"))
+ .type("incident_reserved_roles")))
+ .responder(
+ new IncidentRoleAssignmentResponderRelationship()
+ .data(
+ new IncidentRoleAssignmentResponderRelationshipData()
+ .id(
+ UUID.fromString(
+ "00000000-0000-0000-0000-000000000000"))
+ .type("users")))
+ .userDefinedRole(
+ new IncidentRoleAssignmentRoleRelationship()
+ .data(
+ new IncidentRoleAssignmentRoleRelationshipData()
+ .id(
+ UUID.fromString(
+ "00000000-0000-0000-0000-000000000000"))
+ .type("incident_reserved_roles"))))
+ .type(IncidentRoleAssignmentType.INCIDENT_ROLE_ASSIGNMENTS));
+
+ try {
+ IncidentRoleAssignmentResponse result = apiInstance.createIncidentRoleAssignment(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#createIncidentRoleAssignment");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/CreateIncidentStatusPageNotice.java b/examples/v2/incidents/CreateIncidentStatusPageNotice.java
new file mode 100644
index 00000000000..811a40f6526
--- /dev/null
+++ b/examples/v2/incidents/CreateIncidentStatusPageNotice.java
@@ -0,0 +1,46 @@
+// Publish an incident status page notice returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentStatusPageNoticeCreateData;
+import com.datadog.api.client.v2.model.IncidentStatusPageNoticeCreateDataAttributes;
+import com.datadog.api.client.v2.model.IncidentStatusPageNoticeCreateRequest;
+import com.datadog.api.client.v2.model.IncidentStatusPageNoticeIntegrationResponse;
+import com.datadog.api.client.v2.model.IncidentStatusPageNoticeIntegrationType;
+import java.util.Map;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.createIncidentStatusPageNotice", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentStatusPageNoticeCreateRequest body =
+ new IncidentStatusPageNoticeCreateRequest()
+ .data(
+ new IncidentStatusPageNoticeCreateData()
+ .attributes(
+ new IncidentStatusPageNoticeCreateDataAttributes()
+ .components(
+ Map.ofEntries(Map.entry("component_1", "degraded_performance")))
+ .message("We are investigating reports of elevated error rates.")
+ .status("investigating")
+ .title("Service degradation detected."))
+ .type(IncidentStatusPageNoticeIntegrationType.INCIDENT_INTEGRATIONS));
+
+ try {
+ IncidentStatusPageNoticeIntegrationResponse result =
+ apiInstance.createIncidentStatusPageNotice(
+ "incident_id", UUID.fromString("00000000-0000-0000-0000-000000000000"), body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#createIncidentStatusPageNotice");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/CreateIncidentStatuspageIncident.java b/examples/v2/incidents/CreateIncidentStatuspageIncident.java
new file mode 100644
index 00000000000..ac7fc0c275d
--- /dev/null
+++ b/examples/v2/incidents/CreateIncidentStatuspageIncident.java
@@ -0,0 +1,44 @@
+// Create an incident Statuspage incident returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentStatuspageIncidentDataAttributesRequest;
+import com.datadog.api.client.v2.model.IncidentStatuspageIncidentDataRequest;
+import com.datadog.api.client.v2.model.IncidentStatuspageIncidentRequest;
+import com.datadog.api.client.v2.model.IncidentStatuspageIncidentResponse;
+import com.datadog.api.client.v2.model.IncidentStatuspageIncidentType;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.createIncidentStatuspageIncident", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentStatuspageIncidentRequest body =
+ new IncidentStatuspageIncidentRequest()
+ .data(
+ new IncidentStatuspageIncidentDataRequest()
+ .attributes(
+ new IncidentStatuspageIncidentDataAttributesRequest()
+ .body("We are investigating the issue.")
+ .deliverNotifications(true)
+ .impact("major")
+ .name("Service Outage")
+ .pageId("abc123")
+ .status("investigating"))
+ .type(IncidentStatuspageIncidentType.INCIDENT_INTEGRATIONS));
+
+ try {
+ IncidentStatuspageIncidentResponse result =
+ apiInstance.createIncidentStatuspageIncident("incident_id", body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#createIncidentStatuspageIncident");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/CreateIncidentTimelineEntry.java b/examples/v2/incidents/CreateIncidentTimelineEntry.java
new file mode 100644
index 00000000000..52148c1dfbe
--- /dev/null
+++ b/examples/v2/incidents/CreateIncidentTimelineEntry.java
@@ -0,0 +1,47 @@
+// Create an incident timeline entry returns "Created" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentTimelineCellType;
+import com.datadog.api.client.v2.model.IncidentTimelineEntryContent;
+import com.datadog.api.client.v2.model.IncidentTimelineEntryDataAttributesRequest;
+import com.datadog.api.client.v2.model.IncidentTimelineEntryDataRequest;
+import com.datadog.api.client.v2.model.IncidentTimelineEntryRequest;
+import com.datadog.api.client.v2.model.IncidentTimelineEntryResponse;
+import com.datadog.api.client.v2.model.IncidentTimelineEntryType;
+import java.time.OffsetDateTime;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.createIncidentTimelineEntry", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentTimelineEntryRequest body =
+ new IncidentTimelineEntryRequest()
+ .data(
+ new IncidentTimelineEntryDataRequest()
+ .attributes(
+ new IncidentTimelineEntryDataAttributesRequest()
+ .cellType(IncidentTimelineCellType.MARKDOWN)
+ .content(
+ new IncidentTimelineEntryContent()
+ .message("Investigating the issue."))
+ .displayTime(OffsetDateTime.parse("2024-01-01T00:00:00.000Z"))
+ .important(false))
+ .type(IncidentTimelineEntryType.INCIDENT_TIMELINE_CELLS));
+
+ try {
+ IncidentTimelineEntryResponse result =
+ apiInstance.createIncidentTimelineEntry("incident_id", body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#createIncidentTimelineEntry");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/CreateIncidentZoomConfiguration.java b/examples/v2/incidents/CreateIncidentZoomConfiguration.java
new file mode 100644
index 00000000000..01e6d5dfcc5
--- /dev/null
+++ b/examples/v2/incidents/CreateIncidentZoomConfiguration.java
@@ -0,0 +1,40 @@
+// Create an incident Zoom configuration returns "Created" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentZoomConfigurationDataAttributesRequest;
+import com.datadog.api.client.v2.model.IncidentZoomConfigurationDataRequest;
+import com.datadog.api.client.v2.model.IncidentZoomConfigurationRequest;
+import com.datadog.api.client.v2.model.IncidentZoomConfigurationResponse;
+import com.datadog.api.client.v2.model.IncidentZoomConfigurationType;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.createIncidentZoomConfiguration", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentZoomConfigurationRequest body =
+ new IncidentZoomConfigurationRequest()
+ .data(
+ new IncidentZoomConfigurationDataRequest()
+ .attributes(
+ new IncidentZoomConfigurationDataAttributesRequest()
+ .manualMeetingCreation(false)
+ .meetingChatTimelineSync(false)
+ .postMeetingSummary(true))
+ .type(IncidentZoomConfigurationType.ZOOM_CONFIGURATIONS));
+
+ try {
+ IncidentZoomConfigurationResponse result = apiInstance.createIncidentZoomConfiguration(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#createIncidentZoomConfiguration");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/CreateIncidentZoomMeeting.java b/examples/v2/incidents/CreateIncidentZoomMeeting.java
new file mode 100644
index 00000000000..e301f15e32e
--- /dev/null
+++ b/examples/v2/incidents/CreateIncidentZoomMeeting.java
@@ -0,0 +1,39 @@
+// Create an incident Zoom meeting returns "Created" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentCreateZoomMeetingData;
+import com.datadog.api.client.v2.model.IncidentCreateZoomMeetingDataAttributes;
+import com.datadog.api.client.v2.model.IncidentCreateZoomMeetingRequest;
+import com.datadog.api.client.v2.model.IncidentZoomIntegrationResponse;
+import com.datadog.api.client.v2.model.IncidentZoomIntegrationType;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.createIncidentZoomMeeting", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentCreateZoomMeetingRequest body =
+ new IncidentCreateZoomMeetingRequest()
+ .data(
+ new IncidentCreateZoomMeetingData()
+ .attributes(
+ new IncidentCreateZoomMeetingDataAttributes()
+ .topic("Incident INC-123 War Room"))
+ .type(IncidentZoomIntegrationType.INCIDENT_INTEGRATIONS));
+
+ try {
+ IncidentZoomIntegrationResponse result =
+ apiInstance.createIncidentZoomMeeting("incident_id", body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#createIncidentZoomMeeting");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/CreateStatuspageEmailSubscription.java b/examples/v2/incidents/CreateStatuspageEmailSubscription.java
new file mode 100644
index 00000000000..b33dc95b0f0
--- /dev/null
+++ b/examples/v2/incidents/CreateStatuspageEmailSubscription.java
@@ -0,0 +1,39 @@
+// Create a status page email subscription returns "Created" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentStatuspageSubscriptionDataAttributesRequest;
+import com.datadog.api.client.v2.model.IncidentStatuspageSubscriptionDataRequest;
+import com.datadog.api.client.v2.model.IncidentStatuspageSubscriptionRequest;
+import com.datadog.api.client.v2.model.IncidentStatuspageSubscriptionResponse;
+import com.datadog.api.client.v2.model.IncidentStatuspageSubscriptionType;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.createStatuspageEmailSubscription", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentStatuspageSubscriptionRequest body =
+ new IncidentStatuspageSubscriptionRequest()
+ .data(
+ new IncidentStatuspageSubscriptionDataRequest()
+ .attributes(
+ new IncidentStatuspageSubscriptionDataAttributesRequest()
+ .email("user@example.com"))
+ .type(IncidentStatuspageSubscriptionType.STATUSPAGE_EMAIL_SUBSCRIPTION));
+
+ try {
+ IncidentStatuspageSubscriptionResponse result =
+ apiInstance.createStatuspageEmailSubscription("my-status-page", body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#createStatuspageEmailSubscription");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/DeleteIncidentCommunication.java b/examples/v2/incidents/DeleteIncidentCommunication.java
new file mode 100644
index 00000000000..ca5c104547b
--- /dev/null
+++ b/examples/v2/incidents/DeleteIncidentCommunication.java
@@ -0,0 +1,25 @@
+// Delete an incident communication returns "No Content" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.deleteIncidentCommunication", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ apiInstance.deleteIncidentCommunication(
+ "incident_id", UUID.fromString("00000000-0000-0000-0000-000000000000"));
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#deleteIncidentCommunication");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/DeleteIncidentJiraTemplate.java b/examples/v2/incidents/DeleteIncidentJiraTemplate.java
new file mode 100644
index 00000000000..72e8b3acff7
--- /dev/null
+++ b/examples/v2/incidents/DeleteIncidentJiraTemplate.java
@@ -0,0 +1,25 @@
+// Delete an incident Jira template returns "No Content" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.deleteIncidentJiraTemplate", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ apiInstance.deleteIncidentJiraTemplate(
+ UUID.fromString("00000000-0000-0000-0000-000000000000"));
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#deleteIncidentJiraTemplate");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/DeleteIncidentRoleAssignment.java b/examples/v2/incidents/DeleteIncidentRoleAssignment.java
new file mode 100644
index 00000000000..44ff9c537f8
--- /dev/null
+++ b/examples/v2/incidents/DeleteIncidentRoleAssignment.java
@@ -0,0 +1,25 @@
+// Delete an incident role assignment returns "No Content" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.deleteIncidentRoleAssignment", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ apiInstance.deleteIncidentRoleAssignment(
+ UUID.fromString("00000000-0000-0000-0000-000000000000"));
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#deleteIncidentRoleAssignment");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/DeleteIncidentTimelineEntry.java b/examples/v2/incidents/DeleteIncidentTimelineEntry.java
new file mode 100644
index 00000000000..d5973188218
--- /dev/null
+++ b/examples/v2/incidents/DeleteIncidentTimelineEntry.java
@@ -0,0 +1,25 @@
+// Delete an incident timeline entry returns "No Content" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.deleteIncidentTimelineEntry", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ apiInstance.deleteIncidentTimelineEntry(
+ "incident_id", UUID.fromString("00000000-0000-0000-0000-000000000000"));
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#deleteIncidentTimelineEntry");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/ExportIncidents.java b/examples/v2/incidents/ExportIncidents.java
new file mode 100644
index 00000000000..fd1a85fbf58
--- /dev/null
+++ b/examples/v2/incidents/ExportIncidents.java
@@ -0,0 +1,32 @@
+// Export incidents returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentSearchIncidentsExportRequest;
+import java.io.File;
+import java.util.Arrays;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.exportIncidents", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentSearchIncidentsExportRequest body =
+ new IncidentSearchIncidentsExportRequest()
+ .fields(Arrays.asList("title", "severity", "state"))
+ .query("state:active");
+
+ try {
+ File result = apiInstance.exportIncidents(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#exportIncidents");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/GetIncidentAutomationData.java b/examples/v2/incidents/GetIncidentAutomationData.java
new file mode 100644
index 00000000000..e76e90addea
--- /dev/null
+++ b/examples/v2/incidents/GetIncidentAutomationData.java
@@ -0,0 +1,26 @@
+// Get incident automation data returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentAutomationDataResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.getIncidentAutomationData", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentAutomationDataResponse result =
+ apiInstance.getIncidentAutomationData("incident_id", "workflow_status");
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#getIncidentAutomationData");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/GetIncidentCaseSourceLink.java b/examples/v2/incidents/GetIncidentCaseSourceLink.java
new file mode 100644
index 00000000000..840de84f2f3
--- /dev/null
+++ b/examples/v2/incidents/GetIncidentCaseSourceLink.java
@@ -0,0 +1,25 @@
+// Get incident case source link returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentCaseLinkResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.getIncidentCaseSourceLink", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentCaseLinkResponse result = apiInstance.getIncidentCaseSourceLink("incident_id");
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#getIncidentCaseSourceLink");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/GetIncidentCommunication.java b/examples/v2/incidents/GetIncidentCommunication.java
new file mode 100644
index 00000000000..87c013a604b
--- /dev/null
+++ b/examples/v2/incidents/GetIncidentCommunication.java
@@ -0,0 +1,28 @@
+// Get an incident communication returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentCommunicationResponse;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.getIncidentCommunication", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentCommunicationResponse result =
+ apiInstance.getIncidentCommunication(
+ "incident_id", UUID.fromString("00000000-0000-0000-0000-000000000000"));
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#getIncidentCommunication");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/GetIncidentJiraTemplate.java b/examples/v2/incidents/GetIncidentJiraTemplate.java
new file mode 100644
index 00000000000..2dc23482795
--- /dev/null
+++ b/examples/v2/incidents/GetIncidentJiraTemplate.java
@@ -0,0 +1,28 @@
+// Get an incident Jira template returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateResponse;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.getIncidentJiraTemplate", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentJiraTemplateResponse result =
+ apiInstance.getIncidentJiraTemplate(
+ UUID.fromString("00000000-0000-0000-0000-000000000000"));
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#getIncidentJiraTemplate");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/GetIncidentPageSourceLink.java b/examples/v2/incidents/GetIncidentPageSourceLink.java
new file mode 100644
index 00000000000..c9235db5f02
--- /dev/null
+++ b/examples/v2/incidents/GetIncidentPageSourceLink.java
@@ -0,0 +1,25 @@
+// Get incident page source link returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentCaseLinkResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.getIncidentPageSourceLink", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentCaseLinkResponse result = apiInstance.getIncidentPageSourceLink("incident_id");
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#getIncidentPageSourceLink");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/GetIncidentPagerdutyRelatedIncidents.java b/examples/v2/incidents/GetIncidentPagerdutyRelatedIncidents.java
new file mode 100644
index 00000000000..0763a52bf99
--- /dev/null
+++ b/examples/v2/incidents/GetIncidentPagerdutyRelatedIncidents.java
@@ -0,0 +1,27 @@
+// Get PagerDuty related incidents returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentPagerdutyRelatedIncidentsResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.getIncidentPagerdutyRelatedIncidents", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentPagerdutyRelatedIncidentsResponse result =
+ apiInstance.getIncidentPagerdutyRelatedIncidents("P1234AB");
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println(
+ "Exception when calling IncidentsApi#getIncidentPagerdutyRelatedIncidents");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/GetIncidentReservedRole.java b/examples/v2/incidents/GetIncidentReservedRole.java
new file mode 100644
index 00000000000..6bb223ba2e1
--- /dev/null
+++ b/examples/v2/incidents/GetIncidentReservedRole.java
@@ -0,0 +1,28 @@
+// Get an incident reserved role returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentReservedRoleResponse;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.getIncidentReservedRole", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentReservedRoleResponse result =
+ apiInstance.getIncidentReservedRole(
+ UUID.fromString("00000000-0000-0000-0000-000000000000"));
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#getIncidentReservedRole");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/GetIncidentRoleAssignment.java b/examples/v2/incidents/GetIncidentRoleAssignment.java
new file mode 100644
index 00000000000..00ef5f39886
--- /dev/null
+++ b/examples/v2/incidents/GetIncidentRoleAssignment.java
@@ -0,0 +1,28 @@
+// Get an incident role assignment returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentRoleAssignmentResponse;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.getIncidentRoleAssignment", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentRoleAssignmentResponse result =
+ apiInstance.getIncidentRoleAssignment(
+ UUID.fromString("00000000-0000-0000-0000-000000000000"));
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#getIncidentRoleAssignment");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/GetIncidentStatusPagesSuggestion.java b/examples/v2/incidents/GetIncidentStatusPagesSuggestion.java
new file mode 100644
index 00000000000..0f3e45c1ea0
--- /dev/null
+++ b/examples/v2/incidents/GetIncidentStatusPagesSuggestion.java
@@ -0,0 +1,26 @@
+// Get incident status pages suggestion returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentStatusPagesSuggestionResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.getIncidentStatusPagesSuggestion", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentStatusPagesSuggestionResponse result =
+ apiInstance.getIncidentStatusPagesSuggestion("incident_id");
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#getIncidentStatusPagesSuggestion");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/GetIncidentTimelineEntryThread.java b/examples/v2/incidents/GetIncidentTimelineEntryThread.java
new file mode 100644
index 00000000000..fb3fd2f2fb0
--- /dev/null
+++ b/examples/v2/incidents/GetIncidentTimelineEntryThread.java
@@ -0,0 +1,28 @@
+// Get incident timeline entry thread returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentTimelineThreadResponse;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.getIncidentTimelineEntryThread", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentTimelineThreadResponse result =
+ apiInstance.getIncidentTimelineEntryThread(
+ "incident_id", UUID.fromString("00000000-0000-0000-0000-000000000000"));
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#getIncidentTimelineEntryThread");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/GetStatuspageSubscriptionPreferences.java b/examples/v2/incidents/GetStatuspageSubscriptionPreferences.java
new file mode 100644
index 00000000000..3d3debcee5e
--- /dev/null
+++ b/examples/v2/incidents/GetStatuspageSubscriptionPreferences.java
@@ -0,0 +1,27 @@
+// Get status page subscription preferences returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentStatuspagePreferencesResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.getStatuspageSubscriptionPreferences", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentStatuspagePreferencesResponse result =
+ apiInstance.getStatuspageSubscriptionPreferences();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println(
+ "Exception when calling IncidentsApi#getStatuspageSubscriptionPreferences");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/ListIncidentCommunications.java b/examples/v2/incidents/ListIncidentCommunications.java
new file mode 100644
index 00000000000..eaa13f7e9e2
--- /dev/null
+++ b/examples/v2/incidents/ListIncidentCommunications.java
@@ -0,0 +1,25 @@
+// List incident communications returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentCommunicationsResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.listIncidentCommunications", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentCommunicationsResponse result = apiInstance.listIncidentCommunications("incident_id");
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#listIncidentCommunications");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/ListIncidentJiraTemplates.java b/examples/v2/incidents/ListIncidentJiraTemplates.java
new file mode 100644
index 00000000000..bd04b9cd801
--- /dev/null
+++ b/examples/v2/incidents/ListIncidentJiraTemplates.java
@@ -0,0 +1,25 @@
+// List incident Jira templates returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentJiraTemplatesResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.listIncidentJiraTemplates", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentJiraTemplatesResponse result = apiInstance.listIncidentJiraTemplates();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#listIncidentJiraTemplates");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/ListIncidentPagerdutyServices.java b/examples/v2/incidents/ListIncidentPagerdutyServices.java
new file mode 100644
index 00000000000..f731a7a36a4
--- /dev/null
+++ b/examples/v2/incidents/ListIncidentPagerdutyServices.java
@@ -0,0 +1,25 @@
+// List PagerDuty services returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentPagerdutyServicesResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.listIncidentPagerdutyServices", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentPagerdutyServicesResponse result = apiInstance.listIncidentPagerdutyServices();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#listIncidentPagerdutyServices");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/ListIncidentReservedRoles.java b/examples/v2/incidents/ListIncidentReservedRoles.java
new file mode 100644
index 00000000000..2d06191d5e0
--- /dev/null
+++ b/examples/v2/incidents/ListIncidentReservedRoles.java
@@ -0,0 +1,25 @@
+// List incident reserved roles returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentReservedRolesResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.listIncidentReservedRoles", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentReservedRolesResponse result = apiInstance.listIncidentReservedRoles();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#listIncidentReservedRoles");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/ListIncidentRuleExecutionStates.java b/examples/v2/incidents/ListIncidentRuleExecutionStates.java
new file mode 100644
index 00000000000..f2f2edcbe40
--- /dev/null
+++ b/examples/v2/incidents/ListIncidentRuleExecutionStates.java
@@ -0,0 +1,26 @@
+// List incident rule execution states returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentRuleExecutionStatesResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.listIncidentRuleExecutionStates", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentRuleExecutionStatesResponse result =
+ apiInstance.listIncidentRuleExecutionStates("incident_id");
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#listIncidentRuleExecutionStates");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/ListIncidentTemplateVariables.java b/examples/v2/incidents/ListIncidentTemplateVariables.java
new file mode 100644
index 00000000000..1fbd630141d
--- /dev/null
+++ b/examples/v2/incidents/ListIncidentTemplateVariables.java
@@ -0,0 +1,25 @@
+// List incident template variables returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentTemplateVariablesResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.listIncidentTemplateVariables", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentTemplateVariablesResponse result = apiInstance.listIncidentTemplateVariables();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#listIncidentTemplateVariables");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/ListIncidentTimelineEntries.java b/examples/v2/incidents/ListIncidentTimelineEntries.java
new file mode 100644
index 00000000000..9fbe22a8961
--- /dev/null
+++ b/examples/v2/incidents/ListIncidentTimelineEntries.java
@@ -0,0 +1,26 @@
+// List incident timeline entries returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentTimelineEntriesResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.listIncidentTimelineEntries", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentTimelineEntriesResponse result =
+ apiInstance.listIncidentTimelineEntries("incident_id");
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#listIncidentTimelineEntries");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/ListStatuspageEmailSubscriptions.java b/examples/v2/incidents/ListStatuspageEmailSubscriptions.java
new file mode 100644
index 00000000000..1d6d1c85b1e
--- /dev/null
+++ b/examples/v2/incidents/ListStatuspageEmailSubscriptions.java
@@ -0,0 +1,26 @@
+// List status page email subscriptions returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentStatuspageSubscriptionsResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.listStatuspageEmailSubscriptions", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentStatuspageSubscriptionsResponse result =
+ apiInstance.listStatuspageEmailSubscriptions("my-status-page");
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#listStatuspageEmailSubscriptions");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/PatchIncidentNotificationRule.java b/examples/v2/incidents/PatchIncidentNotificationRule.java
new file mode 100644
index 00000000000..e4c12ff9601
--- /dev/null
+++ b/examples/v2/incidents/PatchIncidentNotificationRule.java
@@ -0,0 +1,81 @@
+// Patch an incident notification rule returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentNotificationRule;
+import com.datadog.api.client.v2.model.IncidentNotificationRuleConditionsItems;
+import com.datadog.api.client.v2.model.IncidentNotificationRuleCreateAttributes;
+import com.datadog.api.client.v2.model.IncidentNotificationRuleCreateAttributesVisibility;
+import com.datadog.api.client.v2.model.IncidentNotificationRuleCreateDataRelationships;
+import com.datadog.api.client.v2.model.IncidentNotificationRuleType;
+import com.datadog.api.client.v2.model.IncidentNotificationRuleUpdateData;
+import com.datadog.api.client.v2.model.IncidentNotificationTemplateType;
+import com.datadog.api.client.v2.model.IncidentTypeType;
+import com.datadog.api.client.v2.model.PutIncidentNotificationRuleRequest;
+import com.datadog.api.client.v2.model.RelationshipToIncidentNotificationTemplate;
+import com.datadog.api.client.v2.model.RelationshipToIncidentNotificationTemplateData;
+import com.datadog.api.client.v2.model.RelationshipToIncidentType;
+import com.datadog.api.client.v2.model.RelationshipToIncidentTypeData;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.patchIncidentNotificationRule", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ PutIncidentNotificationRuleRequest body =
+ new PutIncidentNotificationRuleRequest()
+ .data(
+ new IncidentNotificationRuleUpdateData()
+ .attributes(
+ new IncidentNotificationRuleCreateAttributes()
+ .conditions(
+ Collections.singletonList(
+ new IncidentNotificationRuleConditionsItems()
+ .field("severity")
+ .values(Arrays.asList("SEV-1", "SEV-2"))))
+ .enabled(true)
+ .handles(Arrays.asList("@team-email@company.com", "@slack-channel"))
+ .renotifyOn(Arrays.asList("status", "severity"))
+ .trigger("incident_created_trigger")
+ .visibility(
+ IncidentNotificationRuleCreateAttributesVisibility.ORGANIZATION))
+ .id(UUID.fromString("00000000-0000-0000-0000-000000000001"))
+ .relationships(
+ new IncidentNotificationRuleCreateDataRelationships()
+ .incidentType(
+ new RelationshipToIncidentType()
+ .data(
+ new RelationshipToIncidentTypeData()
+ .id("00000000-0000-0000-0000-000000000000")
+ .type(IncidentTypeType.INCIDENT_TYPES)))
+ .notificationTemplate(
+ new RelationshipToIncidentNotificationTemplate()
+ .data(
+ new RelationshipToIncidentNotificationTemplateData()
+ .id(
+ UUID.fromString(
+ "00000000-0000-0000-0000-000000000001"))
+ .type(
+ IncidentNotificationTemplateType
+ .NOTIFICATION_TEMPLATES))))
+ .type(IncidentNotificationRuleType.INCIDENT_NOTIFICATION_RULES));
+
+ try {
+ IncidentNotificationRule result =
+ apiInstance.patchIncidentNotificationRule(
+ UUID.fromString("00000000-0000-0000-0000-000000000001"), body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#patchIncidentNotificationRule");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/RenderIncidentTemplate.java b/examples/v2/incidents/RenderIncidentTemplate.java
new file mode 100644
index 00000000000..54a28824338
--- /dev/null
+++ b/examples/v2/incidents/RenderIncidentTemplate.java
@@ -0,0 +1,43 @@
+// Render an incident template returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentRenderTemplateDataAttributesRequest;
+import com.datadog.api.client.v2.model.IncidentRenderTemplateDataRequest;
+import com.datadog.api.client.v2.model.IncidentRenderTemplateRequest;
+import com.datadog.api.client.v2.model.IncidentRenderedTemplateResponse;
+import com.datadog.api.client.v2.model.IncidentRenderedTemplateType;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.renderIncidentTemplate", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentRenderTemplateRequest body =
+ new IncidentRenderTemplateRequest()
+ .data(
+ new IncidentRenderTemplateDataRequest()
+ .attributes(
+ new IncidentRenderTemplateDataAttributesRequest()
+ .content("Incident INC-123 is SEV-1.")
+ .datetimeFormat("2006-01-02T15:04:05Z07:00")
+ .timezone("America/New_York")
+ .validateLinks(false)
+ .validateVariables(false))
+ .type(IncidentRenderedTemplateType.RENDERED_TEMPLATES));
+
+ try {
+ IncidentRenderedTemplateResponse result =
+ apiInstance.renderIncidentTemplate("incident_id", body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#renderIncidentTemplate");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/SearchIncidentsV2.java b/examples/v2/incidents/SearchIncidentsV2.java
new file mode 100644
index 00000000000..70b54c97c97
--- /dev/null
+++ b/examples/v2/incidents/SearchIncidentsV2.java
@@ -0,0 +1,25 @@
+// Search incidents returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentSearchResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.searchIncidentsV2", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ try {
+ IncidentSearchResponse result = apiInstance.searchIncidentsV2();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#searchIncidentsV2");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/UpdateIncidentCommunication.java b/examples/v2/incidents/UpdateIncidentCommunication.java
new file mode 100644
index 00000000000..6a5a20ecdfd
--- /dev/null
+++ b/examples/v2/incidents/UpdateIncidentCommunication.java
@@ -0,0 +1,57 @@
+// Update an incident communication returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentCommunicationContent;
+import com.datadog.api.client.v2.model.IncidentCommunicationContentHandle;
+import com.datadog.api.client.v2.model.IncidentCommunicationDataAttributesRequest;
+import com.datadog.api.client.v2.model.IncidentCommunicationDataRequest;
+import com.datadog.api.client.v2.model.IncidentCommunicationKind;
+import com.datadog.api.client.v2.model.IncidentCommunicationRequest;
+import com.datadog.api.client.v2.model.IncidentCommunicationResponse;
+import com.datadog.api.client.v2.model.IncidentCommunicationType;
+import java.util.Collections;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.updateIncidentCommunication", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentCommunicationRequest body =
+ new IncidentCommunicationRequest()
+ .data(
+ new IncidentCommunicationDataRequest()
+ .attributes(
+ new IncidentCommunicationDataAttributesRequest()
+ .communicationType(IncidentCommunicationKind.MANUAL)
+ .content(
+ new IncidentCommunicationContent()
+ .groupingKey("update-1")
+ .handles(
+ Collections.singletonList(
+ new IncidentCommunicationContentHandle()
+ .createdAt("2024-01-01T00:00:00.000Z")
+ .displayName("#incidents-channel")
+ .handle("@slack-incidents-channel")))
+ .message("Incident update for INC-123.")
+ .status(0)
+ .subject("Incident INC-123: Update")))
+ .type(IncidentCommunicationType.COMMUNICATION));
+
+ try {
+ IncidentCommunicationResponse result =
+ apiInstance.updateIncidentCommunication(
+ "incident_id", UUID.fromString("00000000-0000-0000-0000-000000000000"), body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#updateIncidentCommunication");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/UpdateIncidentJiraTemplate.java b/examples/v2/incidents/UpdateIncidentJiraTemplate.java
new file mode 100644
index 00000000000..d157e11f0a8
--- /dev/null
+++ b/examples/v2/incidents/UpdateIncidentJiraTemplate.java
@@ -0,0 +1,70 @@
+// Update an incident Jira template returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateDataAttributesRequest;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateDataRequest;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateFieldConfiguration;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateIncidentTypeRelationship;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateIncidentTypeRelationshipData;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateRelationships;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateRequest;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateResponse;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateType;
+import java.util.Collections;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.updateIncidentJiraTemplate", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentJiraTemplateRequest body =
+ new IncidentJiraTemplateRequest()
+ .data(
+ new IncidentJiraTemplateDataRequest()
+ .attributes(
+ new IncidentJiraTemplateDataAttributesRequest()
+ .accountId("123456")
+ .fieldConfigurations(
+ Collections.singletonList(
+ new IncidentJiraTemplateFieldConfiguration()
+ .incidentField("title")
+ .jiraFieldKey("summary")
+ .jiraFieldType("string")
+ .syncDirection("bidirectional")))
+ .isDefault(false)
+ .issueId("10001")
+ .name("Default Jira Template")
+ .projectId("10000")
+ .projectKey("INC")
+ .syncEnabled(true)
+ .type("jira"))
+ .relationships(
+ new IncidentJiraTemplateRelationships()
+ .incidentType(
+ new IncidentJiraTemplateIncidentTypeRelationship()
+ .data(
+ new IncidentJiraTemplateIncidentTypeRelationshipData()
+ .id(
+ UUID.fromString(
+ "00000000-0000-0000-0000-000000000000"))
+ .type("incident_types"))))
+ .type(IncidentJiraTemplateType.INCIDENTS_JIRA_TEMPLATES));
+
+ try {
+ IncidentJiraTemplateResponse result =
+ apiInstance.updateIncidentJiraTemplate(
+ UUID.fromString("00000000-0000-0000-0000-000000000000"), body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#updateIncidentJiraTemplate");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/UpdateIncidentMicrosoftTeamsConfiguration.java b/examples/v2/incidents/UpdateIncidentMicrosoftTeamsConfiguration.java
new file mode 100644
index 00000000000..49ebb7cb12f
--- /dev/null
+++ b/examples/v2/incidents/UpdateIncidentMicrosoftTeamsConfiguration.java
@@ -0,0 +1,43 @@
+// Update an incident Microsoft Teams configuration returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentMicrosoftTeamsConfigurationDataAttributesRequest;
+import com.datadog.api.client.v2.model.IncidentMicrosoftTeamsConfigurationDataRequest;
+import com.datadog.api.client.v2.model.IncidentMicrosoftTeamsConfigurationRequest;
+import com.datadog.api.client.v2.model.IncidentMicrosoftTeamsConfigurationResponse;
+import com.datadog.api.client.v2.model.IncidentMicrosoftTeamsConfigurationType;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.updateIncidentMicrosoftTeamsConfiguration", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentMicrosoftTeamsConfigurationRequest body =
+ new IncidentMicrosoftTeamsConfigurationRequest()
+ .data(
+ new IncidentMicrosoftTeamsConfigurationDataRequest()
+ .attributes(
+ new IncidentMicrosoftTeamsConfigurationDataAttributesRequest()
+ .manualMeetingCreation(false)
+ .postMeetingSummary(true))
+ .type(IncidentMicrosoftTeamsConfigurationType.MICROSOFT_TEAMS_CONFIGURATIONS));
+
+ try {
+ IncidentMicrosoftTeamsConfigurationResponse result =
+ apiInstance.updateIncidentMicrosoftTeamsConfiguration(
+ UUID.fromString("00000000-0000-0000-0000-000000000000"), body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println(
+ "Exception when calling IncidentsApi#updateIncidentMicrosoftTeamsConfiguration");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/UpdateIncidentStatusPageNotice.java b/examples/v2/incidents/UpdateIncidentStatusPageNotice.java
new file mode 100644
index 00000000000..49801cd5acd
--- /dev/null
+++ b/examples/v2/incidents/UpdateIncidentStatusPageNotice.java
@@ -0,0 +1,46 @@
+// Update an incident status page notice returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentStatusPageNoticeIntegrationResponse;
+import com.datadog.api.client.v2.model.IncidentStatusPageNoticeIntegrationType;
+import com.datadog.api.client.v2.model.IncidentStatusPageNoticeUpdateData;
+import com.datadog.api.client.v2.model.IncidentStatusPageNoticeUpdateDataAttributes;
+import com.datadog.api.client.v2.model.IncidentStatusPageNoticeUpdateRequest;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.updateIncidentStatusPageNotice", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentStatusPageNoticeUpdateRequest body =
+ new IncidentStatusPageNoticeUpdateRequest()
+ .data(
+ new IncidentStatusPageNoticeUpdateData()
+ .attributes(
+ new IncidentStatusPageNoticeUpdateDataAttributes()
+ .message("The issue has been resolved.")
+ .status("resolved")
+ .title("Service degradation resolved."))
+ .type(IncidentStatusPageNoticeIntegrationType.INCIDENT_INTEGRATIONS));
+
+ try {
+ IncidentStatusPageNoticeIntegrationResponse result =
+ apiInstance.updateIncidentStatusPageNotice(
+ "incident_id",
+ UUID.fromString("00000000-0000-0000-0000-000000000000"),
+ UUID.fromString("00000000-0000-0000-0000-000000000000"),
+ body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#updateIncidentStatusPageNotice");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/UpdateIncidentStatuspageIncident.java b/examples/v2/incidents/UpdateIncidentStatuspageIncident.java
new file mode 100644
index 00000000000..dbe29636ad8
--- /dev/null
+++ b/examples/v2/incidents/UpdateIncidentStatuspageIncident.java
@@ -0,0 +1,44 @@
+// Update an incident Statuspage incident returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentStatuspageIncidentDataAttributesRequest;
+import com.datadog.api.client.v2.model.IncidentStatuspageIncidentDataRequest;
+import com.datadog.api.client.v2.model.IncidentStatuspageIncidentRequest;
+import com.datadog.api.client.v2.model.IncidentStatuspageIncidentResponse;
+import com.datadog.api.client.v2.model.IncidentStatuspageIncidentType;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.updateIncidentStatuspageIncident", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentStatuspageIncidentRequest body =
+ new IncidentStatuspageIncidentRequest()
+ .data(
+ new IncidentStatuspageIncidentDataRequest()
+ .attributes(
+ new IncidentStatuspageIncidentDataAttributesRequest()
+ .body("We are investigating the issue.")
+ .deliverNotifications(true)
+ .impact("major")
+ .name("Service Outage")
+ .pageId("abc123")
+ .status("investigating"))
+ .type(IncidentStatuspageIncidentType.INCIDENT_INTEGRATIONS));
+
+ try {
+ IncidentStatuspageIncidentResponse result =
+ apiInstance.updateIncidentStatuspageIncident("incident_id", "abc123", "abc123", body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#updateIncidentStatuspageIncident");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/UpdateIncidentTimelineEntry.java b/examples/v2/incidents/UpdateIncidentTimelineEntry.java
new file mode 100644
index 00000000000..a9d81672e06
--- /dev/null
+++ b/examples/v2/incidents/UpdateIncidentTimelineEntry.java
@@ -0,0 +1,49 @@
+// Update an incident timeline entry returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentTimelineCellType;
+import com.datadog.api.client.v2.model.IncidentTimelineEntryContent;
+import com.datadog.api.client.v2.model.IncidentTimelineEntryDataAttributesRequest;
+import com.datadog.api.client.v2.model.IncidentTimelineEntryDataRequest;
+import com.datadog.api.client.v2.model.IncidentTimelineEntryRequest;
+import com.datadog.api.client.v2.model.IncidentTimelineEntryResponse;
+import com.datadog.api.client.v2.model.IncidentTimelineEntryType;
+import java.time.OffsetDateTime;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.updateIncidentTimelineEntry", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentTimelineEntryRequest body =
+ new IncidentTimelineEntryRequest()
+ .data(
+ new IncidentTimelineEntryDataRequest()
+ .attributes(
+ new IncidentTimelineEntryDataAttributesRequest()
+ .cellType(IncidentTimelineCellType.MARKDOWN)
+ .content(
+ new IncidentTimelineEntryContent()
+ .message("Investigating the issue."))
+ .displayTime(OffsetDateTime.parse("2024-01-01T00:00:00.000Z"))
+ .important(false))
+ .type(IncidentTimelineEntryType.INCIDENT_TIMELINE_CELLS));
+
+ try {
+ IncidentTimelineEntryResponse result =
+ apiInstance.updateIncidentTimelineEntry(
+ "incident_id", UUID.fromString("00000000-0000-0000-0000-000000000000"), body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#updateIncidentTimelineEntry");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/UpdateIncidentZoomConfiguration.java b/examples/v2/incidents/UpdateIncidentZoomConfiguration.java
new file mode 100644
index 00000000000..db3b9788aaa
--- /dev/null
+++ b/examples/v2/incidents/UpdateIncidentZoomConfiguration.java
@@ -0,0 +1,43 @@
+// Update an incident Zoom configuration returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentZoomConfigurationDataAttributesRequest;
+import com.datadog.api.client.v2.model.IncidentZoomConfigurationDataRequest;
+import com.datadog.api.client.v2.model.IncidentZoomConfigurationRequest;
+import com.datadog.api.client.v2.model.IncidentZoomConfigurationResponse;
+import com.datadog.api.client.v2.model.IncidentZoomConfigurationType;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.updateIncidentZoomConfiguration", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentZoomConfigurationRequest body =
+ new IncidentZoomConfigurationRequest()
+ .data(
+ new IncidentZoomConfigurationDataRequest()
+ .attributes(
+ new IncidentZoomConfigurationDataAttributesRequest()
+ .manualMeetingCreation(false)
+ .meetingChatTimelineSync(false)
+ .postMeetingSummary(true))
+ .type(IncidentZoomConfigurationType.ZOOM_CONFIGURATIONS));
+
+ try {
+ IncidentZoomConfigurationResponse result =
+ apiInstance.updateIncidentZoomConfiguration(
+ UUID.fromString("00000000-0000-0000-0000-000000000000"), body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#updateIncidentZoomConfiguration");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/incidents/UpsertIncidentAutomationData.java b/examples/v2/incidents/UpsertIncidentAutomationData.java
new file mode 100644
index 00000000000..b9ae6779595
--- /dev/null
+++ b/examples/v2/incidents/UpsertIncidentAutomationData.java
@@ -0,0 +1,37 @@
+// Upsert incident automation data returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.IncidentsApi;
+import com.datadog.api.client.v2.model.IncidentAutomationDataAttributesRequest;
+import com.datadog.api.client.v2.model.IncidentAutomationDataDataRequest;
+import com.datadog.api.client.v2.model.IncidentAutomationDataRequest;
+import com.datadog.api.client.v2.model.IncidentAutomationDataResponse;
+import com.datadog.api.client.v2.model.IncidentAutomationDataType;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.upsertIncidentAutomationData", true);
+ IncidentsApi apiInstance = new IncidentsApi(defaultClient);
+
+ IncidentAutomationDataRequest body =
+ new IncidentAutomationDataRequest()
+ .data(
+ new IncidentAutomationDataDataRequest()
+ .attributes(new IncidentAutomationDataAttributesRequest().value("completed"))
+ .type(IncidentAutomationDataType.INCIDENTS_AUTOMATION_DATA));
+
+ try {
+ IncidentAutomationDataResponse result =
+ apiInstance.upsertIncidentAutomationData("incident_id", "workflow_status", body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IncidentsApi#upsertIncidentAutomationData");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/ApiClient.java b/src/main/java/com/datadog/api/client/ApiClient.java
index fc8d594424b..07e64367885 100644
--- a/src/main/java/com/datadog/api/client/ApiClient.java
+++ b/src/main/java/com/datadog/api/client/ApiClient.java
@@ -888,59 +888,109 @@ public class ApiClient {
put("v2.createEmailTransportWebhookIntake", false);
put("v2.createHamrOrgConnection", false);
put("v2.getHamrOrgConnection", false);
+ put("v2.batchCreateIncidentRuleExecutionStates", false);
+ put("v2.batchUpdateIncidentRuleExecutionStates", false);
put("v2.createGlobalIncidentHandle", false);
put("v2.createIncident", false);
put("v2.createIncidentAttachment", false);
+ put("v2.createIncidentCommunication", false);
+ put("v2.createIncidentGoogleMeetSpace", false);
put("v2.createIncidentIntegration", false);
+ put("v2.createIncidentJiraIssue", false);
+ put("v2.createIncidentJiraTemplate", false);
+ put("v2.createIncidentMicrosoftTeamsConfiguration", false);
+ put("v2.createIncidentMSTeamsOnlineMeeting", false);
put("v2.createIncidentNotificationRule", false);
put("v2.createIncidentNotificationTemplate", false);
put("v2.createIncidentPostmortemAttachment", false);
put("v2.createIncidentPostmortemTemplate", false);
+ put("v2.createIncidentRoleAssignment", false);
+ put("v2.createIncidentStatuspageIncident", false);
+ put("v2.createIncidentStatusPageNotice", false);
+ put("v2.createIncidentTimelineEntry", false);
put("v2.createIncidentTodo", false);
put("v2.createIncidentType", false);
put("v2.createIncidentUserDefinedField", false);
+ put("v2.createIncidentZoomConfiguration", false);
+ put("v2.createIncidentZoomMeeting", false);
+ put("v2.createStatuspageEmailSubscription", false);
put("v2.deleteGlobalIncidentHandle", false);
put("v2.deleteIncident", false);
put("v2.deleteIncidentAttachment", false);
+ put("v2.deleteIncidentCommunication", false);
put("v2.deleteIncidentIntegration", false);
+ put("v2.deleteIncidentJiraTemplate", false);
put("v2.deleteIncidentNotificationRule", false);
put("v2.deleteIncidentNotificationTemplate", false);
put("v2.deleteIncidentPostmortemTemplate", false);
+ put("v2.deleteIncidentRoleAssignment", false);
+ put("v2.deleteIncidentTimelineEntry", false);
put("v2.deleteIncidentTodo", false);
put("v2.deleteIncidentType", false);
put("v2.deleteIncidentUserDefinedField", false);
+ put("v2.exportIncidents", false);
put("v2.getGlobalIncidentSettings", false);
put("v2.getIncident", false);
+ put("v2.getIncidentAutomationData", false);
+ put("v2.getIncidentCaseSourceLink", false);
+ put("v2.getIncidentCommunication", false);
put("v2.getIncidentIntegration", false);
+ put("v2.getIncidentJiraTemplate", false);
put("v2.getIncidentNotificationRule", false);
put("v2.getIncidentNotificationTemplate", false);
+ put("v2.getIncidentPagerdutyRelatedIncidents", false);
+ put("v2.getIncidentPageSourceLink", false);
put("v2.getIncidentPostmortemTemplate", false);
+ put("v2.getIncidentReservedRole", false);
+ put("v2.getIncidentRoleAssignment", false);
+ put("v2.getIncidentStatusPagesSuggestion", false);
+ put("v2.getIncidentTimelineEntryThread", false);
put("v2.getIncidentTodo", false);
put("v2.getIncidentType", false);
put("v2.getIncidentUserDefinedField", false);
+ put("v2.getStatuspageSubscriptionPreferences", false);
put("v2.importIncident", false);
put("v2.listGlobalIncidentHandles", false);
put("v2.listIncidentAttachments", false);
+ put("v2.listIncidentCommunications", false);
put("v2.listIncidentIntegrations", false);
+ put("v2.listIncidentJiraTemplates", false);
put("v2.listIncidentNotificationRules", false);
put("v2.listIncidentNotificationTemplates", false);
+ put("v2.listIncidentPagerdutyServices", false);
put("v2.listIncidentPostmortemTemplates", false);
+ put("v2.listIncidentReservedRoles", false);
+ put("v2.listIncidentRuleExecutionStates", false);
put("v2.listIncidents", false);
+ put("v2.listIncidentTemplateVariables", false);
+ put("v2.listIncidentTimelineEntries", false);
put("v2.listIncidentTodos", false);
put("v2.listIncidentTypes", false);
put("v2.listIncidentUserDefinedFields", false);
+ put("v2.listStatuspageEmailSubscriptions", false);
+ put("v2.patchIncidentNotificationRule", false);
+ put("v2.renderIncidentTemplate", false);
put("v2.searchIncidents", false);
+ put("v2.searchIncidentsV2", false);
put("v2.updateGlobalIncidentHandle", false);
put("v2.updateGlobalIncidentSettings", false);
put("v2.updateIncident", false);
put("v2.updateIncidentAttachment", false);
+ put("v2.updateIncidentCommunication", false);
put("v2.updateIncidentIntegration", false);
+ put("v2.updateIncidentJiraTemplate", false);
+ put("v2.updateIncidentMicrosoftTeamsConfiguration", false);
put("v2.updateIncidentNotificationRule", false);
put("v2.updateIncidentNotificationTemplate", false);
put("v2.updateIncidentPostmortemTemplate", false);
+ put("v2.updateIncidentStatuspageIncident", false);
+ put("v2.updateIncidentStatusPageNotice", false);
+ put("v2.updateIncidentTimelineEntry", false);
put("v2.updateIncidentTodo", false);
put("v2.updateIncidentType", false);
put("v2.updateIncidentUserDefinedField", false);
+ put("v2.updateIncidentZoomConfiguration", false);
+ put("v2.upsertIncidentAutomationData", false);
put("v2.createAWSAccountCCMConfig", false);
put("v2.deleteAWSAccountCCMConfig", false);
put("v2.getAWSAccountCCMConfig", false);
diff --git a/src/main/java/com/datadog/api/client/v2/api/IncidentsApi.java b/src/main/java/com/datadog/api/client/v2/api/IncidentsApi.java
index c44e3983ac1..853e65922d2 100644
--- a/src/main/java/com/datadog/api/client/v2/api/IncidentsApi.java
+++ b/src/main/java/com/datadog/api/client/v2/api/IncidentsApi.java
@@ -12,7 +12,17 @@
import com.datadog.api.client.v2.model.CreateIncidentNotificationTemplateRequest;
import com.datadog.api.client.v2.model.GlobalIncidentSettingsRequest;
import com.datadog.api.client.v2.model.GlobalIncidentSettingsResponse;
+import com.datadog.api.client.v2.model.IncidentAutomationDataRequest;
+import com.datadog.api.client.v2.model.IncidentAutomationDataResponse;
+import com.datadog.api.client.v2.model.IncidentBatchCreateRuleExecutionStatesRequest;
+import com.datadog.api.client.v2.model.IncidentBatchUpdateRuleExecutionStatesRequest;
+import com.datadog.api.client.v2.model.IncidentCaseLinkResponse;
+import com.datadog.api.client.v2.model.IncidentCommunicationRequest;
+import com.datadog.api.client.v2.model.IncidentCommunicationResponse;
+import com.datadog.api.client.v2.model.IncidentCommunicationsResponse;
import com.datadog.api.client.v2.model.IncidentCreateRequest;
+import com.datadog.api.client.v2.model.IncidentCreateZoomMeetingRequest;
+import com.datadog.api.client.v2.model.IncidentGoogleMeetIntegrationResponse;
import com.datadog.api.client.v2.model.IncidentHandleRequest;
import com.datadog.api.client.v2.model.IncidentHandleResponse;
import com.datadog.api.client.v2.model.IncidentHandlesResponse;
@@ -27,16 +37,51 @@
import com.datadog.api.client.v2.model.IncidentIntegrationMetadataListResponse;
import com.datadog.api.client.v2.model.IncidentIntegrationMetadataPatchRequest;
import com.datadog.api.client.v2.model.IncidentIntegrationMetadataResponse;
+import com.datadog.api.client.v2.model.IncidentJiraIssueIntegrationResponse;
+import com.datadog.api.client.v2.model.IncidentJiraIssueRequest;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateRequest;
+import com.datadog.api.client.v2.model.IncidentJiraTemplateResponse;
+import com.datadog.api.client.v2.model.IncidentJiraTemplatesResponse;
+import com.datadog.api.client.v2.model.IncidentMSTeamsIntegrationResponse;
+import com.datadog.api.client.v2.model.IncidentMicrosoftTeamsConfigurationRequest;
+import com.datadog.api.client.v2.model.IncidentMicrosoftTeamsConfigurationResponse;
import com.datadog.api.client.v2.model.IncidentNotificationRule;
import com.datadog.api.client.v2.model.IncidentNotificationRuleArray;
import com.datadog.api.client.v2.model.IncidentNotificationTemplate;
import com.datadog.api.client.v2.model.IncidentNotificationTemplateArray;
+import com.datadog.api.client.v2.model.IncidentPagerdutyRelatedIncidentsResponse;
+import com.datadog.api.client.v2.model.IncidentPagerdutyServicesResponse;
import com.datadog.api.client.v2.model.IncidentRelatedObject;
+import com.datadog.api.client.v2.model.IncidentRenderTemplateRequest;
+import com.datadog.api.client.v2.model.IncidentRenderedTemplateResponse;
+import com.datadog.api.client.v2.model.IncidentReservedRoleResponse;
+import com.datadog.api.client.v2.model.IncidentReservedRolesResponse;
import com.datadog.api.client.v2.model.IncidentResponse;
import com.datadog.api.client.v2.model.IncidentResponseData;
+import com.datadog.api.client.v2.model.IncidentRoleAssignmentRequest;
+import com.datadog.api.client.v2.model.IncidentRoleAssignmentResponse;
+import com.datadog.api.client.v2.model.IncidentRuleExecutionStatesResponse;
+import com.datadog.api.client.v2.model.IncidentSearchIncidentsExportRequest;
+import com.datadog.api.client.v2.model.IncidentSearchIncidentsIncludeType;
+import com.datadog.api.client.v2.model.IncidentSearchIncidentsSortOrder;
import com.datadog.api.client.v2.model.IncidentSearchResponse;
import com.datadog.api.client.v2.model.IncidentSearchResponseIncidentsData;
import com.datadog.api.client.v2.model.IncidentSearchSortOrder;
+import com.datadog.api.client.v2.model.IncidentStatusPageNoticeCreateRequest;
+import com.datadog.api.client.v2.model.IncidentStatusPageNoticeIntegrationResponse;
+import com.datadog.api.client.v2.model.IncidentStatusPageNoticeUpdateRequest;
+import com.datadog.api.client.v2.model.IncidentStatusPagesSuggestionResponse;
+import com.datadog.api.client.v2.model.IncidentStatuspageIncidentRequest;
+import com.datadog.api.client.v2.model.IncidentStatuspageIncidentResponse;
+import com.datadog.api.client.v2.model.IncidentStatuspagePreferencesResponse;
+import com.datadog.api.client.v2.model.IncidentStatuspageSubscriptionRequest;
+import com.datadog.api.client.v2.model.IncidentStatuspageSubscriptionResponse;
+import com.datadog.api.client.v2.model.IncidentStatuspageSubscriptionsResponse;
+import com.datadog.api.client.v2.model.IncidentTemplateVariablesResponse;
+import com.datadog.api.client.v2.model.IncidentTimelineEntriesResponse;
+import com.datadog.api.client.v2.model.IncidentTimelineEntryRequest;
+import com.datadog.api.client.v2.model.IncidentTimelineEntryResponse;
+import com.datadog.api.client.v2.model.IncidentTimelineThreadResponse;
import com.datadog.api.client.v2.model.IncidentTodoCreateRequest;
import com.datadog.api.client.v2.model.IncidentTodoListResponse;
import com.datadog.api.client.v2.model.IncidentTodoPatchRequest;
@@ -50,6 +95,9 @@
import com.datadog.api.client.v2.model.IncidentUserDefinedFieldListResponse;
import com.datadog.api.client.v2.model.IncidentUserDefinedFieldResponse;
import com.datadog.api.client.v2.model.IncidentUserDefinedFieldUpdateRequest;
+import com.datadog.api.client.v2.model.IncidentZoomConfigurationRequest;
+import com.datadog.api.client.v2.model.IncidentZoomConfigurationResponse;
+import com.datadog.api.client.v2.model.IncidentZoomIntegrationResponse;
import com.datadog.api.client.v2.model.IncidentsResponse;
import com.datadog.api.client.v2.model.PatchAttachmentRequest;
import com.datadog.api.client.v2.model.PatchIncidentNotificationTemplateRequest;
@@ -60,6 +108,7 @@
import com.datadog.api.client.v2.model.PutIncidentNotificationRuleRequest;
import jakarta.ws.rs.client.Invocation;
import jakarta.ws.rs.core.GenericType;
+import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
@@ -99,85 +148,34 @@ public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
- /** Manage optional parameters to createGlobalIncidentHandle. */
- public static class CreateGlobalIncidentHandleOptionalParameters {
- private String include;
-
- /**
- * Set include.
- *
- * @param include Comma-separated list of related resources to include in the response
- * (optional)
- * @return CreateGlobalIncidentHandleOptionalParameters
- */
- public CreateGlobalIncidentHandleOptionalParameters include(String include) {
- this.include = include;
- return this;
- }
- }
-
- /**
- * Create global incident handle.
- *
- *
See {@link #createGlobalIncidentHandleWithHttpInfo}.
- *
- * @param body (required)
- * @return IncidentHandleResponse
- * @throws ApiException if fails to make API call
- */
- public IncidentHandleResponse createGlobalIncidentHandle(IncidentHandleRequest body)
- throws ApiException {
- return createGlobalIncidentHandleWithHttpInfo(
- body, new CreateGlobalIncidentHandleOptionalParameters())
- .getData();
- }
-
- /**
- * Create global incident handle.
- *
- *
See {@link #createGlobalIncidentHandleWithHttpInfoAsync}.
- *
- * @param body (required)
- * @return CompletableFuture<IncidentHandleResponse>
- */
- public CompletableFuture createGlobalIncidentHandleAsync(
- IncidentHandleRequest body) {
- return createGlobalIncidentHandleWithHttpInfoAsync(
- body, new CreateGlobalIncidentHandleOptionalParameters())
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
/**
- * Create global incident handle.
+ * Batch create incident rule execution states.
*
- * See {@link #createGlobalIncidentHandleWithHttpInfo}.
+ *
See {@link #batchCreateIncidentRuleExecutionStatesWithHttpInfo}.
*
+ * @param incidentId The UUID of the incident. (required)
* @param body (required)
- * @param parameters Optional parameters for the request.
- * @return IncidentHandleResponse
+ * @return IncidentRuleExecutionStatesResponse
* @throws ApiException if fails to make API call
*/
- public IncidentHandleResponse createGlobalIncidentHandle(
- IncidentHandleRequest body, CreateGlobalIncidentHandleOptionalParameters parameters)
- throws ApiException {
- return createGlobalIncidentHandleWithHttpInfo(body, parameters).getData();
+ public IncidentRuleExecutionStatesResponse batchCreateIncidentRuleExecutionStates(
+ String incidentId, IncidentBatchCreateRuleExecutionStatesRequest body) throws ApiException {
+ return batchCreateIncidentRuleExecutionStatesWithHttpInfo(incidentId, body).getData();
}
/**
- * Create global incident handle.
+ * Batch create incident rule execution states.
*
- *
See {@link #createGlobalIncidentHandleWithHttpInfoAsync}.
+ *
See {@link #batchCreateIncidentRuleExecutionStatesWithHttpInfoAsync}.
*
+ * @param incidentId The UUID of the incident. (required)
* @param body (required)
- * @param parameters Optional parameters for the request.
- * @return CompletableFuture<IncidentHandleResponse>
+ * @return CompletableFuture<IncidentRuleExecutionStatesResponse>
*/
- public CompletableFuture createGlobalIncidentHandleAsync(
- IncidentHandleRequest body, CreateGlobalIncidentHandleOptionalParameters parameters) {
- return createGlobalIncidentHandleWithHttpInfoAsync(body, parameters)
+ public CompletableFuture
+ batchCreateIncidentRuleExecutionStatesAsync(
+ String incidentId, IncidentBatchCreateRuleExecutionStatesRequest body) {
+ return batchCreateIncidentRuleExecutionStatesWithHttpInfoAsync(incidentId, body)
.thenApply(
response -> {
return response.getData();
@@ -185,11 +183,11 @@ public CompletableFuture createGlobalIncidentHandleAsync
}
/**
- * Create a new global incident handle.
+ * Batch create rule execution states for a given incident.
*
+ * @param incidentId The UUID of the incident. (required)
* @param body (required)
- * @param parameters Optional parameters for the request.
- * @return ApiResponse<IncidentHandleResponse>
+ * @return ApiResponse<IncidentRuleExecutionStatesResponse>
* @throws ApiException if fails to make API call
* @http.response.details
*
@@ -197,14 +195,18 @@ public CompletableFuture createGlobalIncidentHandleAsync
* | Status Code | Description | Response Headers |
* | 201 | Created | - |
* | 400 | Bad Request | - |
+ * | 401 | Unauthorized | - |
+ * | 403 | Forbidden | - |
+ * | 404 | Not Found | - |
* | 429 | Too many requests | - |
*
*/
- public ApiResponse createGlobalIncidentHandleWithHttpInfo(
- IncidentHandleRequest body, CreateGlobalIncidentHandleOptionalParameters parameters)
- throws ApiException {
+ public ApiResponse
+ batchCreateIncidentRuleExecutionStatesWithHttpInfo(
+ String incidentId, IncidentBatchCreateRuleExecutionStatesRequest body)
+ throws ApiException {
// Check if unstable operation is enabled
- String operationId = "createGlobalIncidentHandle";
+ String operationId = "batchCreateIncidentRuleExecutionStates";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
@@ -212,29 +214,38 @@ public ApiResponse createGlobalIncidentHandleWithHttpInf
}
Object localVarPostBody = body;
+ // verify the required parameter 'incidentId' is set
+ if (incidentId == null) {
+ throw new ApiException(
+ 400,
+ "Missing the required parameter 'incidentId' when calling"
+ + " batchCreateIncidentRuleExecutionStates");
+ }
+
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(
- 400, "Missing the required parameter 'body' when calling createGlobalIncidentHandle");
+ 400,
+ "Missing the required parameter 'body' when calling"
+ + " batchCreateIncidentRuleExecutionStates");
}
- String include = parameters.include;
// create path and map variables
- String localVarPath = "/api/v2/incidents/config/global/incident-handles";
+ String localVarPath =
+ "/api/v2/incidents/{incident_id}/rule-execution-states/batch"
+ .replaceAll(
+ "\\{" + "incident_id" + "\\}", apiClient.escapeString(incidentId.toString()));
- List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", include));
-
Invocation.Builder builder =
apiClient.createBuilder(
- "v2.IncidentsApi.createGlobalIncidentHandle",
+ "v2.IncidentsApi.batchCreateIncidentRuleExecutionStates",
localVarPath,
- localVarQueryParams,
+ new ArrayList(),
localVarHeaderParams,
new HashMap(),
new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"POST",
builder,
@@ -243,64 +254,79 @@ public ApiResponse createGlobalIncidentHandleWithHttpInf
localVarPostBody,
new HashMap(),
false,
- new GenericType() {});
+ new GenericType() {});
}
/**
- * Create global incident handle.
+ * Batch create incident rule execution states.
*
- * See {@link #createGlobalIncidentHandleWithHttpInfo}.
+ *
See {@link #batchCreateIncidentRuleExecutionStatesWithHttpInfo}.
*
+ * @param incidentId The UUID of the incident. (required)
* @param body (required)
- * @param parameters Optional parameters for the request.
- * @return CompletableFuture<ApiResponse<IncidentHandleResponse>>
+ * @return CompletableFuture<ApiResponse<IncidentRuleExecutionStatesResponse>>
*/
- public CompletableFuture>
- createGlobalIncidentHandleWithHttpInfoAsync(
- IncidentHandleRequest body, CreateGlobalIncidentHandleOptionalParameters parameters) {
+ public CompletableFuture>
+ batchCreateIncidentRuleExecutionStatesWithHttpInfoAsync(
+ String incidentId, IncidentBatchCreateRuleExecutionStatesRequest body) {
// Check if unstable operation is enabled
- String operationId = "createGlobalIncidentHandle";
+ String operationId = "batchCreateIncidentRuleExecutionStates";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
- CompletableFuture> result = new CompletableFuture<>();
+ CompletableFuture> result =
+ new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = body;
+ // verify the required parameter 'incidentId' is set
+ if (incidentId == null) {
+ CompletableFuture> result =
+ new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(
+ 400,
+ "Missing the required parameter 'incidentId' when calling"
+ + " batchCreateIncidentRuleExecutionStates"));
+ return result;
+ }
+
// verify the required parameter 'body' is set
if (body == null) {
- CompletableFuture> result = new CompletableFuture<>();
+ CompletableFuture> result =
+ new CompletableFuture<>();
result.completeExceptionally(
new ApiException(
400,
- "Missing the required parameter 'body' when calling createGlobalIncidentHandle"));
+ "Missing the required parameter 'body' when calling"
+ + " batchCreateIncidentRuleExecutionStates"));
return result;
}
- String include = parameters.include;
// create path and map variables
- String localVarPath = "/api/v2/incidents/config/global/incident-handles";
+ String localVarPath =
+ "/api/v2/incidents/{incident_id}/rule-execution-states/batch"
+ .replaceAll(
+ "\\{" + "incident_id" + "\\}", apiClient.escapeString(incidentId.toString()));
- List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", include));
-
Invocation.Builder builder;
try {
builder =
apiClient.createBuilder(
- "v2.IncidentsApi.createGlobalIncidentHandle",
+ "v2.IncidentsApi.batchCreateIncidentRuleExecutionStates",
localVarPath,
- localVarQueryParams,
+ new ArrayList(),
localVarHeaderParams,
new HashMap(),
new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
} catch (ApiException ex) {
- CompletableFuture> result = new CompletableFuture<>();
+ CompletableFuture> result =
+ new CompletableFuture<>();
result.completeExceptionally(ex);
return result;
}
@@ -312,32 +338,37 @@ public ApiResponse createGlobalIncidentHandleWithHttpInf
localVarPostBody,
new HashMap(),
false,
- new GenericType() {});
+ new GenericType() {});
}
/**
- * Create an incident.
+ * Batch update incident rule execution states.
*
- * See {@link #createIncidentWithHttpInfo}.
+ *
See {@link #batchUpdateIncidentRuleExecutionStatesWithHttpInfo}.
*
- * @param body Incident payload. (required)
- * @return IncidentResponse
+ * @param incidentId The UUID of the incident. (required)
+ * @param body (required)
+ * @return IncidentRuleExecutionStatesResponse
* @throws ApiException if fails to make API call
*/
- public IncidentResponse createIncident(IncidentCreateRequest body) throws ApiException {
- return createIncidentWithHttpInfo(body).getData();
+ public IncidentRuleExecutionStatesResponse batchUpdateIncidentRuleExecutionStates(
+ String incidentId, IncidentBatchUpdateRuleExecutionStatesRequest body) throws ApiException {
+ return batchUpdateIncidentRuleExecutionStatesWithHttpInfo(incidentId, body).getData();
}
/**
- * Create an incident.
+ * Batch update incident rule execution states.
*
- *
See {@link #createIncidentWithHttpInfoAsync}.
+ *
See {@link #batchUpdateIncidentRuleExecutionStatesWithHttpInfoAsync}.
*
- * @param body Incident payload. (required)
- * @return CompletableFuture<IncidentResponse>
+ * @param incidentId The UUID of the incident. (required)
+ * @param body (required)
+ * @return CompletableFuture<IncidentRuleExecutionStatesResponse>
*/
- public CompletableFuture createIncidentAsync(IncidentCreateRequest body) {
- return createIncidentWithHttpInfoAsync(body)
+ public CompletableFuture
+ batchUpdateIncidentRuleExecutionStatesAsync(
+ String incidentId, IncidentBatchUpdateRuleExecutionStatesRequest body) {
+ return batchUpdateIncidentRuleExecutionStatesWithHttpInfoAsync(incidentId, body)
.thenApply(
response -> {
return response.getData();
@@ -345,16 +376,17 @@ public CompletableFuture createIncidentAsync(IncidentCreateReq
}
/**
- * Create an incident.
+ * Batch update rule execution states for a given incident.
*
- * @param body Incident payload. (required)
- * @return ApiResponse<IncidentResponse>
+ * @param incidentId The UUID of the incident. (required)
+ * @param body (required)
+ * @return ApiResponse<IncidentRuleExecutionStatesResponse>
* @throws ApiException if fails to make API call
* @http.response.details
*
* Response details
* | Status Code | Description | Response Headers |
- * | 201 | CREATED | - |
+ * | 200 | OK | - |
* | 400 | Bad Request | - |
* | 401 | Unauthorized | - |
* | 403 | Forbidden | - |
@@ -362,10 +394,12 @@ public CompletableFuture createIncidentAsync(IncidentCreateReq
* | 429 | Too many requests | - |
*
*/
- public ApiResponse createIncidentWithHttpInfo(IncidentCreateRequest body)
- throws ApiException {
+ public ApiResponse
+ batchUpdateIncidentRuleExecutionStatesWithHttpInfo(
+ String incidentId, IncidentBatchUpdateRuleExecutionStatesRequest body)
+ throws ApiException {
// Check if unstable operation is enabled
- String operationId = "createIncident";
+ String operationId = "batchUpdateIncidentRuleExecutionStates";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
@@ -373,19 +407,32 @@ public ApiResponse createIncidentWithHttpInfo(IncidentCreateRe
}
Object localVarPostBody = body;
+ // verify the required parameter 'incidentId' is set
+ if (incidentId == null) {
+ throw new ApiException(
+ 400,
+ "Missing the required parameter 'incidentId' when calling"
+ + " batchUpdateIncidentRuleExecutionStates");
+ }
+
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(
- 400, "Missing the required parameter 'body' when calling createIncident");
+ 400,
+ "Missing the required parameter 'body' when calling"
+ + " batchUpdateIncidentRuleExecutionStates");
}
// create path and map variables
- String localVarPath = "/api/v2/incidents";
+ String localVarPath =
+ "/api/v2/incidents/{incident_id}/rule-execution-states/batch"
+ .replaceAll(
+ "\\{" + "incident_id" + "\\}", apiClient.escapeString(incidentId.toString()));
Map localVarHeaderParams = new HashMap();
Invocation.Builder builder =
apiClient.createBuilder(
- "v2.IncidentsApi.createIncident",
+ "v2.IncidentsApi.batchUpdateIncidentRuleExecutionStates",
localVarPath,
new ArrayList(),
localVarHeaderParams,
@@ -393,48 +440,69 @@ public ApiResponse createIncidentWithHttpInfo(IncidentCreateRe
new String[] {"application/json"},
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
- "POST",
+ "PUT",
builder,
localVarHeaderParams,
new String[] {"application/json"},
localVarPostBody,
new HashMap(),
false,
- new GenericType() {});
+ new GenericType() {});
}
/**
- * Create an incident.
+ * Batch update incident rule execution states.
*
- * See {@link #createIncidentWithHttpInfo}.
+ *
See {@link #batchUpdateIncidentRuleExecutionStatesWithHttpInfo}.
*
- * @param body Incident payload. (required)
- * @return CompletableFuture<ApiResponse<IncidentResponse>>
+ * @param incidentId The UUID of the incident. (required)
+ * @param body (required)
+ * @return CompletableFuture<ApiResponse<IncidentRuleExecutionStatesResponse>>
*/
- public CompletableFuture> createIncidentWithHttpInfoAsync(
- IncidentCreateRequest body) {
+ public CompletableFuture>
+ batchUpdateIncidentRuleExecutionStatesWithHttpInfoAsync(
+ String incidentId, IncidentBatchUpdateRuleExecutionStatesRequest body) {
// Check if unstable operation is enabled
- String operationId = "createIncident";
+ String operationId = "batchUpdateIncidentRuleExecutionStates";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
- CompletableFuture> result = new CompletableFuture<>();
+ CompletableFuture> result =
+ new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = body;
+ // verify the required parameter 'incidentId' is set
+ if (incidentId == null) {
+ CompletableFuture> result =
+ new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(
+ 400,
+ "Missing the required parameter 'incidentId' when calling"
+ + " batchUpdateIncidentRuleExecutionStates"));
+ return result;
+ }
+
// verify the required parameter 'body' is set
if (body == null) {
- CompletableFuture> result = new CompletableFuture<>();
+ CompletableFuture> result =
+ new CompletableFuture<>();
result.completeExceptionally(
new ApiException(
- 400, "Missing the required parameter 'body' when calling createIncident"));
+ 400,
+ "Missing the required parameter 'body' when calling"
+ + " batchUpdateIncidentRuleExecutionStates"));
return result;
}
// create path and map variables
- String localVarPath = "/api/v2/incidents";
+ String localVarPath =
+ "/api/v2/incidents/{incident_id}/rule-execution-states/batch"
+ .replaceAll(
+ "\\{" + "incident_id" + "\\}", apiClient.escapeString(incidentId.toString()));
Map localVarHeaderParams = new HashMap();
@@ -442,7 +510,7 @@ public CompletableFuture> createIncidentWithHttpIn
try {
builder =
apiClient.createBuilder(
- "v2.IncidentsApi.createIncident",
+ "v2.IncidentsApi.batchUpdateIncidentRuleExecutionStates",
localVarPath,
new ArrayList(),
localVarHeaderParams,
@@ -450,68 +518,67 @@ public CompletableFuture> createIncidentWithHttpIn
new String[] {"application/json"},
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
} catch (ApiException ex) {
- CompletableFuture> result = new CompletableFuture<>();
+ CompletableFuture> result =
+ new CompletableFuture<>();
result.completeExceptionally(ex);
return result;
}
return apiClient.invokeAPIAsync(
- "POST",
+ "PUT",
builder,
localVarHeaderParams,
new String[] {"application/json"},
localVarPostBody,
new HashMap(),
false,
- new GenericType() {});
+ new GenericType() {});
}
- /** Manage optional parameters to createIncidentAttachment. */
- public static class CreateIncidentAttachmentOptionalParameters {
+ /** Manage optional parameters to createGlobalIncidentHandle. */
+ public static class CreateGlobalIncidentHandleOptionalParameters {
private String include;
/**
* Set include.
*
- * @param include Resource to include in the response. Supported value:
- * last_modified_by_user. (optional)
- * @return CreateIncidentAttachmentOptionalParameters
+ * @param include Comma-separated list of related resources to include in the response
+ * (optional)
+ * @return CreateGlobalIncidentHandleOptionalParameters
*/
- public CreateIncidentAttachmentOptionalParameters include(String include) {
+ public CreateGlobalIncidentHandleOptionalParameters include(String include) {
this.include = include;
return this;
}
}
/**
- * Create incident attachment.
+ * Create global incident handle.
*
- * See {@link #createIncidentAttachmentWithHttpInfo}.
+ *
See {@link #createGlobalIncidentHandleWithHttpInfo}.
*
- * @param incidentId The UUID of the incident. (required)
* @param body (required)
- * @return Attachment
+ * @return IncidentHandleResponse
* @throws ApiException if fails to make API call
*/
- public Attachment createIncidentAttachment(String incidentId, CreateAttachmentRequest body)
+ public IncidentHandleResponse createGlobalIncidentHandle(IncidentHandleRequest body)
throws ApiException {
- return createIncidentAttachmentWithHttpInfo(
- incidentId, body, new CreateIncidentAttachmentOptionalParameters())
+ return createGlobalIncidentHandleWithHttpInfo(
+ body, new CreateGlobalIncidentHandleOptionalParameters())
.getData();
}
/**
- * Create incident attachment.
+ * Create global incident handle.
*
- *
See {@link #createIncidentAttachmentWithHttpInfoAsync}.
+ *
See {@link #createGlobalIncidentHandleWithHttpInfoAsync}.
*
- * @param incidentId The UUID of the incident. (required)
* @param body (required)
- * @return CompletableFuture<Attachment>
+ * @return CompletableFuture<IncidentHandleResponse>
*/
- public CompletableFuture createIncidentAttachmentAsync(
- String incidentId, CreateAttachmentRequest body) {
- return createIncidentAttachmentWithHttpInfoAsync(
- incidentId, body, new CreateIncidentAttachmentOptionalParameters())
+ public CompletableFuture createGlobalIncidentHandleAsync(
+ IncidentHandleRequest body) {
+ return createGlobalIncidentHandleWithHttpInfoAsync(
+ body, new CreateGlobalIncidentHandleOptionalParameters())
.thenApply(
response -> {
return response.getData();
@@ -519,39 +586,33 @@ incidentId, body, new CreateIncidentAttachmentOptionalParameters())
}
/**
- * Create incident attachment.
+ * Create global incident handle.
*
- * See {@link #createIncidentAttachmentWithHttpInfo}.
+ *
See {@link #createGlobalIncidentHandleWithHttpInfo}.
*
- * @param incidentId The UUID of the incident. (required)
* @param body (required)
* @param parameters Optional parameters for the request.
- * @return Attachment
+ * @return IncidentHandleResponse
* @throws ApiException if fails to make API call
*/
- public Attachment createIncidentAttachment(
- String incidentId,
- CreateAttachmentRequest body,
- CreateIncidentAttachmentOptionalParameters parameters)
+ public IncidentHandleResponse createGlobalIncidentHandle(
+ IncidentHandleRequest body, CreateGlobalIncidentHandleOptionalParameters parameters)
throws ApiException {
- return createIncidentAttachmentWithHttpInfo(incidentId, body, parameters).getData();
+ return createGlobalIncidentHandleWithHttpInfo(body, parameters).getData();
}
/**
- * Create incident attachment.
+ * Create global incident handle.
*
- *
See {@link #createIncidentAttachmentWithHttpInfoAsync}.
+ *
See {@link #createGlobalIncidentHandleWithHttpInfoAsync}.
*
- * @param incidentId The UUID of the incident. (required)
* @param body (required)
* @param parameters Optional parameters for the request.
- * @return CompletableFuture<Attachment>
+ * @return CompletableFuture<IncidentHandleResponse>
*/
- public CompletableFuture createIncidentAttachmentAsync(
- String incidentId,
- CreateAttachmentRequest body,
- CreateIncidentAttachmentOptionalParameters parameters) {
- return createIncidentAttachmentWithHttpInfoAsync(incidentId, body, parameters)
+ public CompletableFuture createGlobalIncidentHandleAsync(
+ IncidentHandleRequest body, CreateGlobalIncidentHandleOptionalParameters parameters) {
+ return createGlobalIncidentHandleWithHttpInfoAsync(body, parameters)
.thenApply(
response -> {
return response.getData();
@@ -559,12 +620,11 @@ public CompletableFuture createIncidentAttachmentAsync(
}
/**
- * Create an incident attachment.
+ * Create a new global incident handle.
*
- * @param incidentId The UUID of the incident. (required)
* @param body (required)
* @param parameters Optional parameters for the request.
- * @return ApiResponse<Attachment>
+ * @return ApiResponse<IncidentHandleResponse>
* @throws ApiException if fails to make API call
* @http.response.details
*
@@ -572,17 +632,14 @@ public CompletableFuture createIncidentAttachmentAsync(
* | Status Code | Description | Response Headers |
* | 201 | Created | - |
* | 400 | Bad Request | - |
- * | 403 | Forbidden | - |
* | 429 | Too many requests | - |
*
*/
- public ApiResponse createIncidentAttachmentWithHttpInfo(
- String incidentId,
- CreateAttachmentRequest body,
- CreateIncidentAttachmentOptionalParameters parameters)
+ public ApiResponse createGlobalIncidentHandleWithHttpInfo(
+ IncidentHandleRequest body, CreateGlobalIncidentHandleOptionalParameters parameters)
throws ApiException {
// Check if unstable operation is enabled
- String operationId = "createIncidentAttachment";
+ String operationId = "createGlobalIncidentHandle";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
@@ -590,23 +647,14 @@ public ApiResponse createIncidentAttachmentWithHttpInfo(
}
Object localVarPostBody = body;
- // verify the required parameter 'incidentId' is set
- if (incidentId == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'incidentId' when calling createIncidentAttachment");
- }
-
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(
- 400, "Missing the required parameter 'body' when calling createIncidentAttachment");
+ 400, "Missing the required parameter 'body' when calling createGlobalIncidentHandle");
}
String include = parameters.include;
// create path and map variables
- String localVarPath =
- "/api/v2/incidents/{incident_id}/attachments"
- .replaceAll(
- "\\{" + "incident_id" + "\\}", apiClient.escapeString(incidentId.toString()));
+ String localVarPath = "/api/v2/incidents/config/global/incident-handles";
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
@@ -615,13 +663,13 @@ public ApiResponse createIncidentAttachmentWithHttpInfo(
Invocation.Builder builder =
apiClient.createBuilder(
- "v2.IncidentsApi.createIncidentAttachment",
+ "v2.IncidentsApi.createGlobalIncidentHandle",
localVarPath,
localVarQueryParams,
localVarHeaderParams,
new HashMap(),
new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ new String[] {"apiKeyAuth", "appKeyAuth"});
return apiClient.invokeAPI(
"POST",
builder,
@@ -630,59 +678,45 @@ public ApiResponse createIncidentAttachmentWithHttpInfo(
localVarPostBody,
new HashMap(),
false,
- new GenericType() {});
+ new GenericType() {});
}
/**
- * Create incident attachment.
+ * Create global incident handle.
*
- * See {@link #createIncidentAttachmentWithHttpInfo}.
+ *
See {@link #createGlobalIncidentHandleWithHttpInfo}.
*
- * @param incidentId The UUID of the incident. (required)
* @param body (required)
* @param parameters Optional parameters for the request.
- * @return CompletableFuture<ApiResponse<Attachment>>
+ * @return CompletableFuture<ApiResponse<IncidentHandleResponse>>
*/
- public CompletableFuture> createIncidentAttachmentWithHttpInfoAsync(
- String incidentId,
- CreateAttachmentRequest body,
- CreateIncidentAttachmentOptionalParameters parameters) {
+ public CompletableFuture>
+ createGlobalIncidentHandleWithHttpInfoAsync(
+ IncidentHandleRequest body, CreateGlobalIncidentHandleOptionalParameters parameters) {
// Check if unstable operation is enabled
- String operationId = "createIncidentAttachment";
+ String operationId = "createGlobalIncidentHandle";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
- CompletableFuture> result = new CompletableFuture<>();
+ CompletableFuture> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = body;
- // verify the required parameter 'incidentId' is set
- if (incidentId == null) {
- CompletableFuture> result = new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400,
- "Missing the required parameter 'incidentId' when calling createIncidentAttachment"));
- return result;
- }
-
// verify the required parameter 'body' is set
if (body == null) {
- CompletableFuture> result = new CompletableFuture<>();
+ CompletableFuture> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(
- 400, "Missing the required parameter 'body' when calling createIncidentAttachment"));
+ 400,
+ "Missing the required parameter 'body' when calling createGlobalIncidentHandle"));
return result;
}
String include = parameters.include;
// create path and map variables
- String localVarPath =
- "/api/v2/incidents/{incident_id}/attachments"
- .replaceAll(
- "\\{" + "incident_id" + "\\}", apiClient.escapeString(incidentId.toString()));
+ String localVarPath = "/api/v2/incidents/config/global/incident-handles";
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
@@ -693,15 +727,15 @@ public CompletableFuture> createIncidentAttachmentWithHt
try {
builder =
apiClient.createBuilder(
- "v2.IncidentsApi.createIncidentAttachment",
+ "v2.IncidentsApi.createGlobalIncidentHandle",
localVarPath,
localVarQueryParams,
localVarHeaderParams,
new HashMap(),
new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ new String[] {"apiKeyAuth", "appKeyAuth"});
} catch (ApiException ex) {
- CompletableFuture> result = new CompletableFuture<>();
+ CompletableFuture> result = new CompletableFuture<>();
result.completeExceptionally(ex);
return result;
}
@@ -713,97 +747,32 @@ public CompletableFuture> createIncidentAttachmentWithHt
localVarPostBody,
new HashMap(),
false,
- new GenericType() {});
- }
-
- /** Manage optional parameters to createIncidentImpact. */
- public static class CreateIncidentImpactOptionalParameters {
- private List include;
-
- /**
- * Set include.
- *
- * @param include Specifies which related resources should be included in the response.
- * (optional)
- * @return CreateIncidentImpactOptionalParameters
- */
- public CreateIncidentImpactOptionalParameters include(
- List include) {
- this.include = include;
- return this;
- }
- }
-
- /**
- * Create an incident impact.
- *
- * See {@link #createIncidentImpactWithHttpInfo}.
- *
- * @param incidentId The UUID of the incident. (required)
- * @param body Incident impact payload. (required)
- * @return IncidentImpactResponse
- * @throws ApiException if fails to make API call
- */
- public IncidentImpactResponse createIncidentImpact(
- String incidentId, IncidentImpactCreateRequest body) throws ApiException {
- return createIncidentImpactWithHttpInfo(
- incidentId, body, new CreateIncidentImpactOptionalParameters())
- .getData();
- }
-
- /**
- * Create an incident impact.
- *
- *
See {@link #createIncidentImpactWithHttpInfoAsync}.
- *
- * @param incidentId The UUID of the incident. (required)
- * @param body Incident impact payload. (required)
- * @return CompletableFuture<IncidentImpactResponse>
- */
- public CompletableFuture createIncidentImpactAsync(
- String incidentId, IncidentImpactCreateRequest body) {
- return createIncidentImpactWithHttpInfoAsync(
- incidentId, body, new CreateIncidentImpactOptionalParameters())
- .thenApply(
- response -> {
- return response.getData();
- });
+ new GenericType() {});
}
/**
- * Create an incident impact.
+ * Create an incident.
*
- * See {@link #createIncidentImpactWithHttpInfo}.
+ *
See {@link #createIncidentWithHttpInfo}.
*
- * @param incidentId The UUID of the incident. (required)
- * @param body Incident impact payload. (required)
- * @param parameters Optional parameters for the request.
- * @return IncidentImpactResponse
+ * @param body Incident payload. (required)
+ * @return IncidentResponse
* @throws ApiException if fails to make API call
*/
- public IncidentImpactResponse createIncidentImpact(
- String incidentId,
- IncidentImpactCreateRequest body,
- CreateIncidentImpactOptionalParameters parameters)
- throws ApiException {
- return createIncidentImpactWithHttpInfo(incidentId, body, parameters).getData();
+ public IncidentResponse createIncident(IncidentCreateRequest body) throws ApiException {
+ return createIncidentWithHttpInfo(body).getData();
}
/**
- * Create an incident impact.
+ * Create an incident.
*
- *
See {@link #createIncidentImpactWithHttpInfoAsync}.
+ *
See {@link #createIncidentWithHttpInfoAsync}.
*
- * @param incidentId The UUID of the incident. (required)
- * @param body Incident impact payload. (required)
- * @param parameters Optional parameters for the request.
- * @return CompletableFuture<IncidentImpactResponse>
+ * @param body Incident payload. (required)
+ * @return CompletableFuture<IncidentResponse>
*/
- public CompletableFuture createIncidentImpactAsync(
- String incidentId,
- IncidentImpactCreateRequest body,
- CreateIncidentImpactOptionalParameters parameters) {
- return createIncidentImpactWithHttpInfoAsync(incidentId, body, parameters)
+ public CompletableFuture createIncidentAsync(IncidentCreateRequest body) {
+ return createIncidentWithHttpInfoAsync(body)
.thenApply(
response -> {
return response.getData();
@@ -811,12 +780,10 @@ public CompletableFuture createIncidentImpactAsync(
}
/**
- * Create an impact for an incident.
+ * Create an incident.
*
- * @param incidentId The UUID of the incident. (required)
- * @param body Incident impact payload. (required)
- * @param parameters Optional parameters for the request.
- * @return ApiResponse<IncidentImpactResponse>
+ * @param body Incident payload. (required)
+ * @return ApiResponse<IncidentResponse>
* @throws ApiException if fails to make API call
* @http.response.details
*
@@ -830,41 +797,32 @@ public CompletableFuture createIncidentImpactAsync(
* | 429 | Too many requests | - |
*
*/
- public ApiResponse createIncidentImpactWithHttpInfo(
- String incidentId,
- IncidentImpactCreateRequest body,
- CreateIncidentImpactOptionalParameters parameters)
+ public ApiResponse createIncidentWithHttpInfo(IncidentCreateRequest body)
throws ApiException {
- Object localVarPostBody = body;
-
- // verify the required parameter 'incidentId' is set
- if (incidentId == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'incidentId' when calling createIncidentImpact");
+ // Check if unstable operation is enabled
+ String operationId = "createIncident";
+ if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
+ apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
+ } else {
+ throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
+ Object localVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(
- 400, "Missing the required parameter 'body' when calling createIncidentImpact");
+ 400, "Missing the required parameter 'body' when calling createIncident");
}
- List include = parameters.include;
// create path and map variables
- String localVarPath =
- "/api/v2/incidents/{incident_id}/impacts"
- .replaceAll(
- "\\{" + "incident_id" + "\\}", apiClient.escapeString(incidentId.toString()));
+ String localVarPath = "/api/v2/incidents";
- List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
- localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "include", include));
-
Invocation.Builder builder =
apiClient.createBuilder(
- "v2.IncidentsApi.createIncidentImpact",
+ "v2.IncidentsApi.createIncident",
localVarPath,
- localVarQueryParams,
+ new ArrayList(),
localVarHeaderParams,
new HashMap(),
new String[] {"application/json"},
@@ -877,69 +835,57 @@ public ApiResponse createIncidentImpactWithHttpInfo(
localVarPostBody,
new HashMap(),
false,
- new GenericType() {});
+ new GenericType() {});
}
/**
- * Create an incident impact.
+ * Create an incident.
*
- * See {@link #createIncidentImpactWithHttpInfo}.
+ *
See {@link #createIncidentWithHttpInfo}.
*
- * @param incidentId The UUID of the incident. (required)
- * @param body Incident impact payload. (required)
- * @param parameters Optional parameters for the request.
- * @return CompletableFuture<ApiResponse<IncidentImpactResponse>>
- */
- public CompletableFuture>
- createIncidentImpactWithHttpInfoAsync(
- String incidentId,
- IncidentImpactCreateRequest body,
- CreateIncidentImpactOptionalParameters parameters) {
- Object localVarPostBody = body;
-
- // verify the required parameter 'incidentId' is set
- if (incidentId == null) {
- CompletableFuture> result = new CompletableFuture<>();
+ * @param body Incident payload. (required)
+ * @return CompletableFuture<ApiResponse<IncidentResponse>>
+ */
+ public CompletableFuture> createIncidentWithHttpInfoAsync(
+ IncidentCreateRequest body) {
+ // Check if unstable operation is enabled
+ String operationId = "createIncident";
+ if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
+ apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
+ } else {
+ CompletableFuture> result = new CompletableFuture<>();
result.completeExceptionally(
- new ApiException(
- 400,
- "Missing the required parameter 'incidentId' when calling createIncidentImpact"));
+ new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
+ Object localVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
- CompletableFuture> result = new CompletableFuture<>();
+ CompletableFuture> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(
- 400, "Missing the required parameter 'body' when calling createIncidentImpact"));
+ 400, "Missing the required parameter 'body' when calling createIncident"));
return result;
}
- List include = parameters.include;
// create path and map variables
- String localVarPath =
- "/api/v2/incidents/{incident_id}/impacts"
- .replaceAll(
- "\\{" + "incident_id" + "\\}", apiClient.escapeString(incidentId.toString()));
+ String localVarPath = "/api/v2/incidents";
- List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
- localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "include", include));
-
Invocation.Builder builder;
try {
builder =
apiClient.createBuilder(
- "v2.IncidentsApi.createIncidentImpact",
+ "v2.IncidentsApi.createIncident",
localVarPath,
- localVarQueryParams,
+ new ArrayList(),
localVarHeaderParams,
new HashMap(),
new String[] {"application/json"},
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
} catch (ApiException ex) {
- CompletableFuture> result = new CompletableFuture<>();
+ CompletableFuture> result = new CompletableFuture<>();
result.completeExceptionally(ex);
return result;
}
@@ -951,36 +897,56 @@ public ApiResponse createIncidentImpactWithHttpInfo(
localVarPostBody,
new HashMap(),
false,
- new GenericType() {});
+ new GenericType() {});
+ }
+
+ /** Manage optional parameters to createIncidentAttachment. */
+ public static class CreateIncidentAttachmentOptionalParameters {
+ private String include;
+
+ /**
+ * Set include.
+ *
+ * @param include Resource to include in the response. Supported value:
+ * last_modified_by_user. (optional)
+ * @return CreateIncidentAttachmentOptionalParameters
+ */
+ public CreateIncidentAttachmentOptionalParameters include(String include) {
+ this.include = include;
+ return this;
+ }
}
/**
- * Create an incident integration metadata.
+ * Create incident attachment.
*
- * See {@link #createIncidentIntegrationWithHttpInfo}.
+ *
See {@link #createIncidentAttachmentWithHttpInfo}.
*
* @param incidentId The UUID of the incident. (required)
- * @param body Incident integration metadata payload. (required)
- * @return IncidentIntegrationMetadataResponse
+ * @param body (required)
+ * @return Attachment
* @throws ApiException if fails to make API call
*/
- public IncidentIntegrationMetadataResponse createIncidentIntegration(
- String incidentId, IncidentIntegrationMetadataCreateRequest body) throws ApiException {
- return createIncidentIntegrationWithHttpInfo(incidentId, body).getData();
+ public Attachment createIncidentAttachment(String incidentId, CreateAttachmentRequest body)
+ throws ApiException {
+ return createIncidentAttachmentWithHttpInfo(
+ incidentId, body, new CreateIncidentAttachmentOptionalParameters())
+ .getData();
}
/**
- * Create an incident integration metadata.
+ * Create incident attachment.
*
- *
See {@link #createIncidentIntegrationWithHttpInfoAsync}.
+ *
See {@link #createIncidentAttachmentWithHttpInfoAsync}.
*
* @param incidentId The UUID of the incident. (required)
- * @param body Incident integration metadata payload. (required)
- * @return CompletableFuture<IncidentIntegrationMetadataResponse>
+ * @param body (required)
+ * @return CompletableFuture<Attachment>
*/
- public CompletableFuture createIncidentIntegrationAsync(
- String incidentId, IncidentIntegrationMetadataCreateRequest body) {
- return createIncidentIntegrationWithHttpInfoAsync(incidentId, body)
+ public CompletableFuture createIncidentAttachmentAsync(
+ String incidentId, CreateAttachmentRequest body) {
+ return createIncidentAttachmentWithHttpInfoAsync(
+ incidentId, body, new CreateIncidentAttachmentOptionalParameters())
.thenApply(
response -> {
return response.getData();
@@ -988,28 +954,70 @@ public CompletableFuture createIncidentInte
}
/**
- * Create an incident integration metadata.
+ * Create incident attachment.
+ *
+ * See {@link #createIncidentAttachmentWithHttpInfo}.
*
* @param incidentId The UUID of the incident. (required)
- * @param body Incident integration metadata payload. (required)
- * @return ApiResponse<IncidentIntegrationMetadataResponse>
+ * @param body (required)
+ * @param parameters Optional parameters for the request.
+ * @return Attachment
+ * @throws ApiException if fails to make API call
+ */
+ public Attachment createIncidentAttachment(
+ String incidentId,
+ CreateAttachmentRequest body,
+ CreateIncidentAttachmentOptionalParameters parameters)
+ throws ApiException {
+ return createIncidentAttachmentWithHttpInfo(incidentId, body, parameters).getData();
+ }
+
+ /**
+ * Create incident attachment.
+ *
+ *
See {@link #createIncidentAttachmentWithHttpInfoAsync}.
+ *
+ * @param incidentId The UUID of the incident. (required)
+ * @param body (required)
+ * @param parameters Optional parameters for the request.
+ * @return CompletableFuture<Attachment>
+ */
+ public CompletableFuture createIncidentAttachmentAsync(
+ String incidentId,
+ CreateAttachmentRequest body,
+ CreateIncidentAttachmentOptionalParameters parameters) {
+ return createIncidentAttachmentWithHttpInfoAsync(incidentId, body, parameters)
+ .thenApply(
+ response -> {
+ return response.getData();
+ });
+ }
+
+ /**
+ * Create an incident attachment.
+ *
+ * @param incidentId The UUID of the incident. (required)
+ * @param body (required)
+ * @param parameters Optional parameters for the request.
+ * @return ApiResponse<Attachment>
* @throws ApiException if fails to make API call
* @http.response.details
*
* Response details
* | Status Code | Description | Response Headers |
- * | 201 | CREATED | - |
+ * | 201 | Created | - |
* | 400 | Bad Request | - |
- * | 401 | Unauthorized | - |
* | 403 | Forbidden | - |
- * | 404 | Not Found | - |
* | 429 | Too many requests | - |
*
*/
- public ApiResponse createIncidentIntegrationWithHttpInfo(
- String incidentId, IncidentIntegrationMetadataCreateRequest body) throws ApiException {
+ public ApiResponse createIncidentAttachmentWithHttpInfo(
+ String incidentId,
+ CreateAttachmentRequest body,
+ CreateIncidentAttachmentOptionalParameters parameters)
+ throws ApiException {
// Check if unstable operation is enabled
- String operationId = "createIncidentIntegration";
+ String operationId = "createIncidentAttachment";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
@@ -1020,28 +1028,31 @@ public ApiResponse createIncidentIntegratio
// verify the required parameter 'incidentId' is set
if (incidentId == null) {
throw new ApiException(
- 400,
- "Missing the required parameter 'incidentId' when calling createIncidentIntegration");
+ 400, "Missing the required parameter 'incidentId' when calling createIncidentAttachment");
}
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(
- 400, "Missing the required parameter 'body' when calling createIncidentIntegration");
+ 400, "Missing the required parameter 'body' when calling createIncidentAttachment");
}
+ String include = parameters.include;
// create path and map variables
String localVarPath =
- "/api/v2/incidents/{incident_id}/relationships/integrations"
+ "/api/v2/incidents/{incident_id}/attachments"
.replaceAll(
"\\{" + "incident_id" + "\\}", apiClient.escapeString(incidentId.toString()));
+ List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", include));
+
Invocation.Builder builder =
apiClient.createBuilder(
- "v2.IncidentsApi.createIncidentIntegration",
+ "v2.IncidentsApi.createIncidentAttachment",
localVarPath,
- new ArrayList(),
+ localVarQueryParams,
localVarHeaderParams,
new HashMap(),
new String[] {"application/json"},
@@ -1054,28 +1065,29 @@ public ApiResponse createIncidentIntegratio
localVarPostBody,
new HashMap(),
false,
- new GenericType() {});
+ new GenericType() {});
}
/**
- * Create an incident integration metadata.
+ * Create incident attachment.
*
- * See {@link #createIncidentIntegrationWithHttpInfo}.
+ *
See {@link #createIncidentAttachmentWithHttpInfo}.
*
* @param incidentId The UUID of the incident. (required)
- * @param body Incident integration metadata payload. (required)
- * @return CompletableFuture<ApiResponse<IncidentIntegrationMetadataResponse>>
+ * @param body (required)
+ * @param parameters Optional parameters for the request.
+ * @return CompletableFuture<ApiResponse<Attachment>>
*/
- public CompletableFuture>
- createIncidentIntegrationWithHttpInfoAsync(
- String incidentId, IncidentIntegrationMetadataCreateRequest body) {
+ public CompletableFuture> createIncidentAttachmentWithHttpInfoAsync(
+ String incidentId,
+ CreateAttachmentRequest body,
+ CreateIncidentAttachmentOptionalParameters parameters) {
// Check if unstable operation is enabled
- String operationId = "createIncidentIntegration";
+ String operationId = "createIncidentAttachment";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
- CompletableFuture> result =
- new CompletableFuture<>();
+ CompletableFuture> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
@@ -1084,47 +1096,47 @@ public ApiResponse createIncidentIntegratio
// verify the required parameter 'incidentId' is set
if (incidentId == null) {
- CompletableFuture> result =
- new CompletableFuture<>();
+ CompletableFuture> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(
400,
- "Missing the required parameter 'incidentId' when calling"
- + " createIncidentIntegration"));
+ "Missing the required parameter 'incidentId' when calling createIncidentAttachment"));
return result;
}
// verify the required parameter 'body' is set
if (body == null) {
- CompletableFuture> result =
- new CompletableFuture<>();
+ CompletableFuture> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(
- 400, "Missing the required parameter 'body' when calling createIncidentIntegration"));
+ 400, "Missing the required parameter 'body' when calling createIncidentAttachment"));
return result;
}
+ String include = parameters.include;
// create path and map variables
String localVarPath =
- "/api/v2/incidents/{incident_id}/relationships/integrations"
+ "/api/v2/incidents/{incident_id}/attachments"
.replaceAll(
"\\{" + "incident_id" + "\\}", apiClient.escapeString(incidentId.toString()));
+ List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", include));
+
Invocation.Builder builder;
try {
builder =
apiClient.createBuilder(
- "v2.IncidentsApi.createIncidentIntegration",
+ "v2.IncidentsApi.createIncidentAttachment",
localVarPath,
- new ArrayList(),
+ localVarQueryParams,
localVarHeaderParams,
new HashMap(),
new String[] {"application/json"},
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
} catch (ApiException ex) {
- CompletableFuture> result =
- new CompletableFuture<>();
+ CompletableFuture> result = new CompletableFuture<>();
result.completeExceptionally(ex);
return result;
}
@@ -1136,34 +1148,36 @@ public ApiResponse createIncidentIntegratio
localVarPostBody,
new HashMap(),
false,
- new GenericType() {});
+ new GenericType() {});
}
/**
- * Create an incident notification rule.
+ * Create an incident communication.
*
- * See {@link #createIncidentNotificationRuleWithHttpInfo}.
+ *
See {@link #createIncidentCommunicationWithHttpInfo}.
*
+ * @param incidentId The UUID of the incident. (required)
* @param body (required)
- * @return IncidentNotificationRule
+ * @return IncidentCommunicationResponse
* @throws ApiException if fails to make API call
*/
- public IncidentNotificationRule createIncidentNotificationRule(
- CreateIncidentNotificationRuleRequest body) throws ApiException {
- return createIncidentNotificationRuleWithHttpInfo(body).getData();
+ public IncidentCommunicationResponse createIncidentCommunication(
+ String incidentId, IncidentCommunicationRequest body) throws ApiException {
+ return createIncidentCommunicationWithHttpInfo(incidentId, body).getData();
}
/**
- * Create an incident notification rule.
+ * Create an incident communication.
*
- *
See {@link #createIncidentNotificationRuleWithHttpInfoAsync}.
+ *
See {@link #createIncidentCommunicationWithHttpInfoAsync}.
*
+ * @param incidentId The UUID of the incident. (required)
* @param body (required)
- * @return CompletableFuture<IncidentNotificationRule>
+ * @return CompletableFuture<IncidentCommunicationResponse>
*/
- public CompletableFuture createIncidentNotificationRuleAsync(
- CreateIncidentNotificationRuleRequest body) {
- return createIncidentNotificationRuleWithHttpInfoAsync(body)
+ public CompletableFuture createIncidentCommunicationAsync(
+ String incidentId, IncidentCommunicationRequest body) {
+ return createIncidentCommunicationWithHttpInfoAsync(incidentId, body)
.thenApply(
response -> {
return response.getData();
@@ -1171,10 +1185,11 @@ public CompletableFuture createIncidentNotificationRul
}
/**
- * Creates a new notification rule.
+ * Create a new communication for a given incident.
*
+ * @param incidentId The UUID of the incident. (required)
* @param body (required)
- * @return ApiResponse<IncidentNotificationRule>
+ * @return ApiResponse<IncidentCommunicationResponse>
* @throws ApiException if fails to make API call
* @http.response.details
*
@@ -1188,10 +1203,10 @@ public CompletableFuture createIncidentNotificationRul
* | 429 | Too many requests | - |
*
*/
- public ApiResponse createIncidentNotificationRuleWithHttpInfo(
- CreateIncidentNotificationRuleRequest body) throws ApiException {
+ public ApiResponse createIncidentCommunicationWithHttpInfo(
+ String incidentId, IncidentCommunicationRequest body) throws ApiException {
// Check if unstable operation is enabled
- String operationId = "createIncidentNotificationRule";
+ String operationId = "createIncidentCommunication";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
@@ -1199,19 +1214,29 @@ public ApiResponse createIncidentNotificationRuleWithH
}
Object localVarPostBody = body;
+ // verify the required parameter 'incidentId' is set
+ if (incidentId == null) {
+ throw new ApiException(
+ 400,
+ "Missing the required parameter 'incidentId' when calling createIncidentCommunication");
+ }
+
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(
- 400, "Missing the required parameter 'body' when calling createIncidentNotificationRule");
+ 400, "Missing the required parameter 'body' when calling createIncidentCommunication");
}
// create path and map variables
- String localVarPath = "/api/v2/incidents/config/notification-rules";
+ String localVarPath =
+ "/api/v2/incidents/{incident_id}/communications"
+ .replaceAll(
+ "\\{" + "incident_id" + "\\}", apiClient.escapeString(incidentId.toString()));
Map localVarHeaderParams = new HashMap();
Invocation.Builder builder =
apiClient.createBuilder(
- "v2.IncidentsApi.createIncidentNotificationRule",
+ "v2.IncidentsApi.createIncidentCommunication",
localVarPath,
new ArrayList(),
localVarHeaderParams,
@@ -1226,42 +1251,61 @@ public ApiResponse createIncidentNotificationRuleWithH
localVarPostBody,
new HashMap(),
false,
- new GenericType() {});
+ new GenericType() {});
}
/**
- * Create an incident notification rule.
+ * Create an incident communication.
*
- * See {@link #createIncidentNotificationRuleWithHttpInfo}.
+ *
See {@link #createIncidentCommunicationWithHttpInfo}.
*
+ * @param incidentId The UUID of the incident. (required)
* @param body (required)
- * @return CompletableFuture<ApiResponse<IncidentNotificationRule>>
+ * @return CompletableFuture<ApiResponse<IncidentCommunicationResponse>>
*/
- public CompletableFuture>
- createIncidentNotificationRuleWithHttpInfoAsync(CreateIncidentNotificationRuleRequest body) {
+ public CompletableFuture>
+ createIncidentCommunicationWithHttpInfoAsync(
+ String incidentId, IncidentCommunicationRequest body) {
// Check if unstable operation is enabled
- String operationId = "createIncidentNotificationRule";
+ String operationId = "createIncidentCommunication";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
- CompletableFuture> result = new CompletableFuture<>();
+ CompletableFuture> result =
+ new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = body;
+ // verify the required parameter 'incidentId' is set
+ if (incidentId == null) {
+ CompletableFuture> result =
+ new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(
+ 400,
+ "Missing the required parameter 'incidentId' when calling"
+ + " createIncidentCommunication"));
+ return result;
+ }
+
// verify the required parameter 'body' is set
if (body == null) {
- CompletableFuture> result = new CompletableFuture<>();
+ CompletableFuture> result =
+ new CompletableFuture<>();
result.completeExceptionally(
new ApiException(
400,
- "Missing the required parameter 'body' when calling createIncidentNotificationRule"));
+ "Missing the required parameter 'body' when calling createIncidentCommunication"));
return result;
}
// create path and map variables
- String localVarPath = "/api/v2/incidents/config/notification-rules";
+ String localVarPath =
+ "/api/v2/incidents/{incident_id}/communications"
+ .replaceAll(
+ "\\{" + "incident_id" + "\\}", apiClient.escapeString(incidentId.toString()));
Map localVarHeaderParams = new HashMap();
@@ -1269,7 +1313,7 @@ public ApiResponse createIncidentNotificationRuleWithH
try {
builder =
apiClient.createBuilder(
- "v2.IncidentsApi.createIncidentNotificationRule",
+ "v2.IncidentsApi.createIncidentCommunication",
localVarPath,
new ArrayList(),
localVarHeaderParams,
@@ -1277,7 +1321,8 @@ public ApiResponse createIncidentNotificationRuleWithH
new String[] {"application/json"},
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
} catch (ApiException ex) {
- CompletableFuture> result = new CompletableFuture<>();
+ CompletableFuture> result =
+ new CompletableFuture<>();
result.completeExceptionally(ex);
return result;
}
@@ -1289,34 +1334,34 @@ public ApiResponse createIncidentNotificationRuleWithH
localVarPostBody,
new HashMap(),
false,
- new GenericType() {});
+ new GenericType() {});
}
/**
- * Create incident notification template.
+ * Create an incident Google Meet space.
*
- * See {@link #createIncidentNotificationTemplateWithHttpInfo}.
+ *
See {@link #createIncidentGoogleMeetSpaceWithHttpInfo}.
*
- * @param body (required)
- * @return IncidentNotificationTemplate
+ * @param incidentId The UUID of the incident. (required)
+ * @return IncidentGoogleMeetIntegrationResponse
* @throws ApiException if fails to make API call
*/
- public IncidentNotificationTemplate createIncidentNotificationTemplate(
- CreateIncidentNotificationTemplateRequest body) throws ApiException {
- return createIncidentNotificationTemplateWithHttpInfo(body).getData();
+ public IncidentGoogleMeetIntegrationResponse createIncidentGoogleMeetSpace(String incidentId)
+ throws ApiException {
+ return createIncidentGoogleMeetSpaceWithHttpInfo(incidentId).getData();
}
/**
- * Create incident notification template.
+ * Create an incident Google Meet space.
*
- *
See {@link #createIncidentNotificationTemplateWithHttpInfoAsync}.
+ *
See {@link #createIncidentGoogleMeetSpaceWithHttpInfoAsync}.
*
- * @param body (required)
- * @return CompletableFuture<IncidentNotificationTemplate>
+ * @param incidentId The UUID of the incident. (required)
+ * @return CompletableFuture<IncidentGoogleMeetIntegrationResponse>
*/
- public CompletableFuture createIncidentNotificationTemplateAsync(
- CreateIncidentNotificationTemplateRequest body) {
- return createIncidentNotificationTemplateWithHttpInfoAsync(body)
+ public CompletableFuture
+ createIncidentGoogleMeetSpaceAsync(String incidentId) {
+ return createIncidentGoogleMeetSpaceWithHttpInfoAsync(incidentId)
.thenApply(
response -> {
return response.getData();
@@ -1324,10 +1369,10 @@ public CompletableFuture createIncidentNotificatio
}
/**
- * Creates a new notification template.
+ * Create a Google Meet space for a given incident.
*
- * @param body (required)
- * @return ApiResponse<IncidentNotificationTemplate>
+ * @param incidentId The UUID of the incident. (required)
+ * @return ApiResponse<IncidentGoogleMeetIntegrationResponse>
* @throws ApiException if fails to make API call
* @http.response.details
*
@@ -1341,31 +1386,34 @@ public CompletableFuture createIncidentNotificatio
* | 429 | Too many requests | - |
*
*/
- public ApiResponse createIncidentNotificationTemplateWithHttpInfo(
- CreateIncidentNotificationTemplateRequest body) throws ApiException {
+ public ApiResponse
+ createIncidentGoogleMeetSpaceWithHttpInfo(String incidentId) throws ApiException {
// Check if unstable operation is enabled
- String operationId = "createIncidentNotificationTemplate";
+ String operationId = "createIncidentGoogleMeetSpace";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
- Object localVarPostBody = body;
+ Object localVarPostBody = null;
- // verify the required parameter 'body' is set
- if (body == null) {
+ // verify the required parameter 'incidentId' is set
+ if (incidentId == null) {
throw new ApiException(
400,
- "Missing the required parameter 'body' when calling createIncidentNotificationTemplate");
+ "Missing the required parameter 'incidentId' when calling createIncidentGoogleMeetSpace");
}
// create path and map variables
- String localVarPath = "/api/v2/incidents/config/notification-templates";
+ String localVarPath =
+ "/api/v2/incidents/{incident_id}/google-meet/space"
+ .replaceAll(
+ "\\{" + "incident_id" + "\\}", apiClient.escapeString(incidentId.toString()));
Map localVarHeaderParams = new HashMap();
Invocation.Builder builder =
apiClient.createBuilder(
- "v2.IncidentsApi.createIncidentNotificationTemplate",
+ "v2.IncidentsApi.createIncidentGoogleMeetSpace",
localVarPath,
new ArrayList(),
localVarHeaderParams,
@@ -1376,50 +1424,52 @@ public ApiResponse createIncidentNotificationTempl
"POST",
builder,
localVarHeaderParams,
- new String[] {"application/json"},
+ new String[] {},
localVarPostBody,
new HashMap(),
false,
- new GenericType() {});
+ new GenericType() {});
}
/**
- * Create incident notification template.
+ * Create an incident Google Meet space.
*
- * See {@link #createIncidentNotificationTemplateWithHttpInfo}.
+ *
See {@link #createIncidentGoogleMeetSpaceWithHttpInfo}.
*
- * @param body (required)
- * @return CompletableFuture<ApiResponse<IncidentNotificationTemplate>>
+ * @param incidentId The UUID of the incident. (required)
+ * @return CompletableFuture<ApiResponse<IncidentGoogleMeetIntegrationResponse>>
*/
- public CompletableFuture>
- createIncidentNotificationTemplateWithHttpInfoAsync(
- CreateIncidentNotificationTemplateRequest body) {
+ public CompletableFuture>
+ createIncidentGoogleMeetSpaceWithHttpInfoAsync(String incidentId) {
// Check if unstable operation is enabled
- String operationId = "createIncidentNotificationTemplate";
+ String operationId = "createIncidentGoogleMeetSpace";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
- CompletableFuture> result =
+ CompletableFuture> result =
new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
- Object localVarPostBody = body;
+ Object localVarPostBody = null;
- // verify the required parameter 'body' is set
- if (body == null) {
- CompletableFuture> result =
+ // verify the required parameter 'incidentId' is set
+ if (incidentId == null) {
+ CompletableFuture> result =
new CompletableFuture<>();
result.completeExceptionally(
new ApiException(
400,
- "Missing the required parameter 'body' when calling"
- + " createIncidentNotificationTemplate"));
+ "Missing the required parameter 'incidentId' when calling"
+ + " createIncidentGoogleMeetSpace"));
return result;
}
// create path and map variables
- String localVarPath = "/api/v2/incidents/config/notification-templates";
+ String localVarPath =
+ "/api/v2/incidents/{incident_id}/google-meet/space"
+ .replaceAll(
+ "\\{" + "incident_id" + "\\}", apiClient.escapeString(incidentId.toString()));
Map localVarHeaderParams = new HashMap();
@@ -1427,7 +1477,7 @@ public ApiResponse createIncidentNotificationTempl
try {
builder =
apiClient.createBuilder(
- "v2.IncidentsApi.createIncidentNotificationTemplate",
+ "v2.IncidentsApi.createIncidentGoogleMeetSpace",
localVarPath,
new ArrayList(),
localVarHeaderParams,
@@ -1435,7 +1485,7 @@ public ApiResponse createIncidentNotificationTempl
new String[] {"application/json"},
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
} catch (ApiException ex) {
- CompletableFuture> result =
+ CompletableFuture> result =
new CompletableFuture<>();
result.completeExceptionally(ex);
return result;
@@ -1444,40 +1494,61 @@ public ApiResponse