@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class IncidentsApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IncidentsApi.GetIncidentOptionalParameters
Manage optional parameters to getIncident.
|
static class |
IncidentsApi.ListIncidentAttachmentsOptionalParameters
Manage optional parameters to listIncidentAttachments.
|
static class |
IncidentsApi.ListIncidentsOptionalParameters
Manage optional parameters to listIncidents.
|
static class |
IncidentsApi.SearchIncidentsOptionalParameters
Manage optional parameters to searchIncidents.
|
static class |
IncidentsApi.UpdateIncidentAttachmentsOptionalParameters
Manage optional parameters to updateIncidentAttachments.
|
static class |
IncidentsApi.UpdateIncidentOptionalParameters
Manage optional parameters to updateIncident.
|
| Constructor and Description |
|---|
IncidentsApi() |
IncidentsApi(ApiClient apiClient) |
public IncidentsApi()
public IncidentsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic IncidentResponse createIncident(IncidentCreateRequest body) throws ApiException
See createIncidentWithHttpInfo(com.datadog.api.client.v2.model.IncidentCreateRequest).
body - Incident payload. (required)ApiException - if fails to make API callpublic CompletableFuture<IncidentResponse> createIncidentAsync(IncidentCreateRequest body)
See createIncidentWithHttpInfoAsync(com.datadog.api.client.v2.model.IncidentCreateRequest).
body - Incident payload. (required)public ApiResponse<IncidentResponse> createIncidentWithHttpInfo(IncidentCreateRequest body) throws ApiException
body - Incident payload. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | CREATED | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<IncidentResponse>> createIncidentWithHttpInfoAsync(IncidentCreateRequest body)
See createIncidentWithHttpInfo(com.datadog.api.client.v2.model.IncidentCreateRequest).
body - Incident payload. (required)public IncidentIntegrationMetadataResponse createIncidentIntegration(String incidentId, IncidentIntegrationMetadataCreateRequest body) throws ApiException
incidentId - The UUID of the incident. (required)body - Incident integration metadata payload. (required)ApiException - if fails to make API callpublic CompletableFuture<IncidentIntegrationMetadataResponse> createIncidentIntegrationAsync(String incidentId, IncidentIntegrationMetadataCreateRequest body)
incidentId - The UUID of the incident. (required)body - Incident integration metadata payload. (required)public ApiResponse<IncidentIntegrationMetadataResponse> createIncidentIntegrationWithHttpInfo(String incidentId, IncidentIntegrationMetadataCreateRequest body) throws ApiException
incidentId - The UUID of the incident. (required)body - Incident integration metadata payload. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | CREATED | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<IncidentIntegrationMetadataResponse>> createIncidentIntegrationWithHttpInfoAsync(String incidentId, IncidentIntegrationMetadataCreateRequest body)
incidentId - The UUID of the incident. (required)body - Incident integration metadata payload. (required)public void deleteIncident(String incidentId) throws ApiException
incidentId - The UUID of the incident. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteIncidentAsync(String incidentId)
incidentId - The UUID of the incident. (required)public ApiResponse<Void> deleteIncidentWithHttpInfo(String incidentId) throws ApiException
incidentId - The UUID of the incident. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteIncidentWithHttpInfoAsync(String incidentId)
incidentId - The UUID of the incident. (required)public void deleteIncidentIntegration(String incidentId, String integrationMetadataId) throws ApiException
See deleteIncidentIntegrationWithHttpInfo(java.lang.String, java.lang.String).
incidentId - The UUID of the incident. (required)integrationMetadataId - The UUID of the incident integration metadata. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteIncidentIntegrationAsync(String incidentId, String integrationMetadataId)
See deleteIncidentIntegrationWithHttpInfoAsync(java.lang.String, java.lang.String).
incidentId - The UUID of the incident. (required)integrationMetadataId - The UUID of the incident integration metadata. (required)public ApiResponse<Void> deleteIncidentIntegrationWithHttpInfo(String incidentId, String integrationMetadataId) throws ApiException
incidentId - The UUID of the incident. (required)integrationMetadataId - The UUID of the incident integration metadata. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteIncidentIntegrationWithHttpInfoAsync(String incidentId, String integrationMetadataId)
See deleteIncidentIntegrationWithHttpInfo(java.lang.String, java.lang.String).
incidentId - The UUID of the incident. (required)integrationMetadataId - The UUID of the incident integration metadata. (required)public IncidentResponse getIncident(String incidentId) throws ApiException
incidentId - The UUID of the incident. (required)ApiException - if fails to make API callpublic CompletableFuture<IncidentResponse> getIncidentAsync(String incidentId)
incidentId - The UUID of the incident. (required)public IncidentResponse getIncident(String incidentId, IncidentsApi.GetIncidentOptionalParameters parameters) throws ApiException
incidentId - The UUID of the incident. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<IncidentResponse> getIncidentAsync(String incidentId, IncidentsApi.GetIncidentOptionalParameters parameters)
incidentId - The UUID of the incident. (required)parameters - Optional parameters for the request.public ApiResponse<IncidentResponse> getIncidentWithHttpInfo(String incidentId, IncidentsApi.GetIncidentOptionalParameters parameters) throws ApiException
incident_id.incidentId - The UUID of the incident. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<IncidentResponse>> getIncidentWithHttpInfoAsync(String incidentId, IncidentsApi.GetIncidentOptionalParameters parameters)
incidentId - The UUID of the incident. (required)parameters - Optional parameters for the request.public IncidentIntegrationMetadataResponse getIncidentIntegration(String incidentId, String integrationMetadataId) throws ApiException
See getIncidentIntegrationWithHttpInfo(java.lang.String, java.lang.String).
incidentId - The UUID of the incident. (required)integrationMetadataId - The UUID of the incident integration metadata. (required)ApiException - if fails to make API callpublic CompletableFuture<IncidentIntegrationMetadataResponse> getIncidentIntegrationAsync(String incidentId, String integrationMetadataId)
See getIncidentIntegrationWithHttpInfoAsync(java.lang.String, java.lang.String).
incidentId - The UUID of the incident. (required)integrationMetadataId - The UUID of the incident integration metadata. (required)public ApiResponse<IncidentIntegrationMetadataResponse> getIncidentIntegrationWithHttpInfo(String incidentId, String integrationMetadataId) throws ApiException
incidentId - The UUID of the incident. (required)integrationMetadataId - The UUID of the incident integration metadata. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<IncidentIntegrationMetadataResponse>> getIncidentIntegrationWithHttpInfoAsync(String incidentId, String integrationMetadataId)
See getIncidentIntegrationWithHttpInfo(java.lang.String, java.lang.String).
incidentId - The UUID of the incident. (required)integrationMetadataId - The UUID of the incident integration metadata. (required)public IncidentAttachmentsResponse listIncidentAttachments(String incidentId) throws ApiException
incidentId - The UUID of the incident. (required)ApiException - if fails to make API callpublic CompletableFuture<IncidentAttachmentsResponse> listIncidentAttachmentsAsync(String incidentId)
incidentId - The UUID of the incident. (required)public IncidentAttachmentsResponse listIncidentAttachments(String incidentId, IncidentsApi.ListIncidentAttachmentsOptionalParameters parameters) throws ApiException
incidentId - The UUID of the incident. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<IncidentAttachmentsResponse> listIncidentAttachmentsAsync(String incidentId, IncidentsApi.ListIncidentAttachmentsOptionalParameters parameters)
incidentId - The UUID of the incident. (required)parameters - Optional parameters for the request.public ApiResponse<IncidentAttachmentsResponse> listIncidentAttachmentsWithHttpInfo(String incidentId, IncidentsApi.ListIncidentAttachmentsOptionalParameters parameters) throws ApiException
incidentId - The UUID of the incident. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<IncidentAttachmentsResponse>> listIncidentAttachmentsWithHttpInfoAsync(String incidentId, IncidentsApi.ListIncidentAttachmentsOptionalParameters parameters)
incidentId - The UUID of the incident. (required)parameters - Optional parameters for the request.public IncidentIntegrationMetadataListResponse listIncidentIntegrations(String incidentId) throws ApiException
incidentId - The UUID of the incident. (required)ApiException - if fails to make API callpublic CompletableFuture<IncidentIntegrationMetadataListResponse> listIncidentIntegrationsAsync(String incidentId)
See listIncidentIntegrationsWithHttpInfoAsync(java.lang.String).
incidentId - The UUID of the incident. (required)public ApiResponse<IncidentIntegrationMetadataListResponse> listIncidentIntegrationsWithHttpInfo(String incidentId) throws ApiException
incidentId - The UUID of the incident. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<IncidentIntegrationMetadataListResponse>> listIncidentIntegrationsWithHttpInfoAsync(String incidentId)
incidentId - The UUID of the incident. (required)public IncidentsResponse listIncidents() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<IncidentsResponse> listIncidentsAsync()
public IncidentsResponse listIncidents(IncidentsApi.ListIncidentsOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<IncidentsResponse> listIncidentsAsync(IncidentsApi.ListIncidentsOptionalParameters parameters)
parameters - Optional parameters for the request.public PaginationIterable<IncidentResponseData> listIncidentsWithPagination()
public PaginationIterable<IncidentResponseData> listIncidentsWithPagination(IncidentsApi.ListIncidentsOptionalParameters parameters)
public ApiResponse<IncidentsResponse> listIncidentsWithHttpInfo(IncidentsApi.ListIncidentsOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<IncidentsResponse>> listIncidentsWithHttpInfoAsync(IncidentsApi.ListIncidentsOptionalParameters parameters)
parameters - Optional parameters for the request.public IncidentSearchResponse searchIncidents(String query) throws ApiException
query - Specifies which incidents should be returned. After entering a search query in
your Incidents page, use the query
parameter value in the URL of the page as the value for this parameter. The query can
contain any number of incident facets joined by ANDs, along with multiple
values for each of those facets joined by ORs, for instance:
query="state:active AND severity:(SEV-2 OR SEV-1)". (required)ApiException - if fails to make API callpublic CompletableFuture<IncidentSearchResponse> searchIncidentsAsync(String query)
query - Specifies which incidents should be returned. After entering a search query in
your Incidents page, use the query
parameter value in the URL of the page as the value for this parameter. The query can
contain any number of incident facets joined by ANDs, along with multiple
values for each of those facets joined by ORs, for instance:
query="state:active AND severity:(SEV-2 OR SEV-1)". (required)public IncidentSearchResponse searchIncidents(String query, IncidentsApi.SearchIncidentsOptionalParameters parameters) throws ApiException
query - Specifies which incidents should be returned. After entering a search query in
your Incidents page, use the query
parameter value in the URL of the page as the value for this parameter. The query can
contain any number of incident facets joined by ANDs, along with multiple
values for each of those facets joined by ORs, for instance:
query="state:active AND severity:(SEV-2 OR SEV-1)". (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<IncidentSearchResponse> searchIncidentsAsync(String query, IncidentsApi.SearchIncidentsOptionalParameters parameters)
query - Specifies which incidents should be returned. After entering a search query in
your Incidents page, use the query
parameter value in the URL of the page as the value for this parameter. The query can
contain any number of incident facets joined by ANDs, along with multiple
values for each of those facets joined by ORs, for instance:
query="state:active AND severity:(SEV-2 OR SEV-1)". (required)parameters - Optional parameters for the request.public ApiResponse<IncidentSearchResponse> searchIncidentsWithHttpInfo(String query, IncidentsApi.SearchIncidentsOptionalParameters parameters) throws ApiException
query - Specifies which incidents should be returned. After entering a search query in
your Incidents page, use the query
parameter value in the URL of the page as the value for this parameter. The query can
contain any number of incident facets joined by ANDs, along with multiple
values for each of those facets joined by ORs, for instance:
query="state:active AND severity:(SEV-2 OR SEV-1)". (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<IncidentSearchResponse>> searchIncidentsWithHttpInfoAsync(String query, IncidentsApi.SearchIncidentsOptionalParameters parameters)
query - Specifies which incidents should be returned. After entering a search query in
your Incidents page, use the query
parameter value in the URL of the page as the value for this parameter. The query can
contain any number of incident facets joined by ANDs, along with multiple
values for each of those facets joined by ORs, for instance:
query="state:active AND severity:(SEV-2 OR SEV-1)". (required)parameters - Optional parameters for the request.public IncidentResponse updateIncident(String incidentId, IncidentUpdateRequest body) throws ApiException
incidentId - The UUID of the incident. (required)body - Incident Payload. (required)ApiException - if fails to make API callpublic CompletableFuture<IncidentResponse> updateIncidentAsync(String incidentId, IncidentUpdateRequest body)
incidentId - The UUID of the incident. (required)body - Incident Payload. (required)public IncidentResponse updateIncident(String incidentId, IncidentUpdateRequest body, IncidentsApi.UpdateIncidentOptionalParameters parameters) throws ApiException
incidentId - The UUID of the incident. (required)body - Incident Payload. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<IncidentResponse> updateIncidentAsync(String incidentId, IncidentUpdateRequest body, IncidentsApi.UpdateIncidentOptionalParameters parameters)
incidentId - The UUID of the incident. (required)body - Incident Payload. (required)parameters - Optional parameters for the request.public ApiResponse<IncidentResponse> updateIncidentWithHttpInfo(String incidentId, IncidentUpdateRequest body, IncidentsApi.UpdateIncidentOptionalParameters parameters) throws ApiException
incidentId - The UUID of the incident. (required)body - Incident Payload. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<IncidentResponse>> updateIncidentWithHttpInfoAsync(String incidentId, IncidentUpdateRequest body, IncidentsApi.UpdateIncidentOptionalParameters parameters)
incidentId - The UUID of the incident. (required)body - Incident Payload. (required)parameters - Optional parameters for the request.public IncidentAttachmentUpdateResponse updateIncidentAttachments(String incidentId, IncidentAttachmentUpdateRequest body) throws ApiException
incidentId - The UUID of the incident. (required)body - Incident Attachment Payload. (required)ApiException - if fails to make API callpublic CompletableFuture<IncidentAttachmentUpdateResponse> updateIncidentAttachmentsAsync(String incidentId, IncidentAttachmentUpdateRequest body)
incidentId - The UUID of the incident. (required)body - Incident Attachment Payload. (required)public IncidentAttachmentUpdateResponse updateIncidentAttachments(String incidentId, IncidentAttachmentUpdateRequest body, IncidentsApi.UpdateIncidentAttachmentsOptionalParameters parameters) throws ApiException
incidentId - The UUID of the incident. (required)body - Incident Attachment Payload. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<IncidentAttachmentUpdateResponse> updateIncidentAttachmentsAsync(String incidentId, IncidentAttachmentUpdateRequest body, IncidentsApi.UpdateIncidentAttachmentsOptionalParameters parameters)
incidentId - The UUID of the incident. (required)body - Incident Attachment Payload. (required)parameters - Optional parameters for the request.public ApiResponse<IncidentAttachmentUpdateResponse> updateIncidentAttachmentsWithHttpInfo(String incidentId, IncidentAttachmentUpdateRequest body, IncidentsApi.UpdateIncidentAttachmentsOptionalParameters parameters) throws ApiException
incidentId - The UUID of the incident. (required)body - Incident Attachment Payload. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<IncidentAttachmentUpdateResponse>> updateIncidentAttachmentsWithHttpInfoAsync(String incidentId, IncidentAttachmentUpdateRequest body, IncidentsApi.UpdateIncidentAttachmentsOptionalParameters parameters)
incidentId - The UUID of the incident. (required)body - Incident Attachment Payload. (required)parameters - Optional parameters for the request.public IncidentIntegrationMetadataResponse updateIncidentIntegration(String incidentId, String integrationMetadataId, IncidentIntegrationMetadataPatchRequest body) throws ApiException
incidentId - The UUID of the incident. (required)integrationMetadataId - The UUID of the incident integration metadata. (required)body - Incident integration metadata payload. (required)ApiException - if fails to make API callpublic CompletableFuture<IncidentIntegrationMetadataResponse> updateIncidentIntegrationAsync(String incidentId, String integrationMetadataId, IncidentIntegrationMetadataPatchRequest body)
incidentId - The UUID of the incident. (required)integrationMetadataId - The UUID of the incident integration metadata. (required)body - Incident integration metadata payload. (required)public ApiResponse<IncidentIntegrationMetadataResponse> updateIncidentIntegrationWithHttpInfo(String incidentId, String integrationMetadataId, IncidentIntegrationMetadataPatchRequest body) throws ApiException
incidentId - The UUID of the incident. (required)integrationMetadataId - The UUID of the incident integration metadata. (required)body - Incident integration metadata payload. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<IncidentIntegrationMetadataResponse>> updateIncidentIntegrationWithHttpInfoAsync(String incidentId, String integrationMetadataId, IncidentIntegrationMetadataPatchRequest body)
incidentId - The UUID of the incident. (required)integrationMetadataId - The UUID of the incident integration metadata. (required)body - Incident integration metadata payload. (required)Copyright © 2023. All rights reserved.