Skip to content

Commit 20812d7

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2e491415 of spec repo
1 parent 6e6bebf commit 20812d7

13 files changed

+708
-6
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-06-23 07:59:25.891159",
8-
"spec_repo_commit": "74866a53"
7+
"regenerated": "2025-06-23 13:26:49.765614",
8+
"spec_repo_commit": "2e491415"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-23 07:59:25.906930",
13-
"spec_repo_commit": "74866a53"
12+
"regenerated": "2025-06-23 13:26:49.783200",
13+
"spec_repo_commit": "2e491415"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10590,6 +10590,7 @@ components:
1059010590
- $ref: '#/components/schemas/CustomDestinationForwardDestinationHttp'
1059110591
- $ref: '#/components/schemas/CustomDestinationForwardDestinationSplunk'
1059210592
- $ref: '#/components/schemas/CustomDestinationForwardDestinationElasticsearch'
10593+
- $ref: '#/components/schemas/CustomDestinationForwardDestinationMicrosoftSentinel'
1059310594
CustomDestinationForwardDestinationElasticsearch:
1059410595
description: The Elasticsearch destination.
1059510596
properties:
@@ -10674,6 +10675,49 @@ components:
1067410675
type: string
1067510676
x-enum-varnames:
1067610677
- HTTP
10678+
CustomDestinationForwardDestinationMicrosoftSentinel:
10679+
description: The Microsoft Sentinel destination.
10680+
properties:
10681+
client_id:
10682+
description: Client ID from the Datadog Azure integration.
10683+
example: 9a2f4d83-2b5e-429e-a35a-2b3c4182db71
10684+
type: string
10685+
data_collection_endpoint:
10686+
description: Azure data collection endpoint.
10687+
example: https://my-dce-5kyl.eastus-1.ingest.monitor.azure.com
10688+
type: string
10689+
data_collection_rule_id:
10690+
description: Azure data collection rule ID.
10691+
example: dcr-000a00a000a00000a000000aa000a0aa
10692+
type: string
10693+
stream_name:
10694+
description: Azure stream name.
10695+
example: Custom-MyTable
10696+
type: string
10697+
writeOnly: true
10698+
tenant_id:
10699+
description: Tenant ID from the Datadog Azure integration.
10700+
example: f3c9a8a1-4c2e-4d2e-b911-9f3c28c3c8b2
10701+
type: string
10702+
type:
10703+
$ref: '#/components/schemas/CustomDestinationForwardDestinationMicrosoftSentinelType'
10704+
required:
10705+
- type
10706+
- tenant_id
10707+
- client_id
10708+
- data_collection_endpoint
10709+
- data_collection_rule_id
10710+
- stream_name
10711+
type: object
10712+
CustomDestinationForwardDestinationMicrosoftSentinelType:
10713+
default: microsoft_sentinel
10714+
description: Type of the Microsoft Sentinel destination.
10715+
enum:
10716+
- microsoft_sentinel
10717+
example: microsoft_sentinel
10718+
type: string
10719+
x-enum-varnames:
10720+
- MICROSOFT_SENTINEL
1067710721
CustomDestinationForwardDestinationSplunk:
1067810722
description: The Splunk HTTP Event Collector (HEC) destination.
1067910723
properties:
@@ -10849,6 +10893,7 @@ components:
1084910893
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationHttp'
1085010894
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationSplunk'
1085110895
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationElasticsearch'
10896+
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationMicrosoftSentinel'
1085210897
CustomDestinationResponseForwardDestinationElasticsearch:
1085310898
description: The Elasticsearch destination.
1085410899
properties:
@@ -10933,6 +10978,49 @@ components:
1093310978
type: string
1093410979
x-enum-varnames:
1093510980
- HTTP
10981+
CustomDestinationResponseForwardDestinationMicrosoftSentinel:
10982+
description: The Microsoft Sentinel destination.
10983+
properties:
10984+
client_id:
10985+
description: Client ID from the Datadog Azure integration.
10986+
example: 9a2f4d83-2b5e-429e-a35a-2b3c4182db71
10987+
type: string
10988+
data_collection_endpoint:
10989+
description: Azure data collection endpoint.
10990+
example: https://my-dce-5kyl.eastus-1.ingest.monitor.azure.com
10991+
type: string
10992+
data_collection_rule_id:
10993+
description: Azure data collection rule ID.
10994+
example: dcr-000a00a000a00000a000000aa000a0aa
10995+
type: string
10996+
stream_name:
10997+
description: Azure stream name.
10998+
example: Custom-MyTable
10999+
type: string
11000+
writeOnly: true
11001+
tenant_id:
11002+
description: Tenant ID from the Datadog Azure integration.
11003+
example: f3c9a8a1-4c2e-4d2e-b911-9f3c28c3c8b2
11004+
type: string
11005+
type:
11006+
$ref: '#/components/schemas/CustomDestinationResponseForwardDestinationMicrosoftSentinelType'
11007+
required:
11008+
- type
11009+
- tenant_id
11010+
- client_id
11011+
- data_collection_endpoint
11012+
- data_collection_rule_id
11013+
- stream_name
11014+
type: object
11015+
CustomDestinationResponseForwardDestinationMicrosoftSentinelType:
11016+
default: microsoft_sentinel
11017+
description: Type of the Microsoft Sentinel destination.
11018+
enum:
11019+
- microsoft_sentinel
11020+
example: microsoft_sentinel
11021+
type: string
11022+
x-enum-varnames:
11023+
- MICROSOFT_SENTINEL
1093611024
CustomDestinationResponseForwardDestinationSplunk:
1093711025
description: The Splunk HTTP Event Collector (HEC) destination.
1093811026
properties:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-06-20T08:10:33.243Z

cassettes/features/v2/logs_custom_destinations/Create-a-Microsoft-Sentinel-custom-destination-returns-OK-response.yml

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Create a Microsoft Sentinel custom destination returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new
5+
6+
body = DatadogAPIClient::V2::CustomDestinationCreateRequest.new({
7+
data: DatadogAPIClient::V2::CustomDestinationCreateRequestDefinition.new({
8+
attributes: DatadogAPIClient::V2::CustomDestinationCreateRequestAttributes.new({
9+
enabled: false,
10+
forward_tags: false,
11+
forward_tags_restriction_list: [
12+
"datacenter",
13+
"host",
14+
],
15+
forward_tags_restriction_list_type: DatadogAPIClient::V2::CustomDestinationAttributeTagsRestrictionListType::ALLOW_LIST,
16+
forwarder_destination: DatadogAPIClient::V2::CustomDestinationForwardDestinationMicrosoftSentinel.new({
17+
type: DatadogAPIClient::V2::CustomDestinationForwardDestinationMicrosoftSentinelType::MICROSOFT_SENTINEL,
18+
tenant_id: "f3c9a8a1-4c2e-4d2e-b911-9f3c28c3c8b2",
19+
client_id: "9a2f4d83-2b5e-429e-a35a-2b3c4182db71",
20+
data_collection_endpoint: "https://my-dce-5kyl.eastus-1.ingest.monitor.azure.com",
21+
data_collection_rule_id: "dcr-000a00a000a00000a000000aa000a0aa",
22+
stream_name: "Custom-MyTable",
23+
}),
24+
name: "Nginx logs",
25+
query: "source:nginx",
26+
}),
27+
type: DatadogAPIClient::V2::CustomDestinationType::CUSTOM_DESTINATION,
28+
}),
29+
})
30+
p api_instance.create_logs_custom_destination(body)

features/v2/logs_custom_destinations.feature

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,29 @@ Feature: Logs Custom Destinations
5757
And the response "data.attributes.forward_tags_restriction_list" array contains value "host"
5858
And the response "data.attributes.forward_tags_restriction_list_type" is equal to "ALLOW_LIST"
5959

60+
@team:DataDog/logs-backend @team:DataDog/logs-forwarding
61+
Scenario: Create a Microsoft Sentinel custom destination returns "OK" response
62+
Given new "CreateLogsCustomDestination" request
63+
And body with value {"data": {"attributes": {"enabled": false, "forward_tags": false, "forward_tags_restriction_list": ["datacenter", "host"], "forward_tags_restriction_list_type": "ALLOW_LIST", "forwarder_destination": {"type": "microsoft_sentinel", "tenant_id": "f3c9a8a1-4c2e-4d2e-b911-9f3c28c3c8b2", "client_id": "9a2f4d83-2b5e-429e-a35a-2b3c4182db71", "data_collection_endpoint": "https://my-dce-5kyl.eastus-1.ingest.monitor.azure.com", "data_collection_rule_id": "dcr-000a00a000a00000a000000aa000a0aa", "stream_name": "Custom-MyTable"}, "name": "Nginx logs", "query": "source:nginx"}, "type": "custom_destination"}}
64+
When the request is sent
65+
Then the response status is 200 OK
66+
And the response "data.type" is equal to "custom_destination"
67+
And the response "data" has field "id"
68+
And the response "data.attributes.name" is equal to "Nginx logs"
69+
And the response "data.attributes.query" is equal to "source:nginx"
70+
And the response "data.attributes.forwarder_destination.type" is equal to "microsoft_sentinel"
71+
And the response "data.attributes.forwarder_destination.tenant_id" is equal to "f3c9a8a1-4c2e-4d2e-b911-9f3c28c3c8b2"
72+
And the response "data.attributes.forwarder_destination.client_id" is equal to "9a2f4d83-2b5e-429e-a35a-2b3c4182db71"
73+
And the response "data.attributes.forwarder_destination.data_collection_endpoint" is equal to "https://my-dce-5kyl.eastus-1.ingest.monitor.azure.com"
74+
And the response "data.attributes.forwarder_destination.data_collection_rule_id" is equal to "dcr-000a00a000a00000a000000aa000a0aa"
75+
And the response "data.attributes.forwarder_destination.stream_name" is equal to "Custom-MyTable"
76+
And the response "data.attributes.enabled" is false
77+
And the response "data.attributes.forward_tags" is false
78+
And the response "data.attributes.forward_tags_restriction_list" has length 2
79+
And the response "data.attributes.forward_tags_restriction_list" array contains value "datacenter"
80+
And the response "data.attributes.forward_tags_restriction_list" array contains value "host"
81+
And the response "data.attributes.forward_tags_restriction_list_type" is equal to "ALLOW_LIST"
82+
6083
@team:DataDog/logs-backend @team:DataDog/logs-forwarding
6184
Scenario: Create a Splunk custom destination returns "OK" response
6285
Given new "CreateLogsCustomDestination" request

lib/datadog_api_client/inflector.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,6 +1518,8 @@ def overrides
15181518
"v2.custom_destination_forward_destination_elasticsearch_type" => "CustomDestinationForwardDestinationElasticsearchType",
15191519
"v2.custom_destination_forward_destination_http" => "CustomDestinationForwardDestinationHttp",
15201520
"v2.custom_destination_forward_destination_http_type" => "CustomDestinationForwardDestinationHttpType",
1521+
"v2.custom_destination_forward_destination_microsoft_sentinel" => "CustomDestinationForwardDestinationMicrosoftSentinel",
1522+
"v2.custom_destination_forward_destination_microsoft_sentinel_type" => "CustomDestinationForwardDestinationMicrosoftSentinelType",
15211523
"v2.custom_destination_forward_destination_splunk" => "CustomDestinationForwardDestinationSplunk",
15221524
"v2.custom_destination_forward_destination_splunk_type" => "CustomDestinationForwardDestinationSplunkType",
15231525
"v2.custom_destination_http_destination_auth" => "CustomDestinationHttpDestinationAuth",
@@ -1533,6 +1535,8 @@ def overrides
15331535
"v2.custom_destination_response_forward_destination_elasticsearch_type" => "CustomDestinationResponseForwardDestinationElasticsearchType",
15341536
"v2.custom_destination_response_forward_destination_http" => "CustomDestinationResponseForwardDestinationHttp",
15351537
"v2.custom_destination_response_forward_destination_http_type" => "CustomDestinationResponseForwardDestinationHttpType",
1538+
"v2.custom_destination_response_forward_destination_microsoft_sentinel" => "CustomDestinationResponseForwardDestinationMicrosoftSentinel",
1539+
"v2.custom_destination_response_forward_destination_microsoft_sentinel_type" => "CustomDestinationResponseForwardDestinationMicrosoftSentinelType",
15361540
"v2.custom_destination_response_forward_destination_splunk" => "CustomDestinationResponseForwardDestinationSplunk",
15371541
"v2.custom_destination_response_forward_destination_splunk_type" => "CustomDestinationResponseForwardDestinationSplunkType",
15381542
"v2.custom_destination_response_http_destination_auth" => "CustomDestinationResponseHttpDestinationAuth",

lib/datadog_api_client/v2/models/custom_destination_forward_destination.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ def openapi_one_of
2828
[
2929
:'CustomDestinationForwardDestinationHttp',
3030
:'CustomDestinationForwardDestinationSplunk',
31-
:'CustomDestinationForwardDestinationElasticsearch'
31+
:'CustomDestinationForwardDestinationElasticsearch',
32+
:'CustomDestinationForwardDestinationMicrosoftSentinel'
3233
]
3334
end
3435
# Builds the object

0 commit comments

Comments
 (0)