From 933316b23909eca4c9c03321919abf4e5781f857 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 6 Feb 2026 20:38:43 +0000 Subject: [PATCH] Regenerate client from commit 97cfbb4 of spec repo --- .generator/schemas/v1/openapi.yaml | 19 ++- .../dashboards/CreateDashboard_1259346254.rb | 2 +- .../dashboards/CreateDashboard_1284514532.rb | 2 +- .../dashboards/CreateDashboard_1307120899.rb | 2 +- .../dashboards/CreateDashboard_1433408735.rb | 2 +- .../dashboards/CreateDashboard_2261785072.rb | 2 +- .../dashboards/CreateDashboard_2278756614.rb | 2 +- .../dashboards/CreateDashboard_2800096921.rb | 2 +- .../dashboards/CreateDashboard_3066042014.rb | 2 +- .../dashboards/CreateDashboard_3451918078.rb | 2 +- .../dashboards/CreateDashboard_3631423980.rb | 2 +- .../dashboards/CreateDashboard_3982498788.rb | 2 +- .../v1/dashboards/CreateDashboard_41622531.rb | 2 +- .../dashboards/CreateDashboard_416487533.rb | 2 +- .../dashboards/CreateDashboard_4262729673.rb | 2 +- .../dashboards/CreateDashboard_607525069.rb | 2 +- .../dashboards/CreateDashboard_985012506.rb | 2 +- examples/v1/notebooks/CreateNotebook.rb | 2 +- examples/v1/notebooks/UpdateNotebook.rb | 2 +- lib/datadog_api_client/inflector.rb | 1 + .../v1/models/timeseries_request_style.rb | 147 ++++++++++++++++++ .../v1/models/timeseries_widget_request.rb | 4 +- 22 files changed, 186 insertions(+), 21 deletions(-) create mode 100644 lib/datadog_api_client/v1/models/timeseries_request_style.rb diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index a38d274f9b8d..aa8e993704ac 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -19247,6 +19247,23 @@ components: x-enum-varnames: - BARS - AREA + TimeseriesRequestStyle: + description: Define request widget style for timeseries widgets. + properties: + has_value_labels: + description: If true, the value is displayed as a label relative to the + data point. + type: boolean + line_type: + $ref: '#/components/schemas/WidgetLineType' + line_width: + $ref: '#/components/schemas/WidgetLineWidth' + order_by: + $ref: '#/components/schemas/WidgetStyleOrderBy' + palette: + description: Color palette to apply to the widget. + type: string + type: object TimeseriesWidgetDefinition: description: The timeseries visualization allows you to display the evolution of one or more metrics, log events, or Indexed Spans over time. @@ -19401,7 +19418,7 @@ components: security_query: $ref: '#/components/schemas/LogQueryDefinition' style: - $ref: '#/components/schemas/WidgetRequestStyle' + $ref: '#/components/schemas/TimeseriesRequestStyle' type: object ToplistWidgetDefinition: description: The top list visualization enables you to display a list of Tag diff --git a/examples/v1/dashboards/CreateDashboard_1259346254.rb b/examples/v1/dashboards/CreateDashboard_1259346254.rb index 32bb6e24ca10..f7bfe8f11e71 100644 --- a/examples/v1/dashboards/CreateDashboard_1259346254.rb +++ b/examples/v1/dashboards/CreateDashboard_1259346254.rb @@ -13,7 +13,7 @@ requests: [ DatadogAPIClient::V1::TimeseriesWidgetRequest.new({ q: "avg:system.cpu.user{*} by {host}", - style: DatadogAPIClient::V1::WidgetRequestStyle.new({ + style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({ palette: "warm", order_by: DatadogAPIClient::V1::WidgetStyleOrderBy::VALUES, }), diff --git a/examples/v1/dashboards/CreateDashboard_1284514532.rb b/examples/v1/dashboards/CreateDashboard_1284514532.rb index 5033e32c26ac..0cefdd689004 100644 --- a/examples/v1/dashboards/CreateDashboard_1284514532.rb +++ b/examples/v1/dashboards/CreateDashboard_1284514532.rb @@ -27,7 +27,7 @@ }), ], response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::TIMESERIES, - style: DatadogAPIClient::V1::WidgetRequestStyle.new({ + style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({ palette: "dog_classic", line_type: DatadogAPIClient::V1::WidgetLineType::SOLID, line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL, diff --git a/examples/v1/dashboards/CreateDashboard_1307120899.rb b/examples/v1/dashboards/CreateDashboard_1307120899.rb index f0bc78061f86..77286a703080 100644 --- a/examples/v1/dashboards/CreateDashboard_1307120899.rb +++ b/examples/v1/dashboards/CreateDashboard_1307120899.rb @@ -44,7 +44,7 @@ }), ], response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::TIMESERIES, - style: DatadogAPIClient::V1::WidgetRequestStyle.new({ + style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({ palette: "dog_classic", line_type: DatadogAPIClient::V1::WidgetLineType::SOLID, line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL, diff --git a/examples/v1/dashboards/CreateDashboard_1433408735.rb b/examples/v1/dashboards/CreateDashboard_1433408735.rb index 2c08522c4303..5fe09c49a7cf 100644 --- a/examples/v1/dashboards/CreateDashboard_1433408735.rb +++ b/examples/v1/dashboards/CreateDashboard_1433408735.rb @@ -27,7 +27,7 @@ }), ], response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::TIMESERIES, - style: DatadogAPIClient::V1::WidgetRequestStyle.new({ + style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({ palette: "dog_classic", line_type: DatadogAPIClient::V1::WidgetLineType::SOLID, line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL, diff --git a/examples/v1/dashboards/CreateDashboard_2261785072.rb b/examples/v1/dashboards/CreateDashboard_2261785072.rb index d1b48ad12090..7e88d8e52743 100644 --- a/examples/v1/dashboards/CreateDashboard_2261785072.rb +++ b/examples/v1/dashboards/CreateDashboard_2261785072.rb @@ -32,7 +32,7 @@ query: "avg:system.cpu.user{*}", }), ], - style: DatadogAPIClient::V1::WidgetRequestStyle.new({ + style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({ palette: "purple", line_type: DatadogAPIClient::V1::WidgetLineType::SOLID, line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL, diff --git a/examples/v1/dashboards/CreateDashboard_2278756614.rb b/examples/v1/dashboards/CreateDashboard_2278756614.rb index 09ee4b1a55b8..c18eb98db092 100644 --- a/examples/v1/dashboards/CreateDashboard_2278756614.rb +++ b/examples/v1/dashboards/CreateDashboard_2278756614.rb @@ -32,7 +32,7 @@ query: "avg:system.cpu.user{*}", }), ], - style: DatadogAPIClient::V1::WidgetRequestStyle.new({ + style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({ palette: "dog_classic", line_type: DatadogAPIClient::V1::WidgetLineType::SOLID, line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL, diff --git a/examples/v1/dashboards/CreateDashboard_2800096921.rb b/examples/v1/dashboards/CreateDashboard_2800096921.rb index 053c0c406952..359aba00d97f 100644 --- a/examples/v1/dashboards/CreateDashboard_2800096921.rb +++ b/examples/v1/dashboards/CreateDashboard_2800096921.rb @@ -45,7 +45,7 @@ }), ], response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::TIMESERIES, - style: DatadogAPIClient::V1::WidgetRequestStyle.new({ + style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({ palette: "dog_classic", line_type: DatadogAPIClient::V1::WidgetLineType::SOLID, line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL, diff --git a/examples/v1/dashboards/CreateDashboard_3066042014.rb b/examples/v1/dashboards/CreateDashboard_3066042014.rb index 63dbd60a03de..b9e43caacb3f 100644 --- a/examples/v1/dashboards/CreateDashboard_3066042014.rb +++ b/examples/v1/dashboards/CreateDashboard_3066042014.rb @@ -50,7 +50,7 @@ }), ], response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::TIMESERIES, - style: DatadogAPIClient::V1::WidgetRequestStyle.new({ + style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({ palette: "dog_classic", line_type: DatadogAPIClient::V1::WidgetLineType::SOLID, line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL, diff --git a/examples/v1/dashboards/CreateDashboard_3451918078.rb b/examples/v1/dashboards/CreateDashboard_3451918078.rb index f09dc77b1f70..15996a9ffc1a 100644 --- a/examples/v1/dashboards/CreateDashboard_3451918078.rb +++ b/examples/v1/dashboards/CreateDashboard_3451918078.rb @@ -50,7 +50,7 @@ }), ], response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::TIMESERIES, - style: DatadogAPIClient::V1::WidgetRequestStyle.new({ + style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({ palette: "dog_classic", line_type: DatadogAPIClient::V1::WidgetLineType::SOLID, line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL, diff --git a/examples/v1/dashboards/CreateDashboard_3631423980.rb b/examples/v1/dashboards/CreateDashboard_3631423980.rb index 30be6a702a9a..4f31f99a280b 100644 --- a/examples/v1/dashboards/CreateDashboard_3631423980.rb +++ b/examples/v1/dashboards/CreateDashboard_3631423980.rb @@ -13,7 +13,7 @@ requests: [ DatadogAPIClient::V1::TimeseriesWidgetRequest.new({ q: "avg:system.cpu.user{*} by {host}", - style: DatadogAPIClient::V1::WidgetRequestStyle.new({ + style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({ palette: "dog_classic", line_type: DatadogAPIClient::V1::WidgetLineType::SOLID, line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL, diff --git a/examples/v1/dashboards/CreateDashboard_3982498788.rb b/examples/v1/dashboards/CreateDashboard_3982498788.rb index a253eeb42425..a63b82184dcc 100644 --- a/examples/v1/dashboards/CreateDashboard_3982498788.rb +++ b/examples/v1/dashboards/CreateDashboard_3982498788.rb @@ -14,7 +14,7 @@ DatadogAPIClient::V1::TimeseriesWidgetRequest.new({ q: "sum:trace.test.errors{env:prod,service:datadog-api-spec} by {resource_name}.as_count()", on_right_yaxis: false, - style: DatadogAPIClient::V1::WidgetRequestStyle.new({ + style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({ palette: "warm", line_type: DatadogAPIClient::V1::WidgetLineType::SOLID, line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL, diff --git a/examples/v1/dashboards/CreateDashboard_41622531.rb b/examples/v1/dashboards/CreateDashboard_41622531.rb index 7f776edcd3f1..516342d8d6c1 100644 --- a/examples/v1/dashboards/CreateDashboard_41622531.rb +++ b/examples/v1/dashboards/CreateDashboard_41622531.rb @@ -39,7 +39,7 @@ }), ], response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::TIMESERIES, - style: DatadogAPIClient::V1::WidgetRequestStyle.new({ + style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({ palette: "dog_classic", line_type: DatadogAPIClient::V1::WidgetLineType::SOLID, line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL, diff --git a/examples/v1/dashboards/CreateDashboard_416487533.rb b/examples/v1/dashboards/CreateDashboard_416487533.rb index 2be098d89f6f..3c61b6e41289 100644 --- a/examples/v1/dashboards/CreateDashboard_416487533.rb +++ b/examples/v1/dashboards/CreateDashboard_416487533.rb @@ -13,7 +13,7 @@ requests: [ DatadogAPIClient::V1::TimeseriesWidgetRequest.new({ q: "avg:system.cpu.user{*} by {host}", - style: DatadogAPIClient::V1::WidgetRequestStyle.new({ + style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({ palette: "dog_classic", order_by: DatadogAPIClient::V1::WidgetStyleOrderBy::TAGS, }), diff --git a/examples/v1/dashboards/CreateDashboard_4262729673.rb b/examples/v1/dashboards/CreateDashboard_4262729673.rb index 5e50a47244dc..26c5f984ca87 100644 --- a/examples/v1/dashboards/CreateDashboard_4262729673.rb +++ b/examples/v1/dashboards/CreateDashboard_4262729673.rb @@ -48,7 +48,7 @@ }), ], response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::TIMESERIES, - style: DatadogAPIClient::V1::WidgetRequestStyle.new({ + style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({ palette: "dog_classic", line_type: DatadogAPIClient::V1::WidgetLineType::SOLID, line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL, diff --git a/examples/v1/dashboards/CreateDashboard_607525069.rb b/examples/v1/dashboards/CreateDashboard_607525069.rb index 326ef5713d9c..34e41cfe11e8 100644 --- a/examples/v1/dashboards/CreateDashboard_607525069.rb +++ b/examples/v1/dashboards/CreateDashboard_607525069.rb @@ -44,7 +44,7 @@ }), ], response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::TIMESERIES, - style: DatadogAPIClient::V1::WidgetRequestStyle.new({ + style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({ palette: "dog_classic", line_type: DatadogAPIClient::V1::WidgetLineType::SOLID, line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL, diff --git a/examples/v1/dashboards/CreateDashboard_985012506.rb b/examples/v1/dashboards/CreateDashboard_985012506.rb index b14b575ee811..56f372d6d843 100644 --- a/examples/v1/dashboards/CreateDashboard_985012506.rb +++ b/examples/v1/dashboards/CreateDashboard_985012506.rb @@ -44,7 +44,7 @@ }), ], response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::TIMESERIES, - style: DatadogAPIClient::V1::WidgetRequestStyle.new({ + style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({ palette: "dog_classic", line_type: DatadogAPIClient::V1::WidgetLineType::SOLID, line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL, diff --git a/examples/v1/notebooks/CreateNotebook.rb b/examples/v1/notebooks/CreateNotebook.rb index 8b9ed30788a5..d914d926e3e8 100644 --- a/examples/v1/notebooks/CreateNotebook.rb +++ b/examples/v1/notebooks/CreateNotebook.rb @@ -23,7 +23,7 @@ DatadogAPIClient::V1::TimeseriesWidgetRequest.new({ display_type: DatadogAPIClient::V1::WidgetDisplayType::LINE, q: "avg:system.load.1{*}", - style: DatadogAPIClient::V1::WidgetRequestStyle.new({ + style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({ line_type: DatadogAPIClient::V1::WidgetLineType::SOLID, line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL, palette: "dog_classic", diff --git a/examples/v1/notebooks/UpdateNotebook.rb b/examples/v1/notebooks/UpdateNotebook.rb index af14e2f8d4ef..555bcdde9da5 100644 --- a/examples/v1/notebooks/UpdateNotebook.rb +++ b/examples/v1/notebooks/UpdateNotebook.rb @@ -26,7 +26,7 @@ DatadogAPIClient::V1::TimeseriesWidgetRequest.new({ display_type: DatadogAPIClient::V1::WidgetDisplayType::LINE, q: "avg:system.load.1{*}", - style: DatadogAPIClient::V1::WidgetRequestStyle.new({ + style: DatadogAPIClient::V1::TimeseriesRequestStyle.new({ line_type: DatadogAPIClient::V1::WidgetLineType::SOLID, line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL, palette: "dog_classic", diff --git a/lib/datadog_api_client/inflector.rb b/lib/datadog_api_client/inflector.rb index 5e43080ff1dc..1bdb5c9a1eb8 100644 --- a/lib/datadog_api_client/inflector.rb +++ b/lib/datadog_api_client/inflector.rb @@ -795,6 +795,7 @@ def overrides "v1.target_format_type" => "TargetFormatType", "v1.timeseries_background" => "TimeseriesBackground", "v1.timeseries_background_type" => "TimeseriesBackgroundType", + "v1.timeseries_request_style" => "TimeseriesRequestStyle", "v1.timeseries_widget_definition" => "TimeseriesWidgetDefinition", "v1.timeseries_widget_definition_type" => "TimeseriesWidgetDefinitionType", "v1.timeseries_widget_expression_alias" => "TimeseriesWidgetExpressionAlias", diff --git a/lib/datadog_api_client/v1/models/timeseries_request_style.rb b/lib/datadog_api_client/v1/models/timeseries_request_style.rb new file mode 100644 index 000000000000..3a0c1a0c4872 --- /dev/null +++ b/lib/datadog_api_client/v1/models/timeseries_request_style.rb @@ -0,0 +1,147 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V1 + # Define request widget style for timeseries widgets. + class TimeseriesRequestStyle + include BaseGenericModel + + # If true, the value is displayed as a label relative to the data point. + attr_accessor :has_value_labels + + # Type of lines displayed. + attr_accessor :line_type + + # Width of line displayed. + attr_accessor :line_width + + # How to order series in timeseries visualizations. + # - `tags`: Order series alphabetically by tag name (default behavior) + # - `values`: Order series by their current metric values (typically descending) + attr_accessor :order_by + + # Color palette to apply to the widget. + attr_accessor :palette + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'has_value_labels' => :'has_value_labels', + :'line_type' => :'line_type', + :'line_width' => :'line_width', + :'order_by' => :'order_by', + :'palette' => :'palette' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'has_value_labels' => :'Boolean', + :'line_type' => :'WidgetLineType', + :'line_width' => :'WidgetLineWidth', + :'order_by' => :'WidgetStyleOrderBy', + :'palette' => :'String' + } + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TimeseriesRequestStyle` initialize method" + end + + self.additional_properties = {} + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v + end + } + + if attributes.key?(:'has_value_labels') + self.has_value_labels = attributes[:'has_value_labels'] + end + + if attributes.key?(:'line_type') + self.line_type = attributes[:'line_type'] + end + + if attributes.key?(:'line_width') + self.line_width = attributes[:'line_width'] + end + + if attributes.key?(:'order_by') + self.order_by = attributes[:'order_by'] + end + + if attributes.key?(:'palette') + self.palette = attributes[:'palette'] + end + end + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + has_value_labels == o.has_value_labels && + line_type == o.line_type && + line_width == o.line_width && + order_by == o.order_by && + palette == o.palette && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [has_value_labels, line_type, line_width, order_by, palette, additional_properties].hash + end + end +end diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb index bc4056a03b69..75895395b8ef 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb @@ -69,7 +69,7 @@ class TimeseriesWidgetRequest # The log query. attr_accessor :security_query - # Define request widget style. + # Define request widget style for timeseries widgets. attr_accessor :style attr_accessor :additional_properties @@ -118,7 +118,7 @@ def self.openapi_types :'response_format' => :'FormulaAndFunctionResponseFormat', :'rum_query' => :'LogQueryDefinition', :'security_query' => :'LogQueryDefinition', - :'style' => :'WidgetRequestStyle' + :'style' => :'TimeseriesRequestStyle' } end