Skip to content

Commit 31849e1

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 4fd1c189 of spec repo (#2514)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 015800b commit 31849e1

12 files changed

+264
-25
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-07-02 11:31:50.129984",
8-
"spec_repo_commit": "ab77d015"
7+
"regenerated": "2025-07-02 12:38:43.717493",
8+
"spec_repo_commit": "4fd1c189"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-07-02 11:31:50.146274",
13-
"spec_repo_commit": "ab77d015"
12+
"regenerated": "2025-07-02 12:38:43.733432",
13+
"spec_repo_commit": "4fd1c189"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 95 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33427,6 +33427,86 @@ paths:
3342733427
operator: OR
3342833428
permissions:
3342933429
- synthetics_write
33430+
/api/v1/synthetics/tests/search:
33431+
get:
33432+
description: Search for Synthetic tests and Test Suites.
33433+
operationId: SearchTests
33434+
parameters:
33435+
- description: If true, include the full configuration for each test in the
33436+
response.
33437+
in: query
33438+
name: include_full_config
33439+
required: false
33440+
schema:
33441+
type: boolean
33442+
- description: If true, returns suites instead of tests.
33443+
in: query
33444+
name: search_suites
33445+
required: false
33446+
schema:
33447+
type: boolean
33448+
- description: If true, return only facets instead of full test details.
33449+
in: query
33450+
name: facets_only
33451+
required: false
33452+
schema:
33453+
type: boolean
33454+
- description: The offset from which to start returning results.
33455+
in: query
33456+
name: start
33457+
required: false
33458+
schema:
33459+
default: 0
33460+
format: int64
33461+
type: integer
33462+
- description: The maximum number of results to return.
33463+
in: query
33464+
name: count
33465+
required: false
33466+
schema:
33467+
default: 50
33468+
format: int64
33469+
type: integer
33470+
- description: The sort order for the results (e.g., 'name,asc' or 'name,desc').
33471+
in: query
33472+
name: sort
33473+
required: false
33474+
schema:
33475+
default: name,asc
33476+
type: string
33477+
responses:
33478+
'200':
33479+
content:
33480+
application/json:
33481+
schema:
33482+
$ref: '#/components/schemas/SyntheticsListTestsResponse'
33483+
description: OK - Returns the list of Synthetic tests matching the search.
33484+
'403':
33485+
content:
33486+
application/json:
33487+
schema:
33488+
$ref: '#/components/schemas/APIErrorResponse'
33489+
description: Forbidden
33490+
'404':
33491+
content:
33492+
application/json:
33493+
schema:
33494+
$ref: '#/components/schemas/APIErrorResponse'
33495+
description: Not found
33496+
'429':
33497+
$ref: '#/components/responses/TooManyRequestsResponse'
33498+
security:
33499+
- apiKeyAuth: []
33500+
appKeyAuth: []
33501+
- AuthZ:
33502+
- synthetics_read
33503+
summary: Search Synthetic tests
33504+
tags:
33505+
- Synthetics
33506+
x-permission:
33507+
operator: OR
33508+
permissions:
33509+
- synthetics_read
3343033510
/api/v1/synthetics/tests/trigger:
3343133511
post:
3343233512
description: Trigger a set of Synthetic tests.
@@ -37222,13 +37302,21 @@ tags:
3722237302
name: Slack Integration
3722337303
- description: Take graph snapshots using the API.
3722437304
name: Snapshots
37225-
- description: "Datadog Synthetic Monitoring uses simulated user requests and browser
37226-
rendering to help you ensure uptime,\nidentify regional issues, and track your
37227-
application performance. Synthetic tests come in\ntwo different flavors, [API
37228-
tests](https://docs.datadoghq.com/synthetics/api_tests/?tab=httptest)\nand [browser
37229-
tests](https://docs.datadoghq.com/synthetics/browser_tests). You can use Datadog\u2019s
37230-
API to\nmanage both test types programmatically.\n\nFor more information, see
37231-
the [Synthetic Monitoring documentation](https://docs.datadoghq.com/synthetics/)."
37305+
- description: 'Datadog Synthetic Monitoring uses simulated user requests and browser
37306+
rendering to help you ensure uptime,
37307+
37308+
identify regional issues, and track your application performance. Synthetic tests
37309+
come in
37310+
37311+
two different flavors, [API tests](https://docs.datadoghq.com/synthetics/api_tests/?tab=httptest)
37312+
37313+
and [browser tests](https://docs.datadoghq.com/synthetics/browser_tests). You
37314+
can use Datadog''s API to
37315+
37316+
manage both test types programmatically.
37317+
37318+
37319+
For more information, see the [Synthetic Monitoring documentation](https://docs.datadoghq.com/synthetics/).'
3723237320
name: Synthetics
3723337321
- description: 'The tag endpoint allows you to assign tags to hosts,
3723437322

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-07-01T15:52:56.329Z

cassettes/features/v1/synthetics/Search-Synthetic-tests-with-boolean-query-parameters.yml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-12-09T11:18:22.632Z
1+
2025-07-01T15:52:56.929Z

cassettes/features/v1/synthetics/Trigger-Synthetic-tests-returns-OK-response.yml

Lines changed: 14 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Search Synthetic tests returns "OK - Returns the list of Synthetic tests matching the search." response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V1::SyntheticsAPI.new
5+
p api_instance.search_tests()
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Search Synthetic tests with boolean query parameters
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V1::SyntheticsAPI.new
5+
opts = {
6+
include_full_config: true,
7+
search_suites: true,
8+
facets_only: true,
9+
start: 10,
10+
count: 5,
11+
sort: "name,desc",
12+
}
13+
p api_instance.search_tests(opts)

features/scenarios_model_mapping.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,14 @@
753753
"public_id" => "String",
754754
"body" => "SyntheticsMobileTest",
755755
},
756+
"v1.SearchTests" => {
757+
"include_full_config" => "Boolean",
758+
"search_suites" => "Boolean",
759+
"facets_only" => "Boolean",
760+
"start" => "Integer",
761+
"count" => "Integer",
762+
"sort" => "String",
763+
},
756764
"v1.TriggerTests" => {
757765
"body" => "SyntheticsTriggerBody",
758766
},

features/v1/synthetics.feature

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Feature: Synthetics
66
flavors, [API
77
tests](https://docs.datadoghq.com/synthetics/api_tests/?tab=httptest) and
88
[browser tests](https://docs.datadoghq.com/synthetics/browser_tests). You
9-
can use Datadogs API to manage both test types programmatically. For
9+
can use Datadog's API to manage both test types programmatically. For
1010
more information, see the [Synthetic Monitoring
1111
documentation](https://docs.datadoghq.com/synthetics/).
1212

@@ -790,6 +790,30 @@ Feature: Synthetics
790790
When the request is sent
791791
Then the response status is 200 OK - Returns a boolean indicating if the update was successful.
792792

793+
@generated @skip @team:DataDog/synthetics-ct
794+
Scenario: Search Synthetic tests returns "Not found" response
795+
Given new "SearchTests" request
796+
When the request is sent
797+
Then the response status is 404 Not found
798+
799+
@generated @skip @team:DataDog/synthetics-ct
800+
Scenario: Search Synthetic tests returns "OK - Returns the list of Synthetic tests matching the search." response
801+
Given new "SearchTests" request
802+
When the request is sent
803+
Then the response status is 200 OK - Returns the list of Synthetic tests matching the search.
804+
805+
@team:DataDog/synthetics-ct
806+
Scenario: Search Synthetic tests with boolean query parameters
807+
Given new "SearchTests" request
808+
And request contains "include_full_config" parameter with value true
809+
And request contains "search_suites" parameter with value true
810+
And request contains "facets_only" parameter with value true
811+
And request contains "start" parameter with value 10
812+
And request contains "count" parameter with value 5
813+
And request contains "sort" parameter with value "name,desc"
814+
When the request is sent
815+
Then the response status is 200 OK - Returns the list of Synthetic tests matching the search.
816+
793817
@generated @skip @team:DataDog/synthetics-ct
794818
Scenario: Trigger Synthetic tests returns "Bad Request" response
795819
Given new "TriggerTests" request

0 commit comments

Comments
 (0)