Skip to content

Commit 686e823

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add text field in synthetics search endpoint (#2558)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 697474c commit 686e823

File tree

8 files changed

+16
-5
lines changed

8 files changed

+16
-5
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "bd643af",
3-
"generated": "2025-07-22 16:42:29.313"
2+
"spec_repo_commit": "04d09cb",
3+
"generated": "2025-07-23 09:22:24.045"
44
}

.generator/schemas/v1/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33827,6 +33827,12 @@ paths:
3382733827
description: Search for Synthetic tests and Test Suites.
3382833828
operationId: SearchTests
3382933829
parameters:
33830+
- description: The search query.
33831+
in: query
33832+
name: text
33833+
required: false
33834+
schema:
33835+
type: string
3383033836
- description: If true, include the full configuration for each test in the
3383133837
response.
3383233838
in: query
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-07-01T15:52:56.329Z
1+
2025-07-22T14:56:49.377Z

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

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/v1/synthetics/SearchTests_195957771.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
require "datadog_api_client"
44
api_instance = DatadogAPIClient::V1::SyntheticsAPI.new
55
opts = {
6+
text: "tag:value",
67
include_full_config: true,
78
search_suites: true,
89
facets_only: true,

features/scenarios_model_mapping.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,7 @@
754754
"body" => "SyntheticsMobileTest",
755755
},
756756
"v1.SearchTests" => {
757+
"text" => "String",
757758
"include_full_config" => "Boolean",
758759
"search_suites" => "Boolean",
759760
"facets_only" => "Boolean",

features/v1/synthetics.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,7 @@ Feature: Synthetics
806806
@team:DataDog/synthetics-ct
807807
Scenario: Search Synthetic tests with boolean query parameters
808808
Given new "SearchTests" request
809+
And request contains "text" parameter with value "tag:value"
809810
And request contains "include_full_config" parameter with value true
810811
And request contains "search_suites" parameter with value true
811812
And request contains "facets_only" parameter with value true

lib/datadog_api_client/v1/api/synthetics_api.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,6 +1788,7 @@ def search_tests(opts = {})
17881788
# Search for Synthetic tests and Test Suites.
17891789
#
17901790
# @param opts [Hash] the optional parameters
1791+
# @option opts [String] :text The search query.
17911792
# @option opts [Boolean] :include_full_config If true, include the full configuration for each test in the response.
17921793
# @option opts [Boolean] :search_suites If true, returns suites instead of tests.
17931794
# @option opts [Boolean] :facets_only If true, return only facets instead of full test details.
@@ -1805,6 +1806,7 @@ def search_tests_with_http_info(opts = {})
18051806

18061807
# query parameters
18071808
query_params = opts[:query_params] || {}
1809+
query_params[:'text'] = opts[:'text'] if !opts[:'text'].nil?
18081810
query_params[:'include_full_config'] = opts[:'include_full_config'] if !opts[:'include_full_config'].nil?
18091811
query_params[:'search_suites'] = opts[:'search_suites'] if !opts[:'search_suites'].nil?
18101812
query_params[:'facets_only'] = opts[:'facets_only'] if !opts[:'facets_only'].nil?

0 commit comments

Comments
 (0)