Skip to content

Commit 46644a5

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit ba2015c of spec repo
1 parent 925978f commit 46644a5

File tree

112 files changed

+13605
-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.

112 files changed

+13605
-0
lines changed

.generator/schemas/v2/openapi.yaml

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

examples/v2/cohort/GetRumCohort.rb

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Get rum cohort returns "Successful response with cohort analysis data" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.get_rum_cohort".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CohortAPI.new
8+
9+
body = DatadogAPIClient::V2::GetCohortRequest.new({
10+
data: DatadogAPIClient::V2::GetCohortRequestData.new({
11+
attributes: DatadogAPIClient::V2::GetCohortRequestDataAttributes.new({
12+
definition: DatadogAPIClient::V2::GetCohortRequestDataAttributesDefinition.new({
13+
audience_filters: DatadogAPIClient::V2::GetCohortRequestDataAttributesDefinitionAudienceFilters.new({
14+
accounts: [
15+
DatadogAPIClient::V2::GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems.new({
16+
name: "",
17+
}),
18+
],
19+
segments: [
20+
DatadogAPIClient::V2::GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.new({
21+
name: "",
22+
segment_id: "",
23+
}),
24+
],
25+
users: [
26+
DatadogAPIClient::V2::GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems.new({
27+
name: "",
28+
}),
29+
],
30+
}),
31+
}),
32+
time: DatadogAPIClient::V2::GetCohortRequestDataAttributesTime.new({}),
33+
}),
34+
type: DatadogAPIClient::V2::GetCohortRequestDataType::COHORT_REQUEST,
35+
}),
36+
})
37+
p api_instance.get_rum_cohort(body)
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Get rum cohort users returns "Successful response with cohort users" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.get_rum_cohort_users".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CohortAPI.new
8+
9+
body = DatadogAPIClient::V2::GetCohortUsersRequest.new({
10+
data: DatadogAPIClient::V2::GetCohortUsersRequestData.new({
11+
attributes: DatadogAPIClient::V2::GetCohortUsersRequestDataAttributes.new({
12+
definition: DatadogAPIClient::V2::GetCohortUsersRequestDataAttributesDefinition.new({
13+
audience_filters: DatadogAPIClient::V2::GetCohortUsersRequestDataAttributesDefinitionAudienceFilters.new({
14+
accounts: [
15+
DatadogAPIClient::V2::GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems.new({
16+
name: "",
17+
}),
18+
],
19+
segments: [
20+
DatadogAPIClient::V2::GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.new({
21+
name: "",
22+
segment_id: "",
23+
}),
24+
],
25+
users: [
26+
DatadogAPIClient::V2::GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems.new({
27+
name: "",
28+
}),
29+
],
30+
}),
31+
}),
32+
time: DatadogAPIClient::V2::GetCohortUsersRequestDataAttributesTime.new({}),
33+
}),
34+
type: DatadogAPIClient::V2::GetCohortUsersRequestDataType::COHORT_USERS_REQUEST,
35+
}),
36+
})
37+
p api_instance.get_rum_cohort_users(body)

examples/v2/funnel/GetRumFunnel.rb

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Get rum funnel returns "Successful response with funnel analysis data" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.get_rum_funnel".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::FunnelAPI.new
8+
9+
body = DatadogAPIClient::V2::FunnelRequest.new({
10+
data: DatadogAPIClient::V2::FunnelRequestData.new({
11+
attributes: DatadogAPIClient::V2::FunnelRequestDataAttributes.new({
12+
data_source: "rum",
13+
enforced_execution_type: "",
14+
request_id: "",
15+
search: DatadogAPIClient::V2::FunnelRequestDataAttributesSearch.new({
16+
cross_session_filter: "",
17+
query_string: "@type:view",
18+
steps: [
19+
DatadogAPIClient::V2::FunnelRequestDataAttributesSearchStepsItems.new({
20+
facet: "@view.name",
21+
step_filter: "",
22+
value: "/apm/home",
23+
}),
24+
DatadogAPIClient::V2::FunnelRequestDataAttributesSearchStepsItems.new({
25+
facet: "@view.name",
26+
step_filter: "",
27+
value: "/apm/traces",
28+
}),
29+
],
30+
subquery_id: "",
31+
}),
32+
time: DatadogAPIClient::V2::FunnelRequestDataAttributesTime.new({
33+
from: 1756425600000,
34+
to: 1756857600000,
35+
}),
36+
}),
37+
id: "funnel_request",
38+
type: DatadogAPIClient::V2::FunnelRequestDataType::FUNNEL_REQUEST,
39+
}),
40+
})
41+
p api_instance.get_rum_funnel(body)
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Get rum funnel step suggestions returns "Successful response with funnel step suggestions" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.get_rum_funnel_step_suggestions".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::FunnelAPI.new
8+
9+
body = DatadogAPIClient::V2::FunnelSuggestionRequest.new({
10+
data: DatadogAPIClient::V2::FunnelSuggestionRequestData.new({
11+
attributes: DatadogAPIClient::V2::FunnelSuggestionRequestDataAttributes.new({
12+
data_source: "",
13+
search: DatadogAPIClient::V2::FunnelSuggestionRequestDataAttributesSearch.new({
14+
cross_session_filter: "",
15+
query_string: "@type:view",
16+
steps: [
17+
DatadogAPIClient::V2::FunnelSuggestionRequestDataAttributesSearchStepsItems.new({
18+
facet: "@view.name",
19+
step_filter: "",
20+
value: "/apm/home",
21+
}),
22+
],
23+
subquery_id: "",
24+
}),
25+
term_search: DatadogAPIClient::V2::FunnelSuggestionRequestDataAttributesTermSearch.new({
26+
query: "apm",
27+
}),
28+
time: DatadogAPIClient::V2::FunnelSuggestionRequestDataAttributesTime.new({
29+
from: 1756425600000,
30+
to: 1756857600000,
31+
}),
32+
}),
33+
id: "funnel_suggestion_request",
34+
type: DatadogAPIClient::V2::FunnelSuggestionRequestDataType::FUNNEL_SUGGESTION_REQUEST,
35+
}),
36+
})
37+
p api_instance.get_rum_funnel_step_suggestions(body)
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Create rum segment returns "Segment created successfully" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.create_rum_segment".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::SegmentsAPI.new
8+
9+
body = DatadogAPIClient::V2::Segment.new({
10+
data: DatadogAPIClient::V2::SegmentData.new({
11+
attributes: DatadogAPIClient::V2::SegmentDataAttributes.new({
12+
created_at: "0001-01-01T00:00:00Z",
13+
created_by: DatadogAPIClient::V2::SegmentDataSource.new({
14+
handle: "",
15+
id: "",
16+
uuid: "",
17+
}),
18+
data_query: DatadogAPIClient::V2::SegmentDataAttributesDataQuery.new({
19+
event_platform: [
20+
DatadogAPIClient::V2::SegmentDataAttributesDataQueryEventPlatformItems.new({
21+
facet: "@usr.id",
22+
from: "2025-08-01",
23+
name: "high_value_users",
24+
query: "@type:view @view.name:/logs @usr.session_duration:>300000",
25+
to: "2025-09-01",
26+
}),
27+
],
28+
}),
29+
description: "Users who frequently visit logs and have high session duration",
30+
modified_at: "0001-01-01T00:00:00Z",
31+
modified_by: DatadogAPIClient::V2::SegmentDataSource.new({
32+
handle: "",
33+
id: "",
34+
uuid: "",
35+
}),
36+
name: "High-Value Users",
37+
org_id: 123456,
38+
source: 0,
39+
tags: [
40+
"high-value",
41+
"logs",
42+
"active",
43+
],
44+
version: 1,
45+
}),
46+
id: "segment-12345",
47+
type: DatadogAPIClient::V2::SegmentDataType::SEGMENT,
48+
}),
49+
})
50+
p api_instance.create_rum_segment(body)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Initialize rum segments returns "Default segments created successfully" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.initialize_rum_segments".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::SegmentsAPI.new
8+
p api_instance.initialize_rum_segments()
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# List rum segments returns "Successful response with list of segments" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_rum_segments".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::SegmentsAPI.new
8+
p api_instance.list_rum_segments()
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Get rum sankey returns "Successful response with Sankey diagram data" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.get_rum_sankey".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::UserFlowAPI.new
8+
9+
body = DatadogAPIClient::V2::SankeyRequest.new({
10+
data: DatadogAPIClient::V2::SankeyRequestData.new({
11+
attributes: DatadogAPIClient::V2::SankeyRequestDataAttributes.new({
12+
data_source: "",
13+
definition: DatadogAPIClient::V2::SankeyRequestDataAttributesDefinition.new({
14+
entries_per_step: 10,
15+
number_of_steps: 5,
16+
source: "@view.name",
17+
target: "@view.name",
18+
}),
19+
enforced_execution_type: "",
20+
request_id: "",
21+
sampling: DatadogAPIClient::V2::SankeyRequestDataAttributesSampling.new({
22+
enabled: true,
23+
}),
24+
search: DatadogAPIClient::V2::SankeyRequestDataAttributesSearch.new({
25+
audience_filters: DatadogAPIClient::V2::SankeyRequestDataAttributesSearchAudienceFilters.new({}),
26+
query: "@type:view @application.id:*",
27+
subquery_id: "",
28+
}),
29+
time: DatadogAPIClient::V2::SankeyRequestDataAttributesTime.new({
30+
from: 1756425600000,
31+
to: 1756857600000,
32+
}),
33+
}),
34+
id: "sankey_request",
35+
type: DatadogAPIClient::V2::SankeyRequestDataType::SANKEY_REQUEST,
36+
}),
37+
})
38+
p api_instance.get_rum_sankey(body)

features/scenarios_model_mapping.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2828,6 +2828,12 @@
28282828
"rf_id" => "String",
28292829
"body" => "RumRetentionFilterUpdateRequest",
28302830
},
2831+
"v2.GetRumCohort" => {
2832+
"body" => "GetCohortRequest",
2833+
},
2834+
"v2.GetRumCohortUsers" => {
2835+
"body" => "GetCohortUsersRequest",
2836+
},
28312837
"v2.CreateRumMetric" => {
28322838
"body" => "RumMetricCreateRequest",
28332839
},
@@ -2841,6 +2847,18 @@
28412847
"metric_id" => "String",
28422848
"body" => "RumMetricUpdateRequest",
28432849
},
2850+
"v2.GetRumFunnel" => {
2851+
"body" => "FunnelRequest",
2852+
},
2853+
"v2.GetRumFunnelStepSuggestions" => {
2854+
"body" => "FunnelSuggestionRequest",
2855+
},
2856+
"v2.GetRumSankey" => {
2857+
"body" => "SankeyRequest",
2858+
},
2859+
"v2.CreateRumSegment" => {
2860+
"body" => "Segment",
2861+
},
28442862
"v2.ListScorecardOutcomes" => {
28452863
"page_size" => "Integer",
28462864
"page_offset" => "Integer",

0 commit comments

Comments
 (0)