Skip to content

Commit 7923e9b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Adding Datadog Connection to Connection API (#2521)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent d3db2dd commit 7923e9b

14 files changed

+435
-3
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": "dc49df4",
3-
"generated": "2025-07-18 13:57:17.436"
2+
"spec_repo_commit": "0f24b8e",
3+
"generated": "2025-07-18 16:52:54.480"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2016,11 +2016,13 @@ components:
20162016
description: The definition of `ActionConnectionIntegration` object.
20172017
oneOf:
20182018
- $ref: '#/components/schemas/AWSIntegration'
2019+
- $ref: '#/components/schemas/DatadogIntegration'
20192020
- $ref: '#/components/schemas/HTTPIntegration'
20202021
ActionConnectionIntegrationUpdate:
20212022
description: The definition of `ActionConnectionIntegrationUpdate` object.
20222023
oneOf:
20232024
- $ref: '#/components/schemas/AWSIntegrationUpdate'
2025+
- $ref: '#/components/schemas/DatadogIntegrationUpdate'
20242026
- $ref: '#/components/schemas/HTTPIntegrationUpdate'
20252027
ActionQuery:
20262028
description: An action query. This query type is used to trigger an action,
@@ -12378,6 +12380,103 @@ components:
1237812380
required:
1237912381
- databaseMonitoringTrigger
1238012382
type: object
12383+
DatadogAPIKey:
12384+
description: The definition of the `DatadogAPIKey` object.
12385+
properties:
12386+
api_key:
12387+
description: The `DatadogAPIKey` `api_key`.
12388+
example: ''
12389+
type: string
12390+
app_key:
12391+
description: The `DatadogAPIKey` `app_key`.
12392+
example: ''
12393+
type: string
12394+
datacenter:
12395+
description: The `DatadogAPIKey` `datacenter`.
12396+
example: ''
12397+
type: string
12398+
subdomain:
12399+
description: Custom subdomain used for Datadog URLs generated with this
12400+
Connection. For example, if this org uses `https://acme.datadoghq.com`
12401+
to access Datadog, set this field to `acme`. If this field is omitted,
12402+
generated URLs will use the default site URL for its datacenter (see [https://docs.datadoghq.com/getting_started/site](https://docs.datadoghq.com/getting_started/site)).
12403+
type: string
12404+
type:
12405+
$ref: '#/components/schemas/DatadogAPIKeyType'
12406+
required:
12407+
- type
12408+
- datacenter
12409+
- api_key
12410+
- app_key
12411+
type: object
12412+
DatadogAPIKeyType:
12413+
description: The definition of the `DatadogAPIKey` object.
12414+
enum:
12415+
- DatadogAPIKey
12416+
example: DatadogAPIKey
12417+
type: string
12418+
x-enum-varnames:
12419+
- DATADOGAPIKEY
12420+
DatadogAPIKeyUpdate:
12421+
description: The definition of the `DatadogAPIKey` object.
12422+
properties:
12423+
api_key:
12424+
description: The `DatadogAPIKeyUpdate` `api_key`.
12425+
type: string
12426+
app_key:
12427+
description: The `DatadogAPIKeyUpdate` `app_key`.
12428+
type: string
12429+
datacenter:
12430+
description: The `DatadogAPIKeyUpdate` `datacenter`.
12431+
type: string
12432+
subdomain:
12433+
description: Custom subdomain used for Datadog URLs generated with this
12434+
Connection. For example, if this org uses `https://acme.datadoghq.com`
12435+
to access Datadog, set this field to `acme`. If this field is omitted,
12436+
generated URLs will use the default site URL for its datacenter (see [https://docs.datadoghq.com/getting_started/site](https://docs.datadoghq.com/getting_started/site)).
12437+
type: string
12438+
type:
12439+
$ref: '#/components/schemas/DatadogAPIKeyType'
12440+
required:
12441+
- type
12442+
type: object
12443+
DatadogCredentials:
12444+
description: The definition of the `DatadogCredentials` object.
12445+
oneOf:
12446+
- $ref: '#/components/schemas/DatadogAPIKey'
12447+
DatadogCredentialsUpdate:
12448+
description: The definition of the `DatadogCredentialsUpdate` object.
12449+
oneOf:
12450+
- $ref: '#/components/schemas/DatadogAPIKeyUpdate'
12451+
DatadogIntegration:
12452+
description: The definition of the `DatadogIntegration` object.
12453+
properties:
12454+
credentials:
12455+
$ref: '#/components/schemas/DatadogCredentials'
12456+
type:
12457+
$ref: '#/components/schemas/DatadogIntegrationType'
12458+
required:
12459+
- type
12460+
- credentials
12461+
type: object
12462+
DatadogIntegrationType:
12463+
description: The definition of the `DatadogIntegrationType` object.
12464+
enum:
12465+
- Datadog
12466+
example: Datadog
12467+
type: string
12468+
x-enum-varnames:
12469+
- DATADOG
12470+
DatadogIntegrationUpdate:
12471+
description: The definition of the `DatadogIntegrationUpdate` object.
12472+
properties:
12473+
credentials:
12474+
$ref: '#/components/schemas/DatadogCredentialsUpdate'
12475+
type:
12476+
$ref: '#/components/schemas/DatadogIntegrationType'
12477+
required:
12478+
- type
12479+
type: object
1238112480
Dataset:
1238212481
description: Dataset object.
1238312482
properties:

services/action_connection/src/v2/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ export { AWSIntegrationType } from "./models/AWSIntegrationType";
2929
export { AWSIntegrationUpdate } from "./models/AWSIntegrationUpdate";
3030
export { CreateActionConnectionRequest } from "./models/CreateActionConnectionRequest";
3131
export { CreateActionConnectionResponse } from "./models/CreateActionConnectionResponse";
32+
export { DatadogAPIKey } from "./models/DatadogAPIKey";
33+
export { DatadogAPIKeyType } from "./models/DatadogAPIKeyType";
34+
export { DatadogAPIKeyUpdate } from "./models/DatadogAPIKeyUpdate";
35+
export { DatadogCredentials } from "./models/DatadogCredentials";
36+
export { DatadogCredentialsUpdate } from "./models/DatadogCredentialsUpdate";
37+
export { DatadogIntegration } from "./models/DatadogIntegration";
38+
export { DatadogIntegrationType } from "./models/DatadogIntegrationType";
39+
export { DatadogIntegrationUpdate } from "./models/DatadogIntegrationUpdate";
3240
export { GetActionConnectionResponse } from "./models/GetActionConnectionResponse";
3341
export { GetAppKeyRegistrationResponse } from "./models/GetAppKeyRegistrationResponse";
3442
export { HTTPBody } from "./models/HTTPBody";
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import { UnparsedObject } from "@datadog/datadog-api-client";
22

33
import { AWSIntegration } from "./AWSIntegration";
4+
import { DatadogIntegration } from "./DatadogIntegration";
45
import { HTTPIntegration } from "./HTTPIntegration";
56

67
/**
78
* The definition of `ActionConnectionIntegration` object.
89
*/
910
export type ActionConnectionIntegration =
1011
| AWSIntegration
12+
| DatadogIntegration
1113
| HTTPIntegration
1214
| UnparsedObject;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import { UnparsedObject } from "@datadog/datadog-api-client";
22

33
import { AWSIntegrationUpdate } from "./AWSIntegrationUpdate";
4+
import { DatadogIntegrationUpdate } from "./DatadogIntegrationUpdate";
45
import { HTTPIntegrationUpdate } from "./HTTPIntegrationUpdate";
56

67
/**
78
* The definition of `ActionConnectionIntegrationUpdate` object.
89
*/
910
export type ActionConnectionIntegrationUpdate =
1011
| AWSIntegrationUpdate
12+
| DatadogIntegrationUpdate
1113
| HTTPIntegrationUpdate
1214
| UnparsedObject;
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
import { AttributeTypeMap } from "@datadog/datadog-api-client";
2+
3+
import { DatadogAPIKeyType } from "./DatadogAPIKeyType";
4+
5+
/**
6+
* The definition of the `DatadogAPIKey` object.
7+
*/
8+
export class DatadogAPIKey {
9+
/**
10+
* The `DatadogAPIKey` `api_key`.
11+
*/
12+
"apiKey": string;
13+
/**
14+
* The `DatadogAPIKey` `app_key`.
15+
*/
16+
"appKey": string;
17+
/**
18+
* The `DatadogAPIKey` `datacenter`.
19+
*/
20+
"datacenter": string;
21+
/**
22+
* Custom subdomain used for Datadog URLs generated with this Connection. For example, if this org uses `https://acme.datadoghq.com` to access Datadog, set this field to `acme`. If this field is omitted, generated URLs will use the default site URL for its datacenter (see [https://docs.datadoghq.com/getting_started/site](https://docs.datadoghq.com/getting_started/site)).
23+
*/
24+
"subdomain"?: string;
25+
/**
26+
* The definition of the `DatadogAPIKey` object.
27+
*/
28+
"type": DatadogAPIKeyType;
29+
/**
30+
* A container for additional, undeclared properties.
31+
* This is a holder for any undeclared properties as specified with
32+
* the 'additionalProperties' keyword in the OAS document.
33+
*/
34+
"additionalProperties"?: { [key: string]: any };
35+
/**
36+
* @ignore
37+
*/
38+
"_unparsed"?: boolean;
39+
40+
/**
41+
* @ignore
42+
*/
43+
static readonly attributeTypeMap: AttributeTypeMap = {
44+
apiKey: {
45+
baseName: "api_key",
46+
type: "string",
47+
required: true,
48+
},
49+
appKey: {
50+
baseName: "app_key",
51+
type: "string",
52+
required: true,
53+
},
54+
datacenter: {
55+
baseName: "datacenter",
56+
type: "string",
57+
required: true,
58+
},
59+
subdomain: {
60+
baseName: "subdomain",
61+
type: "string",
62+
},
63+
type: {
64+
baseName: "type",
65+
type: "DatadogAPIKeyType",
66+
required: true,
67+
},
68+
additionalProperties: {
69+
baseName: "additionalProperties",
70+
type: "{ [key: string]: any; }",
71+
},
72+
};
73+
74+
/**
75+
* @ignore
76+
*/
77+
static getAttributeTypeMap(): AttributeTypeMap {
78+
return DatadogAPIKey.attributeTypeMap;
79+
}
80+
81+
public constructor() {}
82+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { UnparsedObject } from "@datadog/datadog-api-client";
2+
3+
/**
4+
* The definition of the `DatadogAPIKey` object.
5+
*/
6+
export type DatadogAPIKeyType = typeof DATADOGAPIKEY | UnparsedObject;
7+
export const DATADOGAPIKEY = "DatadogAPIKey";
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
import { AttributeTypeMap } from "@datadog/datadog-api-client";
2+
3+
import { DatadogAPIKeyType } from "./DatadogAPIKeyType";
4+
5+
/**
6+
* The definition of the `DatadogAPIKey` object.
7+
*/
8+
export class DatadogAPIKeyUpdate {
9+
/**
10+
* The `DatadogAPIKeyUpdate` `api_key`.
11+
*/
12+
"apiKey"?: string;
13+
/**
14+
* The `DatadogAPIKeyUpdate` `app_key`.
15+
*/
16+
"appKey"?: string;
17+
/**
18+
* The `DatadogAPIKeyUpdate` `datacenter`.
19+
*/
20+
"datacenter"?: string;
21+
/**
22+
* Custom subdomain used for Datadog URLs generated with this Connection. For example, if this org uses `https://acme.datadoghq.com` to access Datadog, set this field to `acme`. If this field is omitted, generated URLs will use the default site URL for its datacenter (see [https://docs.datadoghq.com/getting_started/site](https://docs.datadoghq.com/getting_started/site)).
23+
*/
24+
"subdomain"?: string;
25+
/**
26+
* The definition of the `DatadogAPIKey` object.
27+
*/
28+
"type": DatadogAPIKeyType;
29+
/**
30+
* A container for additional, undeclared properties.
31+
* This is a holder for any undeclared properties as specified with
32+
* the 'additionalProperties' keyword in the OAS document.
33+
*/
34+
"additionalProperties"?: { [key: string]: any };
35+
/**
36+
* @ignore
37+
*/
38+
"_unparsed"?: boolean;
39+
40+
/**
41+
* @ignore
42+
*/
43+
static readonly attributeTypeMap: AttributeTypeMap = {
44+
apiKey: {
45+
baseName: "api_key",
46+
type: "string",
47+
},
48+
appKey: {
49+
baseName: "app_key",
50+
type: "string",
51+
},
52+
datacenter: {
53+
baseName: "datacenter",
54+
type: "string",
55+
},
56+
subdomain: {
57+
baseName: "subdomain",
58+
type: "string",
59+
},
60+
type: {
61+
baseName: "type",
62+
type: "DatadogAPIKeyType",
63+
required: true,
64+
},
65+
additionalProperties: {
66+
baseName: "additionalProperties",
67+
type: "{ [key: string]: any; }",
68+
},
69+
};
70+
71+
/**
72+
* @ignore
73+
*/
74+
static getAttributeTypeMap(): AttributeTypeMap {
75+
return DatadogAPIKeyUpdate.attributeTypeMap;
76+
}
77+
78+
public constructor() {}
79+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { UnparsedObject } from "@datadog/datadog-api-client";
2+
3+
import { DatadogAPIKey } from "./DatadogAPIKey";
4+
5+
/**
6+
* The definition of the `DatadogCredentials` object.
7+
*/
8+
export type DatadogCredentials = DatadogAPIKey | UnparsedObject;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { UnparsedObject } from "@datadog/datadog-api-client";
2+
3+
import { DatadogAPIKeyUpdate } from "./DatadogAPIKeyUpdate";
4+
5+
/**
6+
* The definition of the `DatadogCredentialsUpdate` object.
7+
*/
8+
export type DatadogCredentialsUpdate = DatadogAPIKeyUpdate | UnparsedObject;

0 commit comments

Comments
 (0)