@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SyntheticsApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SyntheticsApi.GetAPITestLatestResultsOptionalParameters
Manage optional parameters to getAPITestLatestResults.
|
static class |
SyntheticsApi.GetBrowserTestLatestResultsOptionalParameters
Manage optional parameters to getBrowserTestLatestResults.
|
static class |
SyntheticsApi.ListTestsOptionalParameters
Manage optional parameters to listTests.
|
| Constructor and Description |
|---|
SyntheticsApi() |
SyntheticsApi(ApiClient apiClient) |
public SyntheticsApi()
public SyntheticsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic SyntheticsGlobalVariable createGlobalVariable(SyntheticsGlobalVariable body) throws ApiException
See createGlobalVariableWithHttpInfo(com.datadog.api.client.v1.model.SyntheticsGlobalVariable).
body - Details of the global variable to create. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsGlobalVariable> createGlobalVariableAsync(SyntheticsGlobalVariable body)
See createGlobalVariableWithHttpInfoAsync(com.datadog.api.client.v1.model.SyntheticsGlobalVariable).
body - Details of the global variable to create. (required)public ApiResponse<SyntheticsGlobalVariable> createGlobalVariableWithHttpInfo(SyntheticsGlobalVariable body) throws ApiException
body - Details of the global variable to create. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Invalid request | - |
| 403 | Forbidden | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsGlobalVariable>> createGlobalVariableWithHttpInfoAsync(SyntheticsGlobalVariable body)
See createGlobalVariableWithHttpInfo(com.datadog.api.client.v1.model.SyntheticsGlobalVariable).
body - Details of the global variable to create. (required)public SyntheticsPrivateLocationCreationResponse createPrivateLocation(SyntheticsPrivateLocation body) throws ApiException
See createPrivateLocationWithHttpInfo(com.datadog.api.client.v1.model.SyntheticsPrivateLocation).
body - Details of the private location to create. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsPrivateLocationCreationResponse> createPrivateLocationAsync(SyntheticsPrivateLocation body)
See createPrivateLocationWithHttpInfoAsync(com.datadog.api.client.v1.model.SyntheticsPrivateLocation).
body - Details of the private location to create. (required)public ApiResponse<SyntheticsPrivateLocationCreationResponse> createPrivateLocationWithHttpInfo(SyntheticsPrivateLocation body) throws ApiException
body - Details of the private location to create. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 402 | Quota reached for private locations | - |
| 404 | Private locations are not activated for the user | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsPrivateLocationCreationResponse>> createPrivateLocationWithHttpInfoAsync(SyntheticsPrivateLocation body)
See createPrivateLocationWithHttpInfo(com.datadog.api.client.v1.model.SyntheticsPrivateLocation).
body - Details of the private location to create. (required)public SyntheticsAPITest createSyntheticsAPITest(SyntheticsAPITest body) throws ApiException
See createSyntheticsAPITestWithHttpInfo(com.datadog.api.client.v1.model.SyntheticsAPITest).
body - Details of the test to create. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsAPITest> createSyntheticsAPITestAsync(SyntheticsAPITest body)
See createSyntheticsAPITestWithHttpInfoAsync(com.datadog.api.client.v1.model.SyntheticsAPITest).
body - Details of the test to create. (required)public ApiResponse<SyntheticsAPITest> createSyntheticsAPITestWithHttpInfo(SyntheticsAPITest body) throws ApiException
body - Details of the test to create. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK - Returns the created test details. | - |
| 400 | - JSON format is wrong - Creation failed | - |
| 402 | Test quota is reached | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsAPITest>> createSyntheticsAPITestWithHttpInfoAsync(SyntheticsAPITest body)
See createSyntheticsAPITestWithHttpInfo(com.datadog.api.client.v1.model.SyntheticsAPITest).
body - Details of the test to create. (required)public SyntheticsBrowserTest createSyntheticsBrowserTest(SyntheticsBrowserTest body) throws ApiException
See createSyntheticsBrowserTestWithHttpInfo(com.datadog.api.client.v1.model.SyntheticsBrowserTest).
body - Details of the test to create. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsBrowserTest> createSyntheticsBrowserTestAsync(SyntheticsBrowserTest body)
See createSyntheticsBrowserTestWithHttpInfoAsync(com.datadog.api.client.v1.model.SyntheticsBrowserTest).
body - Details of the test to create. (required)public ApiResponse<SyntheticsBrowserTest> createSyntheticsBrowserTestWithHttpInfo(SyntheticsBrowserTest body) throws ApiException
body - Details of the test to create. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK - Returns the created test details. | - |
| 400 | - JSON format is wrong - Creation failed | - |
| 402 | Test quota is reached | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsBrowserTest>> createSyntheticsBrowserTestWithHttpInfoAsync(SyntheticsBrowserTest body)
See createSyntheticsBrowserTestWithHttpInfo(com.datadog.api.client.v1.model.SyntheticsBrowserTest).
body - Details of the test to create. (required)public void deleteGlobalVariable(String variableId) throws ApiException
variableId - The ID of the global variable. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteGlobalVariableAsync(String variableId)
See deleteGlobalVariableWithHttpInfoAsync(java.lang.String).
variableId - The ID of the global variable. (required)public ApiResponse<Void> deleteGlobalVariableWithHttpInfo(String variableId) throws ApiException
variableId - The ID of the global variable. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | JSON format is wrong | - |
| 403 | Forbidden | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteGlobalVariableWithHttpInfoAsync(String variableId)
variableId - The ID of the global variable. (required)public void deletePrivateLocation(String locationId) throws ApiException
locationId - The ID of the private location. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deletePrivateLocationAsync(String locationId)
See deletePrivateLocationWithHttpInfoAsync(java.lang.String).
locationId - The ID of the private location. (required)public ApiResponse<Void> deletePrivateLocationWithHttpInfo(String locationId) throws ApiException
locationId - The ID of the private location. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 404 | - Private locations are not activated for the user - Private location does not exist | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deletePrivateLocationWithHttpInfoAsync(String locationId)
locationId - The ID of the private location. (required)public SyntheticsDeleteTestsResponse deleteTests(SyntheticsDeleteTestsPayload body) throws ApiException
See deleteTestsWithHttpInfo(com.datadog.api.client.v1.model.SyntheticsDeleteTestsPayload).
body - Public ID list of the Synthetic tests to be deleted. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsDeleteTestsResponse> deleteTestsAsync(SyntheticsDeleteTestsPayload body)
See deleteTestsWithHttpInfoAsync(com.datadog.api.client.v1.model.SyntheticsDeleteTestsPayload).
body - Public ID list of the Synthetic tests to be deleted. (required)public ApiResponse<SyntheticsDeleteTestsResponse> deleteTestsWithHttpInfo(SyntheticsDeleteTestsPayload body) throws ApiException
body - Public ID list of the Synthetic tests to be deleted. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK. | - |
| 400 | - JSON format is wrong - Test cannot be deleted as it's used elsewhere (as a sub-test or in an uptime widget) - Some IDs are not owned by the user | - |
| 403 | Forbidden | - |
| 404 | - Tests to be deleted can't be found - Synthetic is not activated for the user | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsDeleteTestsResponse>> deleteTestsWithHttpInfoAsync(SyntheticsDeleteTestsPayload body)
See deleteTestsWithHttpInfo(com.datadog.api.client.v1.model.SyntheticsDeleteTestsPayload).
body - Public ID list of the Synthetic tests to be deleted. (required)public SyntheticsGlobalVariable editGlobalVariable(String variableId, SyntheticsGlobalVariable body) throws ApiException
variableId - The ID of the global variable. (required)body - Details of the global variable to update. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsGlobalVariable> editGlobalVariableAsync(String variableId, SyntheticsGlobalVariable body)
variableId - The ID of the global variable. (required)body - Details of the global variable to update. (required)public ApiResponse<SyntheticsGlobalVariable> editGlobalVariableWithHttpInfo(String variableId, SyntheticsGlobalVariable body) throws ApiException
variableId - The ID of the global variable. (required)body - Details of the global variable to update. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Invalid request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsGlobalVariable>> editGlobalVariableWithHttpInfoAsync(String variableId, SyntheticsGlobalVariable body)
variableId - The ID of the global variable. (required)body - Details of the global variable to update. (required)public SyntheticsAPITest getAPITest(String publicId) throws ApiException
publicId - The public ID of the test to get details from. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsAPITest> getAPITestAsync(String publicId)
publicId - The public ID of the test to get details from. (required)public ApiResponse<SyntheticsAPITest> getAPITestWithHttpInfo(String publicId) throws ApiException
publicId - The public ID of the test to get details from. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | - Synthetic Monitoring is not activated for the user - Test is not owned by the user | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsAPITest>> getAPITestWithHttpInfoAsync(String publicId)
publicId - The public ID of the test to get details from. (required)public SyntheticsGetAPITestLatestResultsResponse getAPITestLatestResults(String publicId) throws ApiException
publicId - The public ID of the test for which to search results for. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsGetAPITestLatestResultsResponse> getAPITestLatestResultsAsync(String publicId)
publicId - The public ID of the test for which to search results for. (required)public SyntheticsGetAPITestLatestResultsResponse getAPITestLatestResults(String publicId, SyntheticsApi.GetAPITestLatestResultsOptionalParameters parameters) throws ApiException
publicId - The public ID of the test for which to search results for. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<SyntheticsGetAPITestLatestResultsResponse> getAPITestLatestResultsAsync(String publicId, SyntheticsApi.GetAPITestLatestResultsOptionalParameters parameters)
publicId - The public ID of the test for which to search results for. (required)parameters - Optional parameters for the request.public ApiResponse<SyntheticsGetAPITestLatestResultsResponse> getAPITestLatestResultsWithHttpInfo(String publicId, SyntheticsApi.GetAPITestLatestResultsOptionalParameters parameters) throws ApiException
publicId - The public ID of the test for which to search results for. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | - Synthetic is not activated for the user - Test is not owned by the user | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsGetAPITestLatestResultsResponse>> getAPITestLatestResultsWithHttpInfoAsync(String publicId, SyntheticsApi.GetAPITestLatestResultsOptionalParameters parameters)
publicId - The public ID of the test for which to search results for. (required)parameters - Optional parameters for the request.public SyntheticsAPITestResultFull getAPITestResult(String publicId, String resultId) throws ApiException
See getAPITestResultWithHttpInfo(java.lang.String, java.lang.String).
publicId - The public ID of the API test to which the target result belongs. (required)resultId - The ID of the result to get. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsAPITestResultFull> getAPITestResultAsync(String publicId, String resultId)
See getAPITestResultWithHttpInfoAsync(java.lang.String, java.lang.String).
publicId - The public ID of the API test to which the target result belongs. (required)resultId - The ID of the result to get. (required)public ApiResponse<SyntheticsAPITestResultFull> getAPITestResultWithHttpInfo(String publicId, String resultId) throws ApiException
publicId - The public ID of the API test to which the target result belongs. (required)resultId - The ID of the result to get. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | - Synthetic Monitoring is not activated for the user - Test or result is not owned by the user | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsAPITestResultFull>> getAPITestResultWithHttpInfoAsync(String publicId, String resultId)
See getAPITestResultWithHttpInfo(java.lang.String, java.lang.String).
publicId - The public ID of the API test to which the target result belongs. (required)resultId - The ID of the result to get. (required)public SyntheticsBrowserTest getBrowserTest(String publicId) throws ApiException
publicId - The public ID of the test to get details from. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsBrowserTest> getBrowserTestAsync(String publicId)
publicId - The public ID of the test to get details from. (required)public ApiResponse<SyntheticsBrowserTest> getBrowserTestWithHttpInfo(String publicId) throws ApiException
publicId - The public ID of the test to get details from. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | - Synthetic Monitoring is not activated for the user - Test is not owned by the user | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsBrowserTest>> getBrowserTestWithHttpInfoAsync(String publicId)
publicId - The public ID of the test to get details from. (required)public SyntheticsGetBrowserTestLatestResultsResponse getBrowserTestLatestResults(String publicId) throws ApiException
publicId - The public ID of the browser test for which to search results for. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsGetBrowserTestLatestResultsResponse> getBrowserTestLatestResultsAsync(String publicId)
publicId - The public ID of the browser test for which to search results for. (required)public SyntheticsGetBrowserTestLatestResultsResponse getBrowserTestLatestResults(String publicId, SyntheticsApi.GetBrowserTestLatestResultsOptionalParameters parameters) throws ApiException
publicId - The public ID of the browser test for which to search results for. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<SyntheticsGetBrowserTestLatestResultsResponse> getBrowserTestLatestResultsAsync(String publicId, SyntheticsApi.GetBrowserTestLatestResultsOptionalParameters parameters)
publicId - The public ID of the browser test for which to search results for. (required)parameters - Optional parameters for the request.public ApiResponse<SyntheticsGetBrowserTestLatestResultsResponse> getBrowserTestLatestResultsWithHttpInfo(String publicId, SyntheticsApi.GetBrowserTestLatestResultsOptionalParameters parameters) throws ApiException
publicId - The public ID of the browser test for which to search results for. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | forbidden | - |
| 404 | - Synthetic Monitoring is not activated for the user - Test is not owned by the user | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsGetBrowserTestLatestResultsResponse>> getBrowserTestLatestResultsWithHttpInfoAsync(String publicId, SyntheticsApi.GetBrowserTestLatestResultsOptionalParameters parameters)
publicId - The public ID of the browser test for which to search results for. (required)parameters - Optional parameters for the request.public SyntheticsBrowserTestResultFull getBrowserTestResult(String publicId, String resultId) throws ApiException
See getBrowserTestResultWithHttpInfo(java.lang.String, java.lang.String).
publicId - The public ID of the browser test to which the target result belongs.
(required)resultId - The ID of the result to get. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsBrowserTestResultFull> getBrowserTestResultAsync(String publicId, String resultId)
See getBrowserTestResultWithHttpInfoAsync(java.lang.String, java.lang.String).
publicId - The public ID of the browser test to which the target result belongs.
(required)resultId - The ID of the result to get. (required)public ApiResponse<SyntheticsBrowserTestResultFull> getBrowserTestResultWithHttpInfo(String publicId, String resultId) throws ApiException
publicId - The public ID of the browser test to which the target result belongs.
(required)resultId - The ID of the result to get. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | - Synthetic Monitoring is not activated for the user - Test or result is not owned by the user | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsBrowserTestResultFull>> getBrowserTestResultWithHttpInfoAsync(String publicId, String resultId)
See getBrowserTestResultWithHttpInfo(java.lang.String, java.lang.String).
publicId - The public ID of the browser test to which the target result belongs.
(required)resultId - The ID of the result to get. (required)public SyntheticsGlobalVariable getGlobalVariable(String variableId) throws ApiException
variableId - The ID of the global variable. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsGlobalVariable> getGlobalVariableAsync(String variableId)
variableId - The ID of the global variable. (required)public ApiResponse<SyntheticsGlobalVariable> getGlobalVariableWithHttpInfo(String variableId) throws ApiException
variableId - The ID of the global variable. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsGlobalVariable>> getGlobalVariableWithHttpInfoAsync(String variableId)
variableId - The ID of the global variable. (required)public SyntheticsPrivateLocation getPrivateLocation(String locationId) throws ApiException
locationId - The ID of the private location. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsPrivateLocation> getPrivateLocationAsync(String locationId)
locationId - The ID of the private location. (required)public ApiResponse<SyntheticsPrivateLocation> getPrivateLocationWithHttpInfo(String locationId) throws ApiException
locationId - The ID of the private location. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 404 | - Synthetic private locations are not activated for the user - Private location does not exist | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsPrivateLocation>> getPrivateLocationWithHttpInfoAsync(String locationId)
locationId - The ID of the private location. (required)public SyntheticsBatchDetails getSyntheticsCIBatch(String batchId) throws ApiException
batchId - The ID of the batch. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsBatchDetails> getSyntheticsCIBatchAsync(String batchId)
See getSyntheticsCIBatchWithHttpInfoAsync(java.lang.String).
batchId - The ID of the batch. (required)public ApiResponse<SyntheticsBatchDetails> getSyntheticsCIBatchWithHttpInfo(String batchId) throws ApiException
batchId - The ID of the batch. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 404 | Batch does not exist. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsBatchDetails>> getSyntheticsCIBatchWithHttpInfoAsync(String batchId)
batchId - The ID of the batch. (required)public List<String> getSyntheticsDefaultLocations() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<List<String>> getSyntheticsDefaultLocationsAsync()
public ApiResponse<List<String>> getSyntheticsDefaultLocationsWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<List<String>>> getSyntheticsDefaultLocationsWithHttpInfoAsync()
public SyntheticsTestDetails getTest(String publicId) throws ApiException
publicId - The public ID of the test to get details from. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsTestDetails> getTestAsync(String publicId)
publicId - The public ID of the test to get details from. (required)public ApiResponse<SyntheticsTestDetails> getTestWithHttpInfo(String publicId) throws ApiException
publicId - The public ID of the test to get details from. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | - Synthetic is not activated for the user - Test is not owned by the user | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsTestDetails>> getTestWithHttpInfoAsync(String publicId)
publicId - The public ID of the test to get details from. (required)public SyntheticsListGlobalVariablesResponse listGlobalVariables() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<SyntheticsListGlobalVariablesResponse> listGlobalVariablesAsync()
public ApiResponse<SyntheticsListGlobalVariablesResponse> listGlobalVariablesWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsListGlobalVariablesResponse>> listGlobalVariablesWithHttpInfoAsync()
public SyntheticsLocations listLocations() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<SyntheticsLocations> listLocationsAsync()
public ApiResponse<SyntheticsLocations> listLocationsWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsLocations>> listLocationsWithHttpInfoAsync()
public SyntheticsListTestsResponse listTests() throws ApiException
See listTestsWithHttpInfo(com.datadog.api.client.v1.api.SyntheticsApi.ListTestsOptionalParameters).
ApiException - if fails to make API callpublic CompletableFuture<SyntheticsListTestsResponse> listTestsAsync()
See listTestsWithHttpInfoAsync(com.datadog.api.client.v1.api.SyntheticsApi.ListTestsOptionalParameters).
public SyntheticsListTestsResponse listTests(SyntheticsApi.ListTestsOptionalParameters parameters) throws ApiException
See listTestsWithHttpInfo(com.datadog.api.client.v1.api.SyntheticsApi.ListTestsOptionalParameters).
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<SyntheticsListTestsResponse> listTestsAsync(SyntheticsApi.ListTestsOptionalParameters parameters)
See listTestsWithHttpInfoAsync(com.datadog.api.client.v1.api.SyntheticsApi.ListTestsOptionalParameters).
parameters - Optional parameters for the request.public PaginationIterable<SyntheticsTestDetails> listTestsWithPagination()
See listTestsWithHttpInfo(com.datadog.api.client.v1.api.SyntheticsApi.ListTestsOptionalParameters).
public PaginationIterable<SyntheticsTestDetails> listTestsWithPagination(SyntheticsApi.ListTestsOptionalParameters parameters)
See listTestsWithHttpInfo(com.datadog.api.client.v1.api.SyntheticsApi.ListTestsOptionalParameters).
public ApiResponse<SyntheticsListTestsResponse> listTestsWithHttpInfo(SyntheticsApi.ListTestsOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK - Returns the list of all Synthetic tests. | - |
| 403 | Forbidden | - |
| 404 | Synthetic Monitoring is not activated for the user. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsListTestsResponse>> listTestsWithHttpInfoAsync(SyntheticsApi.ListTestsOptionalParameters parameters)
See listTestsWithHttpInfo(com.datadog.api.client.v1.api.SyntheticsApi.ListTestsOptionalParameters).
parameters - Optional parameters for the request.public SyntheticsTestDetails patchTest(String publicId, SyntheticsPatchTestBody body) throws ApiException
See patchTestWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.SyntheticsPatchTestBody).
publicId - The public ID of the test to patch. (required)body - JSON Patch compliant list of operations
(required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsTestDetails> patchTestAsync(String publicId, SyntheticsPatchTestBody body)
publicId - The public ID of the test to patch. (required)body - JSON Patch compliant list of operations
(required)public ApiResponse<SyntheticsTestDetails> patchTestWithHttpInfo(String publicId, SyntheticsPatchTestBody body) throws ApiException
publicId - The public ID of the test to patch. (required)body - JSON Patch compliant list of operations
(required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | - JSON format is wrong - Updating sub-type is forbidden | - |
| 403 | Forbidden | - |
| 404 | - Synthetic Monitoring is not activated for the user - Test is not owned by the user - Test can't be found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsTestDetails>> patchTestWithHttpInfoAsync(String publicId, SyntheticsPatchTestBody body)
See patchTestWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.SyntheticsPatchTestBody).
publicId - The public ID of the test to patch. (required)body - JSON Patch compliant list of operations
(required)public SyntheticsTriggerCITestsResponse triggerCITests(SyntheticsCITestBody body) throws ApiException
See triggerCITestsWithHttpInfo(com.datadog.api.client.v1.model.SyntheticsCITestBody).
body - Details of the test to trigger. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsTriggerCITestsResponse> triggerCITestsAsync(SyntheticsCITestBody body)
See triggerCITestsWithHttpInfoAsync(com.datadog.api.client.v1.model.SyntheticsCITestBody).
body - Details of the test to trigger. (required)public ApiResponse<SyntheticsTriggerCITestsResponse> triggerCITestsWithHttpInfo(SyntheticsCITestBody body) throws ApiException
body - Details of the test to trigger. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | JSON format is wrong | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsTriggerCITestsResponse>> triggerCITestsWithHttpInfoAsync(SyntheticsCITestBody body)
See triggerCITestsWithHttpInfo(com.datadog.api.client.v1.model.SyntheticsCITestBody).
body - Details of the test to trigger. (required)public SyntheticsTriggerCITestsResponse triggerTests(SyntheticsTriggerBody body) throws ApiException
See triggerTestsWithHttpInfo(com.datadog.api.client.v1.model.SyntheticsTriggerBody).
body - The identifiers of the tests to trigger. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsTriggerCITestsResponse> triggerTestsAsync(SyntheticsTriggerBody body)
See triggerTestsWithHttpInfoAsync(com.datadog.api.client.v1.model.SyntheticsTriggerBody).
body - The identifiers of the tests to trigger. (required)public ApiResponse<SyntheticsTriggerCITestsResponse> triggerTestsWithHttpInfo(SyntheticsTriggerBody body) throws ApiException
body - The identifiers of the tests to trigger. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsTriggerCITestsResponse>> triggerTestsWithHttpInfoAsync(SyntheticsTriggerBody body)
See triggerTestsWithHttpInfo(com.datadog.api.client.v1.model.SyntheticsTriggerBody).
body - The identifiers of the tests to trigger. (required)public SyntheticsAPITest updateAPITest(String publicId, SyntheticsAPITest body) throws ApiException
See updateAPITestWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.SyntheticsAPITest).
publicId - The public ID of the test to get details from. (required)body - New test details to be saved. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsAPITest> updateAPITestAsync(String publicId, SyntheticsAPITest body)
See updateAPITestWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v1.model.SyntheticsAPITest).
publicId - The public ID of the test to get details from. (required)body - New test details to be saved. (required)public ApiResponse<SyntheticsAPITest> updateAPITestWithHttpInfo(String publicId, SyntheticsAPITest body) throws ApiException
publicId - The public ID of the test to get details from. (required)body - New test details to be saved. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | - JSON format is wrong - Updating sub-type is forbidden | - |
| 403 | Forbidden | - |
| 404 | - Synthetic Monitoring is not activated for the user - Test is not owned by the user - Test can't be found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsAPITest>> updateAPITestWithHttpInfoAsync(String publicId, SyntheticsAPITest body)
See updateAPITestWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.SyntheticsAPITest).
publicId - The public ID of the test to get details from. (required)body - New test details to be saved. (required)public SyntheticsBrowserTest updateBrowserTest(String publicId, SyntheticsBrowserTest body) throws ApiException
publicId - The public ID of the test to edit. (required)body - New test details to be saved. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsBrowserTest> updateBrowserTestAsync(String publicId, SyntheticsBrowserTest body)
publicId - The public ID of the test to edit. (required)body - New test details to be saved. (required)public ApiResponse<SyntheticsBrowserTest> updateBrowserTestWithHttpInfo(String publicId, SyntheticsBrowserTest body) throws ApiException
publicId - The public ID of the test to edit. (required)body - New test details to be saved. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | - JSON format is wrong - Updating sub-type is forbidden | - |
| 403 | Forbidden | - |
| 404 | - Synthetic Monitoring is not activated for the user - Test is not owned by the user - Test can't be found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsBrowserTest>> updateBrowserTestWithHttpInfoAsync(String publicId, SyntheticsBrowserTest body)
publicId - The public ID of the test to edit. (required)body - New test details to be saved. (required)public SyntheticsPrivateLocation updatePrivateLocation(String locationId, SyntheticsPrivateLocation body) throws ApiException
locationId - The ID of the private location. (required)body - Details of the private location to be updated. (required)ApiException - if fails to make API callpublic CompletableFuture<SyntheticsPrivateLocation> updatePrivateLocationAsync(String locationId, SyntheticsPrivateLocation body)
locationId - The ID of the private location. (required)body - Details of the private location to be updated. (required)public ApiResponse<SyntheticsPrivateLocation> updatePrivateLocationWithHttpInfo(String locationId, SyntheticsPrivateLocation body) throws ApiException
locationId - The ID of the private location. (required)body - Details of the private location to be updated. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 404 | - Private locations are not activated for the user - Private location does not exist | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SyntheticsPrivateLocation>> updatePrivateLocationWithHttpInfoAsync(String locationId, SyntheticsPrivateLocation body)
locationId - The ID of the private location. (required)body - Details of the private location to be updated. (required)public Boolean updateTestPauseStatus(String publicId, SyntheticsUpdateTestPauseStatusPayload body) throws ApiException
publicId - The public ID of the Synthetic test to update. (required)body - Status to set the given Synthetic test to. (required)ApiException - if fails to make API callpublic CompletableFuture<Boolean> updateTestPauseStatusAsync(String publicId, SyntheticsUpdateTestPauseStatusPayload body)
publicId - The public ID of the Synthetic test to update. (required)body - Status to set the given Synthetic test to. (required)public ApiResponse<Boolean> updateTestPauseStatusWithHttpInfo(String publicId, SyntheticsUpdateTestPauseStatusPayload body) throws ApiException
publicId - The public ID of the Synthetic test to update. (required)body - Status to set the given Synthetic test to. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK - Returns a boolean indicating if the update was successful. | - |
| 400 | JSON format is wrong. | - |
| 403 | Forbidden | - |
| 404 | - Synthetic Monitoring is not activated for the user - Test is not owned by the user | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Boolean>> updateTestPauseStatusWithHttpInfoAsync(String publicId, SyntheticsUpdateTestPauseStatusPayload body)
publicId - The public ID of the Synthetic test to update. (required)body - Status to set the given Synthetic test to. (required)Copyright © 2024. All rights reserved.