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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-07-02 11:31:44.639746",
"spec_repo_commit": "ab77d015"
"regenerated": "2025-07-02 12:38:48.456088",
"spec_repo_commit": "4fd1c189"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-07-02 11:31:44.658036",
"spec_repo_commit": "ab77d015"
"regenerated": "2025-07-02 12:38:48.476474",
"spec_repo_commit": "4fd1c189"
}
}
}
102 changes: 95 additions & 7 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33427,6 +33427,86 @@ paths:
operator: OR
permissions:
- synthetics_write
/api/v1/synthetics/tests/search:
get:
description: Search for Synthetic tests and Test Suites.
operationId: SearchTests
parameters:
- description: If true, include the full configuration for each test in the
response.
in: query
name: include_full_config
required: false
schema:
type: boolean
- description: If true, returns suites instead of tests.
in: query
name: search_suites
required: false
schema:
type: boolean
- description: If true, return only facets instead of full test details.
in: query
name: facets_only
required: false
schema:
type: boolean
- description: The offset from which to start returning results.
in: query
name: start
required: false
schema:
default: 0
format: int64
type: integer
- description: The maximum number of results to return.
in: query
name: count
required: false
schema:
default: 50
format: int64
type: integer
- description: The sort order for the results (e.g., 'name,asc' or 'name,desc').
in: query
name: sort
required: false
schema:
default: name,asc
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SyntheticsListTestsResponse'
description: OK - Returns the list of Synthetic tests matching the search.
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Not found
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- synthetics_read
summary: Search Synthetic tests
tags:
- Synthetics
x-permission:
operator: OR
permissions:
- synthetics_read
/api/v1/synthetics/tests/trigger:
post:
description: Trigger a set of Synthetic tests.
Expand Down Expand Up @@ -37222,13 +37302,21 @@ tags:
name: Slack Integration
- description: Take graph snapshots using the API.
name: Snapshots
- description: "Datadog Synthetic Monitoring uses simulated user requests and browser
rendering to help you ensure uptime,\nidentify regional issues, and track your
application performance. Synthetic tests come in\ntwo different flavors, [API
tests](https://docs.datadoghq.com/synthetics/api_tests/?tab=httptest)\nand [browser
tests](https://docs.datadoghq.com/synthetics/browser_tests). You can use Datadog\u2019s
API to\nmanage both test types programmatically.\n\nFor more information, see
the [Synthetic Monitoring documentation](https://docs.datadoghq.com/synthetics/)."
- description: 'Datadog Synthetic Monitoring uses simulated user requests and browser
rendering to help you ensure uptime,

identify regional issues, and track your application performance. Synthetic tests
come in

two different flavors, [API tests](https://docs.datadoghq.com/synthetics/api_tests/?tab=httptest)

and [browser tests](https://docs.datadoghq.com/synthetics/browser_tests). You
can use Datadog''s API to

manage both test types programmatically.


For more information, see the [Synthetic Monitoring documentation](https://docs.datadoghq.com/synthetics/).'
name: Synthetics
- description: 'The tag endpoint allows you to assign tags to hosts,

Expand Down
25 changes: 25 additions & 0 deletions examples/v1/synthetics/SearchTests.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Search Synthetic tests returns "OK - Returns the list of Synthetic tests matching the search."
// response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v1.api.SyntheticsApi;
import com.datadog.api.client.v1.model.SyntheticsListTestsResponse;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
SyntheticsApi apiInstance = new SyntheticsApi(defaultClient);

try {
SyntheticsListTestsResponse result = apiInstance.searchTests();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SyntheticsApi#searchTests");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
33 changes: 33 additions & 0 deletions examples/v1/synthetics/SearchTests_195957771.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Search Synthetic tests with boolean query parameters

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v1.api.SyntheticsApi;
import com.datadog.api.client.v1.api.SyntheticsApi.SearchTestsOptionalParameters;
import com.datadog.api.client.v1.model.SyntheticsListTestsResponse;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
SyntheticsApi apiInstance = new SyntheticsApi(defaultClient);

try {
SyntheticsListTestsResponse result =
apiInstance.searchTests(
new SearchTestsOptionalParameters()
.includeFullConfig(true)
.searchSuites(true)
.facetsOnly(true)
.start(10L)
.count(5L)
.sort("name,desc"));
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SyntheticsApi#searchTests");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Loading