Skip to content

Commit 3407a6c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 4edcbb5 of spec repo
1 parent 732686d commit 3407a6c

File tree

136 files changed

+7974
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+7974
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 1365 additions & 0 deletions
Large diffs are not rendered by default.

features/v2/cohort.feature

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@endpoint(cohort) @endpoint(cohort-v2)
2+
Feature: Cohort
3+
API for Cohort.
4+
5+
Background:
6+
Given a valid "apiKeyAuth" key in the system
7+
And a valid "appKeyAuth" key in the system
8+
And an instance of "Cohort" API
9+
10+
@generated @skip @team:DataDog/product-analytics-backend
11+
Scenario: Get rum cohort returns "OK" response
12+
Given operation "GetRumCohort" enabled
13+
And new "GetRumCohort" request
14+
And body with value {"data": {"attributes": {"definition": {"audience_filters": {"accounts": [{"name": ""}], "segments": [{"name": "", "segment_id": ""}], "users": [{"name": ""}]}}, "time": {}}, "type": "cohort_request"}}
15+
When the request is sent
16+
Then the response status is 200 OK
17+
18+
@generated @skip @team:DataDog/product-analytics-backend
19+
Scenario: Get rum cohort users returns "OK" response
20+
Given operation "GetRumCohortUsers" enabled
21+
And new "GetRumCohortUsers" request
22+
And body with value {"data": {"attributes": {"definition": {"audience_filters": {"accounts": [{"name": ""}], "segments": [{"name": "", "segment_id": ""}], "users": [{"name": ""}]}}, "time": {}}, "type": "cohort_users_request"}}
23+
When the request is sent
24+
Then the response status is 200 OK

features/v2/funnel.feature

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@endpoint(funnel) @endpoint(funnel-v2)
2+
Feature: Funnel
3+
API for funnel.
4+
5+
Background:
6+
Given a valid "apiKeyAuth" key in the system
7+
And a valid "appKeyAuth" key in the system
8+
And an instance of "Funnel" API
9+
10+
@generated @skip @team:DataDog/product-analytics-backend
11+
Scenario: Get rum funnel returns "OK" response
12+
Given operation "GetRumFunnel" enabled
13+
And new "GetRumFunnel" request
14+
And body with value {"data": {"attributes": {"data_source": "rum", "enforced_execution_type": "", "request_id": "", "search": {"cross_session_filter": "", "query_string": "@type:view", "steps": [{"facet": "@view.name", "step_filter": "", "value": "/apm/home"}, {"facet": "@view.name", "step_filter": "", "value": "/apm/traces"}], "subquery_id": ""}, "time": {"from": 1756425600000, "to": 1756857600000}}, "id": "funnel_request", "type": "funnel_request"}}
15+
When the request is sent
16+
Then the response status is 200 OK
17+
18+
@generated @skip @team:DataDog/product-analytics-backend
19+
Scenario: Get rum funnel step suggestions returns "OK" response
20+
Given operation "GetRumFunnelStepSuggestions" enabled
21+
And new "GetRumFunnelStepSuggestions" request
22+
And body with value {"data": {"attributes": {"data_source": "", "search": {"cross_session_filter": "", "query_string": "@type:view", "steps": [{"facet": "@view.name", "step_filter": "", "value": "/apm/home"}], "subquery_id": ""}, "term_search": {"query": "apm"}, "time": {"from": 1756425600000, "to": 1756857600000}}, "id": "funnel_suggestion_request", "type": "funnel_suggestion_request"}}
23+
When the request is sent
24+
Then the response status is 200 OK

features/v2/segments.feature

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
@endpoint(segments) @endpoint(segments-v2)
2+
Feature: Segments
3+
API for segments.
4+
5+
Background:
6+
Given a valid "apiKeyAuth" key in the system
7+
And a valid "appKeyAuth" key in the system
8+
And an instance of "Segments" API
9+
10+
@generated @skip @team:DataDog/product-analytics-backend
11+
Scenario: Create rum segment returns "None" response
12+
Given operation "CreateRumSegment" enabled
13+
And new "CreateRumSegment" request
14+
And body with value {"data": {"attributes": {"created_at": "0001-01-01T00:00:00Z", "created_by": {"handle": "", "id": "", "uuid": ""}, "data_query": {"event_platform": [{"facet": "@usr.id", "from": "2025-08-01", "name": "high_value_users", "query": "@type:view @view.name:/logs @usr.session_duration:>300000", "to": "2025-09-01"}]}, "description": "Users who frequently visit logs and have high session duration", "modified_at": "0001-01-01T00:00:00Z", "modified_by": {"handle": "", "id": "", "uuid": ""}, "name": "High-Value Users", "org_id": 123456, "source": 0, "tags": ["high-value", "logs", "active"], "version": 1}, "id": "segment-12345", "type": "segment"}}
15+
When the request is sent
16+
Then the response status is 201 None
17+
18+
@generated @skip @team:DataDog/product-analytics-backend
19+
Scenario: Initialize rum segments returns "OK" response
20+
Given operation "InitializeRumSegments" enabled
21+
And new "InitializeRumSegments" request
22+
When the request is sent
23+
Then the response status is 200 OK
24+
25+
@generated @skip @team:DataDog/product-analytics-backend
26+
Scenario: List rum segments returns "OK" response
27+
Given operation "ListRumSegments" enabled
28+
And new "ListRumSegments" request
29+
When the request is sent
30+
Then the response status is 200 OK

features/v2/undo.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3254,6 +3254,18 @@
32543254
"type": "idempotent"
32553255
}
32563256
},
3257+
"GetRumCohort": {
3258+
"tag": "Cohort",
3259+
"undo": {
3260+
"type": "safe"
3261+
}
3262+
},
3263+
"GetRumCohortUsers": {
3264+
"tag": "Cohort",
3265+
"undo": {
3266+
"type": "safe"
3267+
}
3268+
},
32573269
"ListRumMetrics": {
32583270
"tag": "Rum Metrics",
32593271
"undo": {
@@ -3303,6 +3315,42 @@
33033315
"type": "safe"
33043316
}
33053317
},
3318+
"GetRumFunnel": {
3319+
"tag": "Funnel",
3320+
"undo": {
3321+
"type": "safe"
3322+
}
3323+
},
3324+
"GetRumFunnelStepSuggestions": {
3325+
"tag": "Funnel",
3326+
"undo": {
3327+
"type": "safe"
3328+
}
3329+
},
3330+
"GetRumSankey": {
3331+
"tag": "User Flow",
3332+
"undo": {
3333+
"type": "safe"
3334+
}
3335+
},
3336+
"ListRumSegments": {
3337+
"tag": "Segments",
3338+
"undo": {
3339+
"type": "safe"
3340+
}
3341+
},
3342+
"CreateRumSegment": {
3343+
"tag": "Segments",
3344+
"undo": {
3345+
"type": "safe"
3346+
}
3347+
},
3348+
"InitializeRumSegments": {
3349+
"tag": "Segments",
3350+
"undo": {
3351+
"type": "safe"
3352+
}
3353+
},
33063354
"UploadIdPMetadata": {
33073355
"tag": "Organizations",
33083356
"undo": {

features/v2/user_flow.feature

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@endpoint(user-flow) @endpoint(user-flow-v2)
2+
Feature: User Flow
3+
API for user flow.
4+
5+
@generated @skip @team:DataDog/product-analytics-backend
6+
Scenario: Get rum sankey returns "OK" response
7+
Given a valid "apiKeyAuth" key in the system
8+
And a valid "appKeyAuth" key in the system
9+
And an instance of "UserFlow" API
10+
And operation "GetRumSankey" enabled
11+
And new "GetRumSankey" request
12+
And body with value {"data": {"attributes": {"data_source": "", "definition": {"entries_per_step": 10, "number_of_steps": 5, "source": "@view.name", "target": "@view.name"}, "enforced_execution_type": "", "request_id": "", "sampling": {"enabled": true}, "search": {"audience_filters": {}, "query": "@type:view @application.id:*", "subquery_id": ""}, "time": {"from": 1756425600000, "to": 1756857600000}}, "id": "sankey_request", "type": "sankey_request"}}
13+
When the request is sent
14+
Then the response status is 200 OK

packages/datadog-api-client/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ apiInstance
367367
| Cloud Cost Management | @datadog/datadog-api-client-cloud-cost-management | [README.md](../../services/cloud-cost-management/README.md) |
368368
| Cloud Network Monitoring | @datadog/datadog-api-client-cloud-network-monitoring | [README.md](../../services/cloud-network-monitoring/README.md) |
369369
| Cloudflare Integration | @datadog/datadog-api-client-cloudflare-integration | [README.md](../../services/cloudflare-integration/README.md) |
370+
| Cohort | @datadog/datadog-api-client-cohort | [README.md](../../services/cohort/README.md) |
370371
| Confluent Cloud | @datadog/datadog-api-client-confluent-cloud | [README.md](../../services/confluent-cloud/README.md) |
371372
| Container Images | @datadog/datadog-api-client-container-images | [README.md](../../services/container-images/README.md) |
372373
| Containers | @datadog/datadog-api-client-containers | [README.md](../../services/containers/README.md) |
@@ -384,6 +385,7 @@ apiInstance
384385
| Events | @datadog/datadog-api-client-events | [README.md](../../services/events/README.md) |
385386
| Fastly Integration | @datadog/datadog-api-client-fastly-integration | [README.md](../../services/fastly-integration/README.md) |
386387
| Fleet Automation | @datadog/datadog-api-client-fleet-automation | [README.md](../../services/fleet-automation/README.md) |
388+
| Funnel | @datadog/datadog-api-client-funnel | [README.md](../../services/funnel/README.md) |
387389
| GCP Integration | @datadog/datadog-api-client-gcp-integration | [README.md](../../services/gcp-integration/README.md) |
388390
| Hosts | @datadog/datadog-api-client-hosts | [README.md](../../services/hosts/README.md) |
389391
| Incident Services | @datadog/datadog-api-client-incident-services | [README.md](../../services/incident-services/README.md) |
@@ -420,6 +422,7 @@ apiInstance
420422
| Rum Metrics | @datadog/datadog-api-client-rum-metrics | [README.md](../../services/rum-metrics/README.md) |
421423
| Rum Retention Filters | @datadog/datadog-api-client-rum-retention-filters | [README.md](../../services/rum-retention-filters/README.md) |
422424
| Security Monitoring | @datadog/datadog-api-client-security-monitoring | [README.md](../../services/security-monitoring/README.md) |
425+
| Segments | @datadog/datadog-api-client-segments | [README.md](../../services/segments/README.md) |
423426
| Sensitive Data Scanner | @datadog/datadog-api-client-sensitive-data-scanner | [README.md](../../services/sensitive-data-scanner/README.md) |
424427
| Service Accounts | @datadog/datadog-api-client-service-accounts | [README.md](../../services/service-accounts/README.md) |
425428
| Service Checks | @datadog/datadog-api-client-service-checks | [README.md](../../services/service-checks/README.md) |
@@ -439,6 +442,7 @@ apiInstance
439442
| Teams | @datadog/datadog-api-client-teams | [README.md](../../services/teams/README.md) |
440443
| Test Optimization | @datadog/datadog-api-client-test-optimization | [README.md](../../services/test-optimization/README.md) |
441444
| Usage Metering | @datadog/datadog-api-client-usage-metering | [README.md](../../services/usage-metering/README.md) |
445+
| User Flow | @datadog/datadog-api-client-user-flow | [README.md](../../services/user-flow/README.md) |
442446
| Users | @datadog/datadog-api-client-users | [README.md](../../services/users/README.md) |
443447
| Webhooks Integration | @datadog/datadog-api-client-webhooks-integration | [README.md](../../services/webhooks-integration/README.md) |
444448
| Workflow Automation | @datadog/datadog-api-client-workflow-automation | [README.md](../../services/workflow-automation/README.md) |

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8001,6 +8001,20 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
80018001
},
80028002
operationResponseType: "RumRetentionFilterResponse",
80038003
},
8004+
"CohortApi.V2.GetRumCohort": {
8005+
body: {
8006+
type: "GetCohortRequest",
8007+
format: "",
8008+
},
8009+
operationResponseType: "GetCohortResponse",
8010+
},
8011+
"CohortApi.V2.GetRumCohortUsers": {
8012+
body: {
8013+
type: "GetCohortUsersRequest",
8014+
format: "",
8015+
},
8016+
operationResponseType: "GetCohortUsersResponse",
8017+
},
80048018
"RumMetricsApi.V2.ListRumMetrics": {
80058019
operationResponseType: "RumMetricsResponse",
80068020
},
@@ -8036,6 +8050,40 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
80368050
},
80378051
operationResponseType: "RumMetricResponse",
80388052
},
8053+
"FunnelApi.V2.GetRumFunnel": {
8054+
body: {
8055+
type: "FunnelRequest",
8056+
format: "",
8057+
},
8058+
operationResponseType: "FunnelResponse",
8059+
},
8060+
"FunnelApi.V2.GetRumFunnelStepSuggestions": {
8061+
body: {
8062+
type: "FunnelSuggestionRequest",
8063+
format: "",
8064+
},
8065+
operationResponseType: "FunnelSuggestionResponse",
8066+
},
8067+
"UserFlowApi.V2.GetRumSankey": {
8068+
body: {
8069+
type: "SankeyRequest",
8070+
format: "",
8071+
},
8072+
operationResponseType: "SankeyResponse",
8073+
},
8074+
"SegmentsApi.V2.ListRumSegments": {
8075+
operationResponseType: "SegmentArray",
8076+
},
8077+
"SegmentsApi.V2.CreateRumSegment": {
8078+
body: {
8079+
type: "Segment",
8080+
format: "",
8081+
},
8082+
operationResponseType: "Segment",
8083+
},
8084+
"SegmentsApi.V2.InitializeRumSegments": {
8085+
operationResponseType: "{}",
8086+
},
80398087
"ServiceScorecardsApi.V2.ListScorecardOutcomes": {
80408088
pageSize: {
80418089
type: "number",

services/cohort/.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

services/cohort/README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# @datadog/datadog-api-client-cohort
2+
3+
## Description
4+
5+
API for Cohort.
6+
7+
## Navigation
8+
9+
- [Installation](#installation)
10+
- [Getting Started](#getting-started)
11+
12+
## Installation
13+
14+
```sh
15+
# NPM
16+
npm install @datadog/datadog-api-client-cohort
17+
# Yarn
18+
yarn add @datadog/datadog-api-client-cohort
19+
```
20+
21+
## Getting Started
22+
```ts
23+
import { createConfiguration } from "@datadog/datadog-api-client";
24+
import { CohortApiV2 } from "@datadog/datadog-api-client-cohort";
25+
import { v2 } from "@datadog/datadog-api-client-cohort";
26+
27+
const configuration = createConfiguration();
28+
// Enable unstable operations
29+
const configurationOpts = {
30+
unstableOperations: {
31+
"CohortApi.v2.getRumCohort": true
32+
}
33+
}
34+
35+
const configuration = createConfiguration(configurationOpts);
36+
const apiInstance = new CohortApiV2(configuration);
37+
const params = {/* parameters */};
38+
39+
apiInstance.getRumCohort(params).then((data) => {
40+
console.log("API called successfully. Returned data: " + JSON.stringify(data));
41+
}).catch((error) => {
42+
console.error("Error calling API: " + error);
43+
});
44+
```

0 commit comments

Comments
 (0)