Skip to content
Open
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
251 changes: 235 additions & 16 deletions .generator/schemas/v1/openapi.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class BarChartWidgetRequest
# The log query.
attr_accessor :profile_metrics_query

# Widget query.
# Widget query. Deprecated - Use `queries` and `formulas` instead.
attr_accessor :q

# List of queries that can be returned directly or used in formulas.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class ChangeWidgetRequest
# The log query.
attr_accessor :profile_metrics_query

# Query definition.
# Query definition. Deprecated - Use `queries` and `formulas` instead.
attr_accessor :q

# List of queries that can be returned directly or used in formulas.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class DistributionWidgetRequest
# The log query.
attr_accessor :profile_metrics_query

# Widget query.
# Widget query. Deprecated - Use `queries` and `formulas` instead.
attr_accessor :q

# List of queries that can be returned directly or used in formulas.
Expand All @@ -54,7 +54,7 @@ class DistributionWidgetRequest
# Query definition for Distribution Widget Histogram Request
attr_accessor :query

# Request type for the histogram request.
# Request type for distribution of point values for distribution metrics. Query space aggregator must be `histogram:<metric name>` for points distributions.
attr_accessor :request_type

# Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class GeomapWidgetRequest
# The log query.
attr_accessor :log_query

# The widget metrics query.
# The widget metrics query. Deprecated - Use `queries` and `formulas` instead.
attr_accessor :q

# List of queries that can be returned directly or used in formulas.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class HeatMapWidgetDefinition
# List of custom links.
attr_accessor :custom_links

# List of widget events.
# List of widget events. Deprecated - Use `overlay` request type instead.
attr_accessor :events

# Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto".
Expand Down
4 changes: 2 additions & 2 deletions lib/datadog_api_client/v1/models/heat_map_widget_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class HeatMapWidgetRequest
# The log query.
attr_accessor :profile_metrics_query

# Widget query.
# Widget query. Deprecated - Use `queries` and `formulas` instead.
attr_accessor :q

# List of queries that can be returned directly or used in formulas.
Expand All @@ -51,7 +51,7 @@ class HeatMapWidgetRequest
# A formula and functions metrics query.
attr_accessor :query

# Request type for the histogram request.
# Request type for distribution of point values for distribution metrics. Query space aggregator must be `histogram:<metric name>` for points distributions.
attr_accessor :request_type

# Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class QueryValueWidgetRequest
# The log query.
attr_accessor :profile_metrics_query

# TODO.
# Widget query. Deprecated - Use `queries` and `formulas` instead.
attr_accessor :q

# List of queries that can be returned directly or used in formulas.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class SunburstWidgetRequest
# The log query.
attr_accessor :profile_metrics_query

# Widget query.
# Widget query. Deprecated - Use `queries` and `formulas` instead.
attr_accessor :q

# List of queries that can be returned directly or used in formulas.
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog_api_client/v1/models/table_widget_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class TableWidgetRequest
# The log query.
attr_accessor :profile_metrics_query

# Query definition.
# Query definition. Deprecated - Use `queries` and `formulas` instead.
attr_accessor :q

# List of queries that can be returned directly or used in formulas.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class TimeseriesWidgetDefinition
# List of custom links.
attr_accessor :custom_links

# List of widget events.
# List of widget events. Deprecated - Use `overlay` request type instead.
attr_accessor :events

# Columns displayed in the legend.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class TimeseriesWidgetRequest
# The log query.
attr_accessor :profile_metrics_query

# Widget query.
# Widget query. Deprecated - Use `queries` and `formulas` instead.
attr_accessor :q

# List of queries that can be returned directly or used in formulas.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ToplistWidgetRequest
# The log query.
attr_accessor :profile_metrics_query

# Widget query.
# Widget query. Deprecated - Use `queries` and `formulas` instead.
attr_accessor :q

# List of queries that can be returned directly or used in formulas.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class TreeMapWidgetRequest
# List of formulas that operate on queries.
attr_accessor :formulas

# The widget metrics query.
# The widget metrics query. Deprecated - Use `queries` and `formulas` instead.
attr_accessor :q

# List of queries that can be returned directly or used in formulas.
Expand Down
3 changes: 3 additions & 0 deletions lib/datadog_api_client/v1/models/widget_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ module DatadogAPIClient::V1
#
# See the dedicated [Events JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/widget_json/#events-schema)
# to learn how to build the `<EVENTS_SCHEMA>`.
#
# @deprecated This model is deprecated.
class WidgetEvent
include BaseGenericModel

Expand Down Expand Up @@ -54,6 +56,7 @@ def self.openapi_types
# @param attributes [Hash] Model attributes in the form of hash
# @!visibility private
def initialize(attributes = {})
warn "[DEPRECATION] `WidgetEvent` is deprecated."
if (!attributes.is_a?(Hash))
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetEvent` initialize method"
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require 'time'

module DatadogAPIClient::V1
# Request type for the histogram request.
# Request type for distribution of point values for distribution metrics. Query space aggregator must be `histogram:<metric name>` for points distributions.
class WidgetHistogramRequestType
include BaseEnumModel

Expand Down
Loading