Skip to content

Commit b773113

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a18fdf5e of spec repo
1 parent dc072ed commit b773113

11 files changed

+661
-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-17 18:21:57.998721",
8-
"spec_repo_commit": "b1a1c000"
7+
"regenerated": "2025-06-18 09:01:46.790772",
8+
"spec_repo_commit": "a18fdf5e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-17 18:21:58.015071",
13-
"spec_repo_commit": "b1a1c000"
12+
"regenerated": "2025-06-18 09:01:46.807604",
13+
"spec_repo_commit": "a18fdf5e"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10468,6 +10468,7 @@ components:
1046810468
- $ref: '#/components/schemas/CustomDestinationForwardDestinationHttp'
1046910469
- $ref: '#/components/schemas/CustomDestinationForwardDestinationSplunk'
1047010470
- $ref: '#/components/schemas/CustomDestinationForwardDestinationElasticsearch'
10471+
- $ref: '#/components/schemas/CustomDestinationForwardDestinationMicrosoftSentinel'
1047110472
CustomDestinationForwardDestinationElasticsearch:
1047210473
description: The Elasticsearch destination.
1047310474
properties:
@@ -10552,6 +10553,49 @@ components:
1055210553
type: string
1055310554
x-enum-varnames:
1055410555
- HTTP
10556+
CustomDestinationForwardDestinationMicrosoftSentinel:
10557+
description: The Microsoft Sentinel destination.
10558+
properties:
10559+
client_id:
10560+
description: Client ID from the Datadog Azure Integration.
10561+
example: 9a2f4d83-2b5e-429e-a35a-2b3c4182db71
10562+
type: string
10563+
data_collection_endpoint:
10564+
description: Azure Data Collection Endpoint.
10565+
example: https://my-dce-5kyl.eastus-1.ingest.monitor.azure.com
10566+
type: string
10567+
data_collection_rule_id:
10568+
description: Azure Data Collection Rule ID.
10569+
example: dcr-000a00a000a00000a000000aa000a0aa
10570+
type: string
10571+
stream_name:
10572+
description: Azure stream name.
10573+
example: Custom-MyTable
10574+
type: string
10575+
writeOnly: true
10576+
tenant_id:
10577+
description: Tenant ID from the Datadog Azure Integration.
10578+
example: f3c9a8a1-4c2e-4d2e-b911-9f3c28c3c8b2
10579+
type: string
10580+
type:
10581+
$ref: '#/components/schemas/CustomDestinationForwardDestinationMicrosoftSentinelType'
10582+
required:
10583+
- type
10584+
- tenant_id
10585+
- client_id
10586+
- data_collection_endpoint
10587+
- data_collection_rule_id
10588+
- stream_name
10589+
type: object
10590+
CustomDestinationForwardDestinationMicrosoftSentinelType:
10591+
default: microsoft_sentinel
10592+
description: Type of the Microsoft Sentinel destination.
10593+
enum:
10594+
- microsoft_sentinel
10595+
example: microsoft_sentinel
10596+
type: string
10597+
x-enum-varnames:
10598+
- MICROSOFT_SENTINEL
1055510599
CustomDestinationForwardDestinationSplunk:
1055610600
description: The Splunk HTTP Event Collector (HEC) destination.
1055710601
properties:
@@ -10727,6 +10771,7 @@ components:
1072710771
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationHttp'
1072810772
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationSplunk'
1072910773
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationElasticsearch'
10774+
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationMicrosoftSentinel'
1073010775
CustomDestinationResponseForwardDestinationElasticsearch:
1073110776
description: The Elasticsearch destination.
1073210777
properties:
@@ -10811,6 +10856,49 @@ components:
1081110856
type: string
1081210857
x-enum-varnames:
1081310858
- HTTP
10859+
CustomDestinationResponseForwardDestinationMicrosoftSentinel:
10860+
description: The Microsoft Sentinel destination.
10861+
properties:
10862+
client_id:
10863+
description: Client ID from the Datadog Azure Integration.
10864+
example: 9a2f4d83-2b5e-429e-a35a-2b3c4182db71
10865+
type: string
10866+
data_collection_endpoint:
10867+
description: Azure Data Collection Endpoint.
10868+
example: https://my-dce-5kyl.eastus-1.ingest.monitor.azure.com
10869+
type: string
10870+
data_collection_rule_id:
10871+
description: Azure Data Collection Rule ID.
10872+
example: dcr-000a00a000a00000a000000aa000a0aa
10873+
type: string
10874+
stream_name:
10875+
description: Azure stream name.
10876+
example: Custom-MyTable
10877+
type: string
10878+
writeOnly: true
10879+
tenant_id:
10880+
description: Tenant ID from the Datadog Azure Integration.
10881+
example: f3c9a8a1-4c2e-4d2e-b911-9f3c28c3c8b2
10882+
type: string
10883+
type:
10884+
$ref: '#/components/schemas/CustomDestinationResponseForwardDestinationMicrosoftSentinelType'
10885+
required:
10886+
- type
10887+
- tenant_id
10888+
- client_id
10889+
- data_collection_endpoint
10890+
- data_collection_rule_id
10891+
- stream_name
10892+
type: object
10893+
CustomDestinationResponseForwardDestinationMicrosoftSentinelType:
10894+
default: microsoft_sentinel
10895+
description: Type of the Microsoft Sentinel destination.
10896+
enum:
10897+
- microsoft_sentinel
10898+
example: microsoft_sentinel
10899+
type: string
10900+
x-enum-varnames:
10901+
- MICROSOFT_SENTINEL
1081410902
CustomDestinationResponseForwardDestinationSplunk:
1081510903
description: The Splunk HTTP Event Collector (HEC) destination.
1081610904
properties:
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
@@ -1513,6 +1513,8 @@ def overrides
15131513
"v2.custom_destination_forward_destination_elasticsearch_type" => "CustomDestinationForwardDestinationElasticsearchType",
15141514
"v2.custom_destination_forward_destination_http" => "CustomDestinationForwardDestinationHttp",
15151515
"v2.custom_destination_forward_destination_http_type" => "CustomDestinationForwardDestinationHttpType",
1516+
"v2.custom_destination_forward_destination_microsoft_sentinel" => "CustomDestinationForwardDestinationMicrosoftSentinel",
1517+
"v2.custom_destination_forward_destination_microsoft_sentinel_type" => "CustomDestinationForwardDestinationMicrosoftSentinelType",
15161518
"v2.custom_destination_forward_destination_splunk" => "CustomDestinationForwardDestinationSplunk",
15171519
"v2.custom_destination_forward_destination_splunk_type" => "CustomDestinationForwardDestinationSplunkType",
15181520
"v2.custom_destination_http_destination_auth" => "CustomDestinationHttpDestinationAuth",
@@ -1528,6 +1530,8 @@ def overrides
15281530
"v2.custom_destination_response_forward_destination_elasticsearch_type" => "CustomDestinationResponseForwardDestinationElasticsearchType",
15291531
"v2.custom_destination_response_forward_destination_http" => "CustomDestinationResponseForwardDestinationHttp",
15301532
"v2.custom_destination_response_forward_destination_http_type" => "CustomDestinationResponseForwardDestinationHttpType",
1533+
"v2.custom_destination_response_forward_destination_microsoft_sentinel" => "CustomDestinationResponseForwardDestinationMicrosoftSentinel",
1534+
"v2.custom_destination_response_forward_destination_microsoft_sentinel_type" => "CustomDestinationResponseForwardDestinationMicrosoftSentinelType",
15311535
"v2.custom_destination_response_forward_destination_splunk" => "CustomDestinationResponseForwardDestinationSplunk",
15321536
"v2.custom_destination_response_forward_destination_splunk_type" => "CustomDestinationResponseForwardDestinationSplunkType",
15331537
"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)