Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.5",
"regenerated": "2023-08-23 18:27:35.210044",
"spec_repo_commit": "d78a6960"
"regenerated": "2023-08-23 20:02:16.195750",
"spec_repo_commit": "7e4a4121"
},
"v2": {
"apigentools_version": "1.6.5",
"regenerated": "2023-08-23 18:27:35.223787",
"spec_repo_commit": "d78a6960"
"regenerated": "2023-08-23 20:02:16.211874",
"spec_repo_commit": "7e4a4121"
}
}
}
2 changes: 2 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4414,6 +4414,7 @@ components:
- ci_test_stream
- rum_issue_stream
- apm_issue_stream
- trace_stream
- logs_issue_stream
- logs_pattern_stream
- logs_transaction_stream
Expand All @@ -4427,6 +4428,7 @@ components:
- CI_TEST_STREAM
- RUM_ISSUE_STREAM
- APM_ISSUE_STREAM
- TRACE_STREAM
- LOGS_ISSUE_STREAM
- LOGS_PATTERN_STREAM
- LOGS_TRANSACTION_STREAM
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2022-04-11T09:33:06.223Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions examples/v1/dashboards/CreateDashboard_2618036642.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Create a new dashboard with trace_stream widget

require "datadog_api_client"
api_instance = DatadogAPIClient::V1::DashboardsAPI.new

body = DatadogAPIClient::V1::Dashboard.new({
layout_type: DatadogAPIClient::V1::DashboardLayoutType::ORDERED,
title: "Example-Dashboard with list_stream widget",
widgets: [
DatadogAPIClient::V1::Widget.new({
definition: DatadogAPIClient::V1::ListStreamWidgetDefinition.new({
type: DatadogAPIClient::V1::ListStreamWidgetDefinitionType::LIST_STREAM,
requests: [
DatadogAPIClient::V1::ListStreamWidgetRequest.new({
columns: [
DatadogAPIClient::V1::ListStreamColumn.new({
width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
field: "timestamp",
}),
DatadogAPIClient::V1::ListStreamColumn.new({
width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
field: "service",
}),
],
query: DatadogAPIClient::V1::ListStreamQuery.new({
data_source: DatadogAPIClient::V1::ListStreamSource::TRACE_STREAM,
query_string: "",
}),
response_format: DatadogAPIClient::V1::ListStreamResponseFormat::EVENT_LIST,
}),
],
}),
}),
],
})
p api_instance.create_dashboard(body)
9 changes: 9 additions & 0 deletions features/v1/dashboards.feature
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,15 @@ Feature: Dashboards
And the response "widgets[0].definition.type" is equal to "trace_service"
And the response "widgets[0].definition.env" is equal to "none"

@team:DataDog/dashboards-backend
Scenario: Create a new dashboard with trace_stream widget
Given new "CreateDashboard" request
And body with value {"layout_type": "ordered", "title": "{{ unique }} with list_stream widget","widgets": [{"definition": {"type": "list_stream","requests": [{"columns":[{"width":"auto","field":"timestamp"},{"width":"auto","field":"service"}],"query":{"data_source":"trace_stream","query_string":""},"response_format":"event_list"}]}}]}
When the request is sent
Then the response status is 200 OK
And the response "widgets[0].definition.type" is equal to "list_stream"
And the response "widgets[0].definition.requests[0].query.data_source" is equal to "trace_stream"

@team:DataDog/dashboards-backend
Scenario: Create a new timeseries widget with ci_pipelines data source
Given new "CreateDashboard" request
Expand Down
1 change: 1 addition & 0 deletions lib/datadog_api_client/v1/models/list_stream_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class ListStreamSource
CI_TEST_STREAM = "ci_test_stream".freeze
RUM_ISSUE_STREAM = "rum_issue_stream".freeze
APM_ISSUE_STREAM = "apm_issue_stream".freeze
TRACE_STREAM = "trace_stream".freeze
LOGS_ISSUE_STREAM = "logs_issue_stream".freeze
LOGS_PATTERN_STREAM = "logs_pattern_stream".freeze
LOGS_TRANSACTION_STREAM = "logs_transaction_stream".freeze
Expand Down