diff --git a/.apigentools-info b/.apigentools-info index 4046855da825..6a5ebc1db2a8 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-12-12 14:27:15.162688", - "spec_repo_commit": "3ebe762b" + "regenerated": "2024-12-12 15:23:55.421590", + "spec_repo_commit": "222e1f81" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-12-12 14:27:15.181601", - "spec_repo_commit": "3ebe762b" + "regenerated": "2024-12-12 15:23:55.452691", + "spec_repo_commit": "222e1f81" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 6537e03408dd..fd16447031f2 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -4654,11 +4654,6 @@ components: description: Widget column field. example: content type: string - is_clustering_pattern_field_path: - description: Identifies the clustering pattern field column, usable only - with logs_pattern_stream. - example: true - type: boolean width: $ref: '#/components/schemas/ListStreamColumnWidth' required: diff --git a/cassettes/features/v1/dashboards/Create-a-new-dashboard-with-logs-pattern-stream-list-stream-widget.frozen b/cassettes/features/v1/dashboards/Create-a-new-dashboard-with-logs-pattern-stream-list-stream-widget.frozen index f275079feea0..7adcfc7197a1 100644 --- a/cassettes/features/v1/dashboards/Create-a-new-dashboard-with-logs-pattern-stream-list-stream-widget.frozen +++ b/cassettes/features/v1/dashboards/Create-a-new-dashboard-with-logs-pattern-stream-list-stream-widget.frozen @@ -1 +1 @@ -2024-11-20T19:43:46.485Z \ No newline at end of file +2024-12-11T19:18:02.796Z \ No newline at end of file diff --git a/cassettes/features/v1/dashboards/Create-a-new-dashboard-with-logs-pattern-stream-list-stream-widget.yml b/cassettes/features/v1/dashboards/Create-a-new-dashboard-with-logs-pattern-stream-list-stream-widget.yml index c34ecf6cbc02..83cab158e30e 100644 --- a/cassettes/features/v1/dashboards/Create-a-new-dashboard-with-logs-pattern-stream-list-stream-widget.yml +++ b/cassettes/features/v1/dashboards/Create-a-new-dashboard-with-logs-pattern-stream-list-stream-widget.yml @@ -1,10 +1,10 @@ http_interactions: -- recorded_at: Wed, 20 Nov 2024 19:43:46 GMT +- recorded_at: Wed, 11 Dec 2024 19:18:02 GMT request: body: encoding: UTF-8 - string: '{"layout_type":"ordered","title":"Test-Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget-1732131826 - with list_stream widget","widgets":[{"definition":{"requests":[{"columns":[{"field":"timestamp","width":"auto"},{"field":"message","is_clustering_pattern_field_path":true,"width":"auto"}],"query":{"clustering_pattern_field_path":"message","data_source":"logs_pattern_stream","group_by":[{"facet":"service"}],"query_string":""},"response_format":"event_list"}],"type":"list_stream"}}]}' + string: '{"layout_type":"ordered","title":"Test-Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget-1733944682 + with list_stream widget","widgets":[{"definition":{"requests":[{"columns":[{"field":"timestamp","width":"auto"},{"field":"message","width":"auto"}],"query":{"clustering_pattern_field_path":"message","data_source":"logs_pattern_stream","group_by":[{"facet":"service"}],"query_string":""},"response_format":"event_list"}],"type":"list_stream"}}]}' headers: Accept: - application/json @@ -15,9 +15,9 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"id":"r75-hd7-sd9","title":"Test-Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget-1732131826 + string: '{"id":"fue-7tr-ubw","title":"Test-Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget-1733944682 with list_stream widget","description":null,"author_handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","author_name":"CI - Account","layout_type":"ordered","url":"/dashboard/r75-hd7-sd9/test-createanewdashboardwithlogspatternstreamliststreamwidget-1732131826-with-li","is_read_only":false,"template_variables":null,"widgets":[{"definition":{"requests":[{"columns":[{"field":"timestamp","width":"auto"},{"field":"message","is_clustering_pattern_field_path":true,"width":"auto"}],"query":{"clustering_pattern_field_path":"message","data_source":"logs_pattern_stream","group_by":[{"facet":"service"}],"query_string":""},"response_format":"event_list"}],"type":"list_stream"},"id":6154246442450384}],"notify_list":null,"created_at":"2024-11-20T19:43:46.871965+00:00","modified_at":"2024-11-20T19:43:46.871965+00:00","restricted_roles":[]} + Account","layout_type":"ordered","url":"/dashboard/fue-7tr-ubw/test-createanewdashboardwithlogspatternstreamliststreamwidget-1733944682-with-li","is_read_only":false,"template_variables":null,"widgets":[{"definition":{"requests":[{"columns":[{"field":"timestamp","width":"auto"},{"field":"message","width":"auto"}],"query":{"clustering_pattern_field_path":"message","data_source":"logs_pattern_stream","group_by":[{"facet":"service"}],"query_string":""},"response_format":"event_list"}],"type":"list_stream"},"id":4674889262305585}],"notify_list":null,"created_at":"2024-12-11T19:18:03.039937+00:00","modified_at":"2024-12-11T19:18:03.039937+00:00","restricted_roles":[]} ' headers: @@ -26,18 +26,18 @@ http_interactions: status: code: 200 message: OK -- recorded_at: Wed, 20 Nov 2024 19:43:46 GMT +- recorded_at: Wed, 11 Dec 2024 19:18:02 GMT request: body: null headers: Accept: - application/json method: DELETE - uri: https://api.datadoghq.com/api/v1/dashboard/r75-hd7-sd9 + uri: https://api.datadoghq.com/api/v1/dashboard/fue-7tr-ubw response: body: encoding: UTF-8 - string: '{"deleted_dashboard_id":"r75-hd7-sd9"} + string: '{"deleted_dashboard_id":"fue-7tr-ubw"} ' headers: diff --git a/examples/v1/dashboards/CreateDashboard_1039800684.rb b/examples/v1/dashboards/CreateDashboard_1039800684.rb index 67eadd072359..b97ab84e0572 100644 --- a/examples/v1/dashboards/CreateDashboard_1039800684.rb +++ b/examples/v1/dashboards/CreateDashboard_1039800684.rb @@ -20,7 +20,6 @@ DatadogAPIClient::V1::ListStreamColumn.new({ width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO, field: "message", - is_clustering_pattern_field_path: true, }), ], query: DatadogAPIClient::V1::ListStreamQuery.new({ diff --git a/features/v1/dashboards.feature b/features/v1/dashboards.feature index 208a4dd39662..ebcfc7a25bb1 100644 --- a/features/v1/dashboards.feature +++ b/features/v1/dashboards.feature @@ -534,7 +534,7 @@ Feature: Dashboards @team:DataDog/dashboards-backend Scenario: Create a new dashboard with logs_pattern_stream list_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":"message", "is_clustering_pattern_field_path": true}],"query":{"data_source":"logs_pattern_stream","query_string":"","clustering_pattern_field_path":"message","group_by":[{"facet":"service"}]}, "response_format":"event_list"}]}}]} + 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":"message"}],"query":{"data_source":"logs_pattern_stream","query_string":"","clustering_pattern_field_path":"message","group_by":[{"facet":"service"}]}, "response_format":"event_list"}]}}]} When the request is sent Then the response status is 200 OK And the response "widgets[0].definition.requests[0].query.data_source" is equal to "logs_pattern_stream" diff --git a/lib/datadog_api_client/v1/models/list_stream_column.rb b/lib/datadog_api_client/v1/models/list_stream_column.rb index 369ff8fd23d3..b7d6f1630c80 100644 --- a/lib/datadog_api_client/v1/models/list_stream_column.rb +++ b/lib/datadog_api_client/v1/models/list_stream_column.rb @@ -24,9 +24,6 @@ class ListStreamColumn # Widget column field. attr_reader :field - # Identifies the clustering pattern field column, usable only with logs_pattern_stream. - attr_accessor :is_clustering_pattern_field_path - # Widget column width. attr_reader :width @@ -37,7 +34,6 @@ class ListStreamColumn def self.attribute_map { :'field' => :'field', - :'is_clustering_pattern_field_path' => :'is_clustering_pattern_field_path', :'width' => :'width' } end @@ -47,7 +43,6 @@ def self.attribute_map def self.openapi_types { :'field' => :'String', - :'is_clustering_pattern_field_path' => :'Boolean', :'width' => :'ListStreamColumnWidth' } end @@ -74,10 +69,6 @@ def initialize(attributes = {}) self.field = attributes[:'field'] end - if attributes.key?(:'is_clustering_pattern_field_path') - self.is_clustering_pattern_field_path = attributes[:'is_clustering_pattern_field_path'] - end - if attributes.key?(:'width') self.width = attributes[:'width'] end @@ -139,7 +130,6 @@ def ==(o) return true if self.equal?(o) self.class == o.class && field == o.field && - is_clustering_pattern_field_path == o.is_clustering_pattern_field_path && width == o.width && additional_properties == o.additional_properties end @@ -148,7 +138,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [field, is_clustering_pattern_field_path, width, additional_properties].hash + [field, width, additional_properties].hash end end end