Skip to content

Commit 6ba7e3d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add fleet tracers, clusters, and instrumented pods endpoints (#3213)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 0962c62 commit 6ba7e3d

25 files changed

+3253
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 616 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# List tracers for a specific agent returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_fleet_agent_tracers".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new
8+
p api_instance.list_fleet_agent_tracers("agent_key")
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# List all fleet clusters returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_fleet_clusters".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new
8+
p api_instance.list_fleet_clusters()
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# List instrumented pods for a cluster returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_fleet_instrumented_pods".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new
8+
p api_instance.list_fleet_instrumented_pods("cluster_name")
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# List all fleet tracers returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_fleet_tracers".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new
8+
p api_instance.list_fleet_tracers()

features/scenarios_model_mapping.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,24 @@
850850
"v2.GetFleetAgentInfo" => {
851851
"agent_key" => "String",
852852
},
853+
"v2.ListFleetAgentTracers" => {
854+
"agent_key" => "String",
855+
"page_number" => "Integer",
856+
"page_size" => "Integer",
857+
"sort_attribute" => "String",
858+
"sort_descending" => "Boolean",
859+
},
860+
"v2.ListFleetClusters" => {
861+
"page_number" => "Integer",
862+
"page_size" => "Integer",
863+
"sort_attribute" => "String",
864+
"sort_descending" => "Boolean",
865+
"filter" => "String",
866+
"tags" => "String",
867+
},
868+
"v2.ListFleetInstrumentedPods" => {
869+
"cluster_name" => "String",
870+
},
853871
"v2.ListFleetDeployments" => {
854872
"page_size" => "Integer",
855873
"page_offset" => "Integer",
@@ -884,6 +902,13 @@
884902
"v2.TriggerFleetSchedule" => {
885903
"id" => "String",
886904
},
905+
"v2.ListFleetTracers" => {
906+
"page_number" => "Integer",
907+
"page_size" => "Integer",
908+
"sort_attribute" => "String",
909+
"sort_descending" => "Boolean",
910+
"filter" => "String",
911+
},
887912
"v2.CreateDatastore" => {
888913
"body" => "CreateAppsDatastoreRequest",
889914
},

features/v2/fleet_automation.feature

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,48 @@ Feature: Fleet Automation
232232
When the request is sent
233233
Then the response status is 200 OK
234234

235+
@generated @skip @team:DataDog/fleet-automation
236+
Scenario: List all fleet clusters returns "Bad Request" response
237+
Given operation "ListFleetClusters" enabled
238+
And new "ListFleetClusters" request
239+
When the request is sent
240+
Then the response status is 400 Bad Request
241+
242+
@generated @skip @team:DataDog/fleet-automation
243+
Scenario: List all fleet clusters returns "Not Found" response
244+
Given operation "ListFleetClusters" enabled
245+
And new "ListFleetClusters" request
246+
When the request is sent
247+
Then the response status is 404 Not Found
248+
249+
@generated @skip @team:DataDog/fleet-automation
250+
Scenario: List all fleet clusters returns "OK" response
251+
Given operation "ListFleetClusters" enabled
252+
And new "ListFleetClusters" request
253+
When the request is sent
254+
Then the response status is 200 OK
255+
256+
@generated @skip @team:DataDog/fleet-automation
257+
Scenario: List all fleet tracers returns "Bad Request" response
258+
Given operation "ListFleetTracers" enabled
259+
And new "ListFleetTracers" request
260+
When the request is sent
261+
Then the response status is 400 Bad Request
262+
263+
@generated @skip @team:DataDog/fleet-automation
264+
Scenario: List all fleet tracers returns "Not Found" response
265+
Given operation "ListFleetTracers" enabled
266+
And new "ListFleetTracers" request
267+
When the request is sent
268+
Then the response status is 404 Not Found
269+
270+
@generated @skip @team:DataDog/fleet-automation
271+
Scenario: List all fleet tracers returns "OK" response
272+
Given operation "ListFleetTracers" enabled
273+
And new "ListFleetTracers" request
274+
When the request is sent
275+
Then the response status is 200 OK
276+
235277
@generated @skip @team:DataDog/fleet-automation
236278
Scenario: List all schedules returns "Bad Request" response
237279
Given operation "ListFleetSchedules" enabled
@@ -246,6 +288,54 @@ Feature: Fleet Automation
246288
When the request is sent
247289
Then the response status is 200 OK
248290

291+
@generated @skip @team:DataDog/fleet-automation
292+
Scenario: List instrumented pods for a cluster returns "Bad Request" response
293+
Given operation "ListFleetInstrumentedPods" enabled
294+
And new "ListFleetInstrumentedPods" request
295+
And request contains "cluster_name" parameter from "REPLACE.ME"
296+
When the request is sent
297+
Then the response status is 400 Bad Request
298+
299+
@generated @skip @team:DataDog/fleet-automation
300+
Scenario: List instrumented pods for a cluster returns "Not Found" response
301+
Given operation "ListFleetInstrumentedPods" enabled
302+
And new "ListFleetInstrumentedPods" request
303+
And request contains "cluster_name" parameter from "REPLACE.ME"
304+
When the request is sent
305+
Then the response status is 404 Not Found
306+
307+
@generated @skip @team:DataDog/fleet-automation
308+
Scenario: List instrumented pods for a cluster returns "OK" response
309+
Given operation "ListFleetInstrumentedPods" enabled
310+
And new "ListFleetInstrumentedPods" request
311+
And request contains "cluster_name" parameter from "REPLACE.ME"
312+
When the request is sent
313+
Then the response status is 200 OK
314+
315+
@generated @skip @team:DataDog/fleet-automation
316+
Scenario: List tracers for a specific agent returns "Bad Request" response
317+
Given operation "ListFleetAgentTracers" enabled
318+
And new "ListFleetAgentTracers" request
319+
And request contains "agent_key" parameter from "REPLACE.ME"
320+
When the request is sent
321+
Then the response status is 400 Bad Request
322+
323+
@generated @skip @team:DataDog/fleet-automation
324+
Scenario: List tracers for a specific agent returns "Not Found" response
325+
Given operation "ListFleetAgentTracers" enabled
326+
And new "ListFleetAgentTracers" request
327+
And request contains "agent_key" parameter from "REPLACE.ME"
328+
When the request is sent
329+
Then the response status is 404 Not Found
330+
331+
@generated @skip @team:DataDog/fleet-automation
332+
Scenario: List tracers for a specific agent returns "OK" response
333+
Given operation "ListFleetAgentTracers" enabled
334+
And new "ListFleetAgentTracers" request
335+
And request contains "agent_key" parameter from "REPLACE.ME"
336+
When the request is sent
337+
Then the response status is 200 OK
338+
249339
@generated @skip @team:DataDog/fleet-automation
250340
Scenario: Trigger a schedule deployment returns "Bad Request" response
251341
Given operation "TriggerFleetSchedule" enabled

features/v2/undo.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@
1717
"type": "safe"
1818
}
1919
},
20+
"ListFleetAgentTracers": {
21+
"tag": "Fleet Automation",
22+
"undo": {
23+
"type": "safe"
24+
}
25+
},
26+
"ListFleetClusters": {
27+
"tag": "Fleet Automation",
28+
"undo": {
29+
"type": "safe"
30+
}
31+
},
32+
"ListFleetInstrumentedPods": {
33+
"tag": "Fleet Automation",
34+
"undo": {
35+
"type": "safe"
36+
}
37+
},
2038
"ListFleetDeployments": {
2139
"tag": "Fleet Automation",
2240
"undo": {
@@ -111,6 +129,12 @@
111129
"type": "unsafe"
112130
}
113131
},
132+
"ListFleetTracers": {
133+
"tag": "Fleet Automation",
134+
"undo": {
135+
"type": "safe"
136+
}
137+
},
114138
"ListDatastores": {
115139
"tag": "Actions Datastores",
116140
"undo": {

lib/datadog_api_client/configuration.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,13 @@ def initialize
198198
"v2.get_fleet_deployment": false,
199199
"v2.get_fleet_schedule": false,
200200
"v2.list_fleet_agents": false,
201+
"v2.list_fleet_agent_tracers": false,
201202
"v2.list_fleet_agent_versions": false,
203+
"v2.list_fleet_clusters": false,
202204
"v2.list_fleet_deployments": false,
205+
"v2.list_fleet_instrumented_pods": false,
203206
"v2.list_fleet_schedules": false,
207+
"v2.list_fleet_tracers": false,
204208
"v2.trigger_fleet_schedule": false,
205209
"v2.update_fleet_schedule": false,
206210
"v2.create_open_api": false,

lib/datadog_api_client/inflector.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2723,6 +2723,11 @@ def overrides
27232723
"v2.fleet_agent_version_attributes" => "FleetAgentVersionAttributes",
27242724
"v2.fleet_agent_version_resource_type" => "FleetAgentVersionResourceType",
27252725
"v2.fleet_agent_versions_response" => "FleetAgentVersionsResponse",
2726+
"v2.fleet_cluster_attributes" => "FleetClusterAttributes",
2727+
"v2.fleet_clusters_response" => "FleetClustersResponse",
2728+
"v2.fleet_clusters_response_data" => "FleetClustersResponseData",
2729+
"v2.fleet_clusters_response_data_attributes" => "FleetClustersResponseDataAttributes",
2730+
"v2.fleet_clusters_response_meta" => "FleetClustersResponseMeta",
27262731
"v2.fleet_configuration_file" => "FleetConfigurationFile",
27272732
"v2.fleet_configuration_layer" => "FleetConfigurationLayer",
27282733
"v2.fleet_deployment" => "FleetDeployment",
@@ -2746,6 +2751,10 @@ def overrides
27462751
"v2.fleet_deployments_response" => "FleetDeploymentsResponse",
27472752
"v2.fleet_deployments_response_meta" => "FleetDeploymentsResponseMeta",
27482753
"v2.fleet_detected_integration" => "FleetDetectedIntegration",
2754+
"v2.fleet_instrumented_pod_group_attributes" => "FleetInstrumentedPodGroupAttributes",
2755+
"v2.fleet_instrumented_pods_response" => "FleetInstrumentedPodsResponse",
2756+
"v2.fleet_instrumented_pods_response_data" => "FleetInstrumentedPodsResponseData",
2757+
"v2.fleet_instrumented_pods_response_data_attributes" => "FleetInstrumentedPodsResponseDataAttributes",
27492758
"v2.fleet_integration_details" => "FleetIntegrationDetails",
27502759
"v2.fleet_integrations_by_status" => "FleetIntegrationsByStatus",
27512760
"v2.fleet_schedule" => "FleetSchedule",
@@ -2761,6 +2770,11 @@ def overrides
27612770
"v2.fleet_schedule_response" => "FleetScheduleResponse",
27622771
"v2.fleet_schedules_response" => "FleetSchedulesResponse",
27632772
"v2.fleet_schedule_status" => "FleetScheduleStatus",
2773+
"v2.fleet_tracer_attributes" => "FleetTracerAttributes",
2774+
"v2.fleet_tracers_response" => "FleetTracersResponse",
2775+
"v2.fleet_tracers_response_data" => "FleetTracersResponseData",
2776+
"v2.fleet_tracers_response_data_attributes" => "FleetTracersResponseDataAttributes",
2777+
"v2.fleet_tracers_response_meta" => "FleetTracersResponseMeta",
27642778
"v2.form_trigger" => "FormTrigger",
27652779
"v2.form_trigger_wrapper" => "FormTriggerWrapper",
27662780
"v2.formula_limit" => "FormulaLimit",

0 commit comments

Comments
 (0)