Skip to content

Commit 1dc66a1

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit dd1589d4 of spec repo
1 parent a5febfa commit 1dc66a1

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-19 12:11:20.423768",
8-
"spec_repo_commit": "a171e0a8"
7+
"regenerated": "2025-06-20 20:02:43.980787",
8+
"spec_repo_commit": "dd1589d4"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-19 12:11:20.440846",
13-
"spec_repo_commit": "a171e0a8"
12+
"regenerated": "2025-06-20 20:02:43.996611",
13+
"spec_repo_commit": "dd1589d4"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10586,6 +10586,7 @@ components:
1058610586
- $ref: '#/components/schemas/CustomDestinationForwardDestinationHttp'
1058710587
- $ref: '#/components/schemas/CustomDestinationForwardDestinationSplunk'
1058810588
- $ref: '#/components/schemas/CustomDestinationForwardDestinationElasticsearch'
10589+
- $ref: '#/components/schemas/CustomDestinationForwardDestinationMicrosoftSentinel'
1058910590
CustomDestinationForwardDestinationElasticsearch:
1059010591
description: The Elasticsearch destination.
1059110592
properties:
@@ -10670,6 +10671,49 @@ components:
1067010671
type: string
1067110672
x-enum-varnames:
1067210673
- HTTP
10674+
CustomDestinationForwardDestinationMicrosoftSentinel:
10675+
description: The Microsoft Sentinel destination.
10676+
properties:
10677+
client_id:
10678+
description: Client ID from the Datadog Azure integration.
10679+
example: 9a2f4d83-2b5e-429e-a35a-2b3c4182db71
10680+
type: string
10681+
data_collection_endpoint:
10682+
description: Azure data collection endpoint.
10683+
example: https://my-dce-5kyl.eastus-1.ingest.monitor.azure.com
10684+
type: string
10685+
data_collection_rule_id:
10686+
description: Azure data collection rule ID.
10687+
example: dcr-000a00a000a00000a000000aa000a0aa
10688+
type: string
10689+
stream_name:
10690+
description: Azure stream name.
10691+
example: Custom-MyTable
10692+
type: string
10693+
writeOnly: true
10694+
tenant_id:
10695+
description: Tenant ID from the Datadog Azure integration.
10696+
example: f3c9a8a1-4c2e-4d2e-b911-9f3c28c3c8b2
10697+
type: string
10698+
type:
10699+
$ref: '#/components/schemas/CustomDestinationForwardDestinationMicrosoftSentinelType'
10700+
required:
10701+
- type
10702+
- tenant_id
10703+
- client_id
10704+
- data_collection_endpoint
10705+
- data_collection_rule_id
10706+
- stream_name
10707+
type: object
10708+
CustomDestinationForwardDestinationMicrosoftSentinelType:
10709+
default: microsoft_sentinel
10710+
description: Type of the Microsoft Sentinel destination.
10711+
enum:
10712+
- microsoft_sentinel
10713+
example: microsoft_sentinel
10714+
type: string
10715+
x-enum-varnames:
10716+
- MICROSOFT_SENTINEL
1067310717
CustomDestinationForwardDestinationSplunk:
1067410718
description: The Splunk HTTP Event Collector (HEC) destination.
1067510719
properties:
@@ -10845,6 +10889,7 @@ components:
1084510889
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationHttp'
1084610890
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationSplunk'
1084710891
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationElasticsearch'
10892+
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationMicrosoftSentinel'
1084810893
CustomDestinationResponseForwardDestinationElasticsearch:
1084910894
description: The Elasticsearch destination.
1085010895
properties:
@@ -10929,6 +10974,49 @@ components:
1092910974
type: string
1093010975
x-enum-varnames:
1093110976
- HTTP
10977+
CustomDestinationResponseForwardDestinationMicrosoftSentinel:
10978+
description: The Microsoft Sentinel destination.
10979+
properties:
10980+
client_id:
10981+
description: Client ID from the Datadog Azure integration.
10982+
example: 9a2f4d83-2b5e-429e-a35a-2b3c4182db71
10983+
type: string
10984+
data_collection_endpoint:
10985+
description: Azure data collection endpoint.
10986+
example: https://my-dce-5kyl.eastus-1.ingest.monitor.azure.com
10987+
type: string
10988+
data_collection_rule_id:
10989+
description: Azure data collection rule ID.
10990+
example: dcr-000a00a000a00000a000000aa000a0aa
10991+
type: string
10992+
stream_name:
10993+
description: Azure stream name.
10994+
example: Custom-MyTable
10995+
type: string
10996+
writeOnly: true
10997+
tenant_id:
10998+
description: Tenant ID from the Datadog Azure integration.
10999+
example: f3c9a8a1-4c2e-4d2e-b911-9f3c28c3c8b2
11000+
type: string
11001+
type:
11002+
$ref: '#/components/schemas/CustomDestinationResponseForwardDestinationMicrosoftSentinelType'
11003+
required:
11004+
- type
11005+
- tenant_id
11006+
- client_id
11007+
- data_collection_endpoint
11008+
- data_collection_rule_id
11009+
- stream_name
11010+
type: object
11011+
CustomDestinationResponseForwardDestinationMicrosoftSentinelType:
11012+
default: microsoft_sentinel
11013+
description: Type of the Microsoft Sentinel destination.
11014+
enum:
11015+
- microsoft_sentinel
11016+
example: microsoft_sentinel
11017+
type: string
11018+
x-enum-varnames:
11019+
- MICROSOFT_SENTINEL
1093211020
CustomDestinationResponseForwardDestinationSplunk:
1093311021
description: The Splunk HTTP Event Collector (HEC) destination.
1093411022
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)