From 64c6cba1d9861997eaaad5a2b341a5668b898d3d Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 19 Jul 2022 15:16:24 +0000 Subject: [PATCH] Regenerate client from commit d2c0157b of spec repo --- .apigentools-info | 8 ++--- .generator/schemas/v1/openapi.yaml | 34 +++++++++++++------ .../v1/models/tree_map_color_by.rb | 2 +- .../v1/models/tree_map_group_by.rb | 2 +- .../v1/models/tree_map_size_by.rb | 2 +- .../v1/models/tree_map_widget_definition.rb | 34 +++++++++++++++---- 6 files changed, 59 insertions(+), 23 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index d7ee892cd1e0..4207af802633 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.2", - "regenerated": "2022-07-19 07:52:50.122423", - "spec_repo_commit": "fd2aa418" + "regenerated": "2022-07-19 15:15:22.045487", + "spec_repo_commit": "d2c0157b" }, "v2": { "apigentools_version": "1.6.2", - "regenerated": "2022-07-19 07:52:50.136121", - "spec_repo_commit": "fd2aa418" + "regenerated": "2022-07-19 15:15:22.084854", + "spec_repo_commit": "d2c0157b" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index aba0323979ad..e160ca3e2802 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -13259,7 +13259,9 @@ components: type: object TreeMapColorBy: default: user - description: The attribute used to determine color in the widget. + deprecated: true + description: (deprecated) The attribute formerly used to determine color in + the widget. enum: - user example: user @@ -13267,7 +13269,9 @@ components: x-enum-varnames: - USER TreeMapGroupBy: - description: The attribute used to group elements in the widget. + deprecated: true + description: (deprecated) The attribute formerly used to group elements in the + widget. enum: - user - family @@ -13279,7 +13283,9 @@ components: - FAMILY - PROCESS TreeMapSizeBy: - description: The attribute used to determine size in the widget. + deprecated: true + description: (deprecated) The attribute formerly used to determine size in the + widget. enum: - pct_cpu - pct_mem @@ -13289,20 +13295,26 @@ components: - PCT_CPU - PCT_MEM TreeMapWidgetDefinition: - description: "The treemap visualization found on the Host Dashboards comes from - the output of `ps auxww`. This is not continuously run on your hosts. Instead, - it\u2019s run once on Agent start/restart. The treemap is only supported for - process data on a single host dashboard \u2014 this may not be reused in other - dashboards or for other metrics." + description: The treemap visualization enables you to display hierarchical and + nested data. It is well suited for queries that describe part-whole relationships, + such as resource usage by availability zone, data center, or team. properties: color_by: $ref: '#/components/schemas/TreeMapColorBy' + custom_links: + description: List of custom links. + items: + $ref: '#/components/schemas/WidgetCustomLink' + type: array group_by: $ref: '#/components/schemas/TreeMapGroupBy' requests: - description: List of top list widget requests. + description: List of treemap widget requests. example: - - q: system.load.1 + - aggregator: sum + data_source: metrics + name: query1 + query: sum:system.mem.total{*} by {service} items: $ref: '#/components/schemas/TreeMapWidgetRequest' maxItems: 1 @@ -13310,6 +13322,8 @@ components: type: array size_by: $ref: '#/components/schemas/TreeMapSizeBy' + time: + $ref: '#/components/schemas/WidgetTime' title: description: Title of your widget. type: string diff --git a/lib/datadog_api_client/v1/models/tree_map_color_by.rb b/lib/datadog_api_client/v1/models/tree_map_color_by.rb index 2adb5e40d19d..661b93a0d205 100644 --- a/lib/datadog_api_client/v1/models/tree_map_color_by.rb +++ b/lib/datadog_api_client/v1/models/tree_map_color_by.rb @@ -17,7 +17,7 @@ require 'time' module DatadogAPIClient::V1 - # The attribute used to determine color in the widget. + # (deprecated) The attribute formerly used to determine color in the widget. class TreeMapColorBy include BaseEnumModel diff --git a/lib/datadog_api_client/v1/models/tree_map_group_by.rb b/lib/datadog_api_client/v1/models/tree_map_group_by.rb index 82612fb7edc1..a9a0ab7b56c9 100644 --- a/lib/datadog_api_client/v1/models/tree_map_group_by.rb +++ b/lib/datadog_api_client/v1/models/tree_map_group_by.rb @@ -17,7 +17,7 @@ require 'time' module DatadogAPIClient::V1 - # The attribute used to group elements in the widget. + # (deprecated) The attribute formerly used to group elements in the widget. class TreeMapGroupBy include BaseEnumModel diff --git a/lib/datadog_api_client/v1/models/tree_map_size_by.rb b/lib/datadog_api_client/v1/models/tree_map_size_by.rb index 129b5f29df89..ad5d5d77c545 100644 --- a/lib/datadog_api_client/v1/models/tree_map_size_by.rb +++ b/lib/datadog_api_client/v1/models/tree_map_size_by.rb @@ -17,7 +17,7 @@ require 'time' module DatadogAPIClient::V1 - # The attribute used to determine size in the widget. + # (deprecated) The attribute formerly used to determine size in the widget. class TreeMapSizeBy include BaseEnumModel diff --git a/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb b/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb index ebed6396970c..2bdea5d1ef21 100644 --- a/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb @@ -17,7 +17,7 @@ require 'time' module DatadogAPIClient::V1 - # The treemap visualization found on the Host Dashboards comes from the output of `ps auxww`. This is not continuously run on your hosts. Instead, it’s run once on Agent start/restart. The treemap is only supported for process data on a single host dashboard — this may not be reused in other dashboards or for other metrics. + # The treemap visualization enables you to display hierarchical and nested data. It is well suited for queries that describe part-whole relationships, such as resource usage by availability zone, data center, or team. class TreeMapWidgetDefinition include BaseGenericModel @@ -25,18 +25,24 @@ class TreeMapWidgetDefinition # @!visibility private attr_accessor :_unparsed - # The attribute used to determine color in the widget. + # (deprecated) The attribute formerly used to determine color in the widget. attr_accessor :color_by - # The attribute used to group elements in the widget. + # List of custom links. + attr_accessor :custom_links + + # (deprecated) The attribute formerly used to group elements in the widget. attr_accessor :group_by - # List of top list widget requests. + # List of treemap widget requests. attr_accessor :requests - # The attribute used to determine size in the widget. + # (deprecated) The attribute formerly used to determine size in the widget. attr_accessor :size_by + # Time setting for the widget. + attr_accessor :time + # Title of your widget. attr_accessor :title @@ -48,9 +54,11 @@ class TreeMapWidgetDefinition def self.attribute_map { :'color_by' => :'color_by', + :'custom_links' => :'custom_links', :'group_by' => :'group_by', :'requests' => :'requests', :'size_by' => :'size_by', + :'time' => :'time', :'title' => :'title', :'type' => :'type' } @@ -67,9 +75,11 @@ def self.acceptable_attributes def self.openapi_types { :'color_by' => :'TreeMapColorBy', + :'custom_links' => :'Array', :'group_by' => :'TreeMapGroupBy', :'requests' => :'Array', :'size_by' => :'TreeMapSizeBy', + :'time' => :'WidgetTime', :'title' => :'String', :'type' => :'TreeMapWidgetDefinitionType' } @@ -104,6 +114,12 @@ def initialize(attributes = {}) self.color_by = 'user' end + if attributes.key?(:'custom_links') + if (value = attributes[:'custom_links']).is_a?(Array) + self.custom_links = value + end + end + if attributes.key?(:'group_by') self.group_by = attributes[:'group_by'] end @@ -118,6 +134,10 @@ def initialize(attributes = {}) self.size_by = attributes[:'size_by'] end + if attributes.key?(:'time') + self.time = attributes[:'time'] + end + if attributes.key?(:'title') self.title = attributes[:'title'] end @@ -173,9 +193,11 @@ def ==(o) return true if self.equal?(o) self.class == o.class && color_by == o.color_by && + custom_links == o.custom_links && group_by == o.group_by && requests == o.requests && size_by == o.size_by && + time == o.time && title == o.title && type == o.type end @@ -191,7 +213,7 @@ def eql?(o) # @return [Integer] Hash code # @!visibility private def hash - [color_by, group_by, requests, size_by, title, type].hash + [color_by, custom_links, group_by, requests, size_by, time, title, type].hash end end end