Package com.datadog.api.client.v2.api
Class OpsgenieIntegrationApi
java.lang.Object
com.datadog.api.client.v2.api.OpsgenieIntegrationApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class OpsgenieIntegrationApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a new Opsgenie account.Create a new Opsgenie account.Create a new Opsgenie account in the Datadog Opsgenie integration.Create a new Opsgenie account.Create a new service object.Create a new service object.Create a new service object in the Opsgenie integration.Create a new service object.voiddeleteOpsgenieAccount(String accountId) Delete an Opsgenie account.deleteOpsgenieAccountAsync(String accountId) Delete an Opsgenie account.deleteOpsgenieAccountWithHttpInfo(String accountId) Delete a single Opsgenie account from the Datadog Opsgenie integration.deleteOpsgenieAccountWithHttpInfoAsync(String accountId) Delete an Opsgenie account.voiddeleteOpsgenieService(String integrationServiceId) Delete a single service object.deleteOpsgenieServiceAsync(String integrationServiceId) Delete a single service object.deleteOpsgenieServiceWithHttpInfo(String integrationServiceId) Delete a single service object in the Datadog Opsgenie integration.deleteOpsgenieServiceWithHttpInfoAsync(String integrationServiceId) Delete a single service object.Get the API client.getOpsgenieService(String integrationServiceId) Get a single service object.getOpsgenieServiceAsync(String integrationServiceId) Get a single service object.getOpsgenieServiceWithHttpInfo(String integrationServiceId) Get a single service from the Datadog Opsgenie integration.getOpsgenieServiceWithHttpInfoAsync(String integrationServiceId) Get a single service object.Get all Opsgenie accounts.Get all Opsgenie accounts.Get a list of all Opsgenie accounts from the Datadog Opsgenie integration.Get all Opsgenie accounts.Get all service objects.Get all service objects.Get a list of all services from the Datadog Opsgenie integration.Get all service objects.voidsetApiClient(ApiClient apiClient) Set the API client.updateOpsgenieAccount(String accountId, OpsgenieAccountUpdateRequest body) Update an Opsgenie account.updateOpsgenieAccountAsync(String accountId, OpsgenieAccountUpdateRequest body) Update an Opsgenie account.updateOpsgenieAccountWithHttpInfo(String accountId, OpsgenieAccountUpdateRequest body) Update a single Opsgenie account in the Datadog Opsgenie integration.updateOpsgenieAccountWithHttpInfoAsync(String accountId, OpsgenieAccountUpdateRequest body) Update an Opsgenie account.updateOpsgenieService(String integrationServiceId, OpsgenieServiceUpdateRequest body) Update a single service object.updateOpsgenieServiceAsync(String integrationServiceId, OpsgenieServiceUpdateRequest body) Update a single service object.updateOpsgenieServiceWithHttpInfo(String integrationServiceId, OpsgenieServiceUpdateRequest body) Update a single service object in the Datadog Opsgenie integration.updateOpsgenieServiceWithHttpInfoAsync(String integrationServiceId, OpsgenieServiceUpdateRequest body) Update a single service object.
-
Constructor Details
-
OpsgenieIntegrationApi
public OpsgenieIntegrationApi() -
OpsgenieIntegrationApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createOpsgenieAccount
public OpsgenieAccountResponse createOpsgenieAccount(OpsgenieAccountCreateRequest body) throws ApiException Create a new Opsgenie account.See
createOpsgenieAccountWithHttpInfo(com.datadog.api.client.v2.model.OpsgenieAccountCreateRequest).- Parameters:
body- Opsgenie account payload. (required)- Returns:
- OpsgenieAccountResponse
- Throws:
ApiException- if fails to make API call
-
createOpsgenieAccountAsync
public CompletableFuture<OpsgenieAccountResponse> createOpsgenieAccountAsync(OpsgenieAccountCreateRequest body) Create a new Opsgenie account.See
createOpsgenieAccountWithHttpInfoAsync(com.datadog.api.client.v2.model.OpsgenieAccountCreateRequest).- Parameters:
body- Opsgenie account payload. (required)- Returns:
- CompletableFuture<OpsgenieAccountResponse>
-
createOpsgenieAccountWithHttpInfo
public ApiResponse<OpsgenieAccountResponse> createOpsgenieAccountWithHttpInfo(OpsgenieAccountCreateRequest body) throws ApiException Create a new Opsgenie account in the Datadog Opsgenie integration.- Parameters:
body- Opsgenie account payload. (required)- Returns:
- ApiResponse<OpsgenieAccountResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 CREATED - 400 Bad Request - 403 Forbidden - 429 Too many requests -
-
createOpsgenieAccountWithHttpInfoAsync
public CompletableFuture<ApiResponse<OpsgenieAccountResponse>> createOpsgenieAccountWithHttpInfoAsync(OpsgenieAccountCreateRequest body) Create a new Opsgenie account.See
createOpsgenieAccountWithHttpInfo(com.datadog.api.client.v2.model.OpsgenieAccountCreateRequest).- Parameters:
body- Opsgenie account payload. (required)- Returns:
- CompletableFuture<ApiResponse<OpsgenieAccountResponse>>
-
createOpsgenieService
public OpsgenieServiceResponse createOpsgenieService(OpsgenieServiceCreateRequest body) throws ApiException Create a new service object.See
createOpsgenieServiceWithHttpInfo(com.datadog.api.client.v2.model.OpsgenieServiceCreateRequest).- Parameters:
body- Opsgenie service payload (required)- Returns:
- OpsgenieServiceResponse
- Throws:
ApiException- if fails to make API call
-
createOpsgenieServiceAsync
public CompletableFuture<OpsgenieServiceResponse> createOpsgenieServiceAsync(OpsgenieServiceCreateRequest body) Create a new service object.See
createOpsgenieServiceWithHttpInfoAsync(com.datadog.api.client.v2.model.OpsgenieServiceCreateRequest).- Parameters:
body- Opsgenie service payload (required)- Returns:
- CompletableFuture<OpsgenieServiceResponse>
-
createOpsgenieServiceWithHttpInfo
public ApiResponse<OpsgenieServiceResponse> createOpsgenieServiceWithHttpInfo(OpsgenieServiceCreateRequest body) throws ApiException Create a new service object in the Opsgenie integration.- Parameters:
body- Opsgenie service payload (required)- Returns:
- ApiResponse<OpsgenieServiceResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 CREATED - 400 Bad Request - 403 Forbidden - 409 Conflict - 429 Too many requests -
-
createOpsgenieServiceWithHttpInfoAsync
public CompletableFuture<ApiResponse<OpsgenieServiceResponse>> createOpsgenieServiceWithHttpInfoAsync(OpsgenieServiceCreateRequest body) Create a new service object.See
createOpsgenieServiceWithHttpInfo(com.datadog.api.client.v2.model.OpsgenieServiceCreateRequest).- Parameters:
body- Opsgenie service payload (required)- Returns:
- CompletableFuture<ApiResponse<OpsgenieServiceResponse>>
-
deleteOpsgenieAccount
Delete an Opsgenie account.- Parameters:
accountId- The UUID of the Opsgenie account. (required)- Throws:
ApiException- if fails to make API call
-
deleteOpsgenieAccountAsync
Delete an Opsgenie account.See
deleteOpsgenieAccountWithHttpInfoAsync(java.lang.String).- Parameters:
accountId- The UUID of the Opsgenie account. (required)- Returns:
- CompletableFuture
-
deleteOpsgenieAccountWithHttpInfo
Delete a single Opsgenie account from the Datadog Opsgenie integration.- Parameters:
accountId- The UUID of the Opsgenie account. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
deleteOpsgenieAccountWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteOpsgenieAccountWithHttpInfoAsync(String accountId) Delete an Opsgenie account.- Parameters:
accountId- The UUID of the Opsgenie account. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
deleteOpsgenieService
Delete a single service object.- Parameters:
integrationServiceId- The UUID of the service. (required)- Throws:
ApiException- if fails to make API call
-
deleteOpsgenieServiceAsync
Delete a single service object.See
deleteOpsgenieServiceWithHttpInfoAsync(java.lang.String).- Parameters:
integrationServiceId- The UUID of the service. (required)- Returns:
- CompletableFuture
-
deleteOpsgenieServiceWithHttpInfo
public ApiResponse<Void> deleteOpsgenieServiceWithHttpInfo(String integrationServiceId) throws ApiException Delete a single service object in the Datadog Opsgenie integration.- Parameters:
integrationServiceId- The UUID of the service. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
deleteOpsgenieServiceWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteOpsgenieServiceWithHttpInfoAsync(String integrationServiceId) Delete a single service object.- Parameters:
integrationServiceId- The UUID of the service. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getOpsgenieService
Get a single service object.- Parameters:
integrationServiceId- The UUID of the service. (required)- Returns:
- OpsgenieServiceResponse
- Throws:
ApiException- if fails to make API call
-
getOpsgenieServiceAsync
public CompletableFuture<OpsgenieServiceResponse> getOpsgenieServiceAsync(String integrationServiceId) Get a single service object.- Parameters:
integrationServiceId- The UUID of the service. (required)- Returns:
- CompletableFuture<OpsgenieServiceResponse>
-
getOpsgenieServiceWithHttpInfo
public ApiResponse<OpsgenieServiceResponse> getOpsgenieServiceWithHttpInfo(String integrationServiceId) throws ApiException Get a single service from the Datadog Opsgenie integration.- Parameters:
integrationServiceId- The UUID of the service. (required)- Returns:
- ApiResponse<OpsgenieServiceResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 409 Conflict - 429 Too many requests -
-
getOpsgenieServiceWithHttpInfoAsync
public CompletableFuture<ApiResponse<OpsgenieServiceResponse>> getOpsgenieServiceWithHttpInfoAsync(String integrationServiceId) Get a single service object.- Parameters:
integrationServiceId- The UUID of the service. (required)- Returns:
- CompletableFuture<ApiResponse<OpsgenieServiceResponse>>
-
listOpsgenieAccounts
Get all Opsgenie accounts.- Returns:
- OpsgenieAccountsResponse
- Throws:
ApiException- if fails to make API call
-
listOpsgenieAccountsAsync
Get all Opsgenie accounts.- Returns:
- CompletableFuture<OpsgenieAccountsResponse>
-
listOpsgenieAccountsWithHttpInfo
Get a list of all Opsgenie accounts from the Datadog Opsgenie integration.- Returns:
- ApiResponse<OpsgenieAccountsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 429 Too many requests -
-
listOpsgenieAccountsWithHttpInfoAsync
public CompletableFuture<ApiResponse<OpsgenieAccountsResponse>> listOpsgenieAccountsWithHttpInfoAsync()Get all Opsgenie accounts.- Returns:
- CompletableFuture<ApiResponse<OpsgenieAccountsResponse>>
-
listOpsgenieServices
Get all service objects.- Returns:
- OpsgenieServicesResponse
- Throws:
ApiException- if fails to make API call
-
listOpsgenieServicesAsync
Get all service objects.- Returns:
- CompletableFuture<OpsgenieServicesResponse>
-
listOpsgenieServicesWithHttpInfo
Get a list of all services from the Datadog Opsgenie integration.- Returns:
- ApiResponse<OpsgenieServicesResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 429 Too many requests -
-
listOpsgenieServicesWithHttpInfoAsync
public CompletableFuture<ApiResponse<OpsgenieServicesResponse>> listOpsgenieServicesWithHttpInfoAsync()Get all service objects.- Returns:
- CompletableFuture<ApiResponse<OpsgenieServicesResponse>>
-
updateOpsgenieAccount
public OpsgenieAccountResponse updateOpsgenieAccount(String accountId, OpsgenieAccountUpdateRequest body) throws ApiException Update an Opsgenie account.- Parameters:
accountId- The UUID of the Opsgenie account. (required)body- Opsgenie account payload. (required)- Returns:
- OpsgenieAccountResponse
- Throws:
ApiException- if fails to make API call
-
updateOpsgenieAccountAsync
public CompletableFuture<OpsgenieAccountResponse> updateOpsgenieAccountAsync(String accountId, OpsgenieAccountUpdateRequest body) Update an Opsgenie account.- Parameters:
accountId- The UUID of the Opsgenie account. (required)body- Opsgenie account payload. (required)- Returns:
- CompletableFuture<OpsgenieAccountResponse>
-
updateOpsgenieAccountWithHttpInfo
public ApiResponse<OpsgenieAccountResponse> updateOpsgenieAccountWithHttpInfo(String accountId, OpsgenieAccountUpdateRequest body) throws ApiException Update a single Opsgenie account in the Datadog Opsgenie integration.- Parameters:
accountId- The UUID of the Opsgenie account. (required)body- Opsgenie account payload. (required)- Returns:
- ApiResponse<OpsgenieAccountResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 422 The server cannot process the request because it contains invalid data. - 429 Too many requests -
-
updateOpsgenieAccountWithHttpInfoAsync
public CompletableFuture<ApiResponse<OpsgenieAccountResponse>> updateOpsgenieAccountWithHttpInfoAsync(String accountId, OpsgenieAccountUpdateRequest body) Update an Opsgenie account.- Parameters:
accountId- The UUID of the Opsgenie account. (required)body- Opsgenie account payload. (required)- Returns:
- CompletableFuture<ApiResponse<OpsgenieAccountResponse>>
-
updateOpsgenieService
public OpsgenieServiceResponse updateOpsgenieService(String integrationServiceId, OpsgenieServiceUpdateRequest body) throws ApiException Update a single service object.- Parameters:
integrationServiceId- The UUID of the service. (required)body- Opsgenie service payload. (required)- Returns:
- OpsgenieServiceResponse
- Throws:
ApiException- if fails to make API call
-
updateOpsgenieServiceAsync
public CompletableFuture<OpsgenieServiceResponse> updateOpsgenieServiceAsync(String integrationServiceId, OpsgenieServiceUpdateRequest body) Update a single service object.- Parameters:
integrationServiceId- The UUID of the service. (required)body- Opsgenie service payload. (required)- Returns:
- CompletableFuture<OpsgenieServiceResponse>
-
updateOpsgenieServiceWithHttpInfo
public ApiResponse<OpsgenieServiceResponse> updateOpsgenieServiceWithHttpInfo(String integrationServiceId, OpsgenieServiceUpdateRequest body) throws ApiException Update a single service object in the Datadog Opsgenie integration.- Parameters:
integrationServiceId- The UUID of the service. (required)body- Opsgenie service payload. (required)- Returns:
- ApiResponse<OpsgenieServiceResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 409 Conflict - 429 Too many requests -
-
updateOpsgenieServiceWithHttpInfoAsync
public CompletableFuture<ApiResponse<OpsgenieServiceResponse>> updateOpsgenieServiceWithHttpInfoAsync(String integrationServiceId, OpsgenieServiceUpdateRequest body) Update a single service object.- Parameters:
integrationServiceId- The UUID of the service. (required)body- Opsgenie service payload. (required)- Returns:
- CompletableFuture<ApiResponse<OpsgenieServiceResponse>>
-