Skip to content

Commit 87532e1

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add Product Analytics widget definitions (#3215)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 25c2dc8 commit 87532e1

File tree

67 files changed

+7215
-172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+7215
-172
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 1193 additions & 165 deletions
Large diffs are not rendered by default.

lib/datadog_api_client/inflector.rb

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ def overrides
6464
"v1.bar_chart_widget_stacked" => "BarChartWidgetStacked",
6565
"v1.bar_chart_widget_stacked_type" => "BarChartWidgetStackedType",
6666
"v1.bar_chart_widget_style" => "BarChartWidgetStyle",
67+
"v1.calendar_interval" => "CalendarInterval",
68+
"v1.calendar_interval_type" => "CalendarIntervalType",
6769
"v1.cancel_downtimes_by_scope_request" => "CancelDowntimesByScopeRequest",
6870
"v1.canceled_downtimes_ids" => "CanceledDowntimesIds",
6971
"v1.change_widget_definition" => "ChangeWidgetDefinition",
@@ -75,6 +77,8 @@ def overrides
7577
"v1.check_can_delete_slo_response_data" => "CheckCanDeleteSLOResponseData",
7678
"v1.check_status_widget_definition" => "CheckStatusWidgetDefinition",
7779
"v1.check_status_widget_definition_type" => "CheckStatusWidgetDefinitionType",
80+
"v1.cohort_widget_definition" => "CohortWidgetDefinition",
81+
"v1.cohort_widget_definition_type" => "CohortWidgetDefinitionType",
7882
"v1.content_encoding" => "ContentEncoding",
7983
"v1.creator" => "Creator",
8084
"v1.dashboard" => "Dashboard",
@@ -156,16 +160,25 @@ def overrides
156160
"v1.formula_and_function_metric_semantic_mode" => "FormulaAndFunctionMetricSemanticMode",
157161
"v1.formula_and_function_process_query_data_source" => "FormulaAndFunctionProcessQueryDataSource",
158162
"v1.formula_and_function_process_query_definition" => "FormulaAndFunctionProcessQueryDefinition",
163+
"v1.formula_and_function_product_analytics_extended_data_source" => "FormulaAndFunctionProductAnalyticsExtendedDataSource",
164+
"v1.formula_and_function_product_analytics_extended_query_definition" => "FormulaAndFunctionProductAnalyticsExtendedQueryDefinition",
165+
"v1.formula_and_function_product_analytics_extended_query_definition_indexes_items" => "FormulaAndFunctionProductAnalyticsExtendedQueryDefinitionIndexesItems",
159166
"v1.formula_and_function_query_definition" => "FormulaAndFunctionQueryDefinition",
160167
"v1.formula_and_function_response_format" => "FormulaAndFunctionResponseFormat",
168+
"v1.formula_and_function_retention_query_definition" => "FormulaAndFunctionRetentionQueryDefinition",
161169
"v1.formula_and_function_slo_data_source" => "FormulaAndFunctionSLODataSource",
162170
"v1.formula_and_function_slo_group_mode" => "FormulaAndFunctionSLOGroupMode",
163171
"v1.formula_and_function_slo_measure" => "FormulaAndFunctionSLOMeasure",
164172
"v1.formula_and_function_slo_query_definition" => "FormulaAndFunctionSLOQueryDefinition",
165173
"v1.formula_and_function_slo_query_type" => "FormulaAndFunctionSLOQueryType",
174+
"v1.formula_and_function_user_journey_query_definition" => "FormulaAndFunctionUserJourneyQueryDefinition",
166175
"v1.formula_type" => "FormulaType",
167176
"v1.free_text_widget_definition" => "FreeTextWidgetDefinition",
168177
"v1.free_text_widget_definition_type" => "FreeTextWidgetDefinitionType",
178+
"v1.funnel_comparison_custom_timeframe" => "FunnelComparisonCustomTimeframe",
179+
"v1.funnel_comparison_duration" => "FunnelComparisonDuration",
180+
"v1.funnel_comparison_duration_type" => "FunnelComparisonDurationType",
181+
"v1.funnel_grouped_display" => "FunnelGroupedDisplay",
169182
"v1.funnel_query" => "FunnelQuery",
170183
"v1.funnel_request_type" => "FunnelRequestType",
171184
"v1.funnel_source" => "FunnelSource",
@@ -490,13 +503,53 @@ def overrides
490503
"v1.product_analytics_audience_occurrence_filter" => "ProductAnalyticsAudienceOccurrenceFilter",
491504
"v1.product_analytics_audience_segment_subquery" => "ProductAnalyticsAudienceSegmentSubquery",
492505
"v1.product_analytics_audience_user_subquery" => "ProductAnalyticsAudienceUserSubquery",
506+
"v1.product_analytics_base_query" => "ProductAnalyticsBaseQuery",
507+
"v1.product_analytics_event_data_source" => "ProductAnalyticsEventDataSource",
508+
"v1.product_analytics_event_query_search" => "ProductAnalyticsEventQuerySearch",
509+
"v1.product_analytics_extended_compute" => "ProductAnalyticsExtendedCompute",
510+
"v1.product_analytics_extended_group_by" => "ProductAnalyticsExtendedGroupBy",
511+
"v1.product_analytics_funnel_compute" => "ProductAnalyticsFunnelCompute",
512+
"v1.product_analytics_funnel_compute_aggregation" => "ProductAnalyticsFunnelComputeAggregation",
513+
"v1.product_analytics_funnel_compute_metric" => "ProductAnalyticsFunnelComputeMetric",
514+
"v1.product_analytics_funnel_data_source" => "ProductAnalyticsFunnelDataSource",
515+
"v1.product_analytics_funnel_group_by" => "ProductAnalyticsFunnelGroupBy",
516+
"v1.product_analytics_funnel_group_by_sort" => "ProductAnalyticsFunnelGroupBySort",
517+
"v1.product_analytics_funnel_query" => "ProductAnalyticsFunnelQuery",
518+
"v1.product_analytics_funnel_request" => "ProductAnalyticsFunnelRequest",
519+
"v1.product_analytics_funnel_request_type" => "ProductAnalyticsFunnelRequestType",
520+
"v1.product_analytics_funnel_widget_definition" => "ProductAnalyticsFunnelWidgetDefinition",
493521
"v1.query_sort_order" => "QuerySortOrder",
494522
"v1.query_value_widget_definition" => "QueryValueWidgetDefinition",
495523
"v1.query_value_widget_definition_type" => "QueryValueWidgetDefinitionType",
496524
"v1.query_value_widget_request" => "QueryValueWidgetRequest",
497525
"v1.reference_table_logs_lookup_processor" => "ReferenceTableLogsLookupProcessor",
498526
"v1.resource_provider_config" => "ResourceProviderConfig",
499527
"v1.response_meta_attributes" => "ResponseMetaAttributes",
528+
"v1.retention_cohort_criteria" => "RetentionCohortCriteria",
529+
"v1.retention_cohort_criteria_time_interval" => "RetentionCohortCriteriaTimeInterval",
530+
"v1.retention_cohort_criteria_time_interval_type" => "RetentionCohortCriteriaTimeIntervalType",
531+
"v1.retention_compute" => "RetentionCompute",
532+
"v1.retention_compute_metric" => "RetentionComputeMetric",
533+
"v1.retention_curve_request_type" => "RetentionCurveRequestType",
534+
"v1.retention_curve_style" => "RetentionCurveStyle",
535+
"v1.retention_curve_widget_definition" => "RetentionCurveWidgetDefinition",
536+
"v1.retention_curve_widget_definition_type" => "RetentionCurveWidgetDefinitionType",
537+
"v1.retention_curve_widget_request" => "RetentionCurveWidgetRequest",
538+
"v1.retention_data_source" => "RetentionDataSource",
539+
"v1.retention_entity" => "RetentionEntity",
540+
"v1.retention_filters" => "RetentionFilters",
541+
"v1.retention_grid_request" => "RetentionGridRequest",
542+
"v1.retention_grid_request_type" => "RetentionGridRequestType",
543+
"v1.retention_group_by" => "RetentionGroupBy",
544+
"v1.retention_group_by_sort" => "RetentionGroupBySort",
545+
"v1.retention_group_by_target" => "RetentionGroupByTarget",
546+
"v1.retention_query" => "RetentionQuery",
547+
"v1.retention_return_condition" => "RetentionReturnCondition",
548+
"v1.retention_return_criteria" => "RetentionReturnCriteria",
549+
"v1.retention_return_criteria_time_interval" => "RetentionReturnCriteriaTimeInterval",
550+
"v1.retention_return_criteria_time_interval_type" => "RetentionReturnCriteriaTimeIntervalType",
551+
"v1.retention_return_criteria_time_interval_unit" => "RetentionReturnCriteriaTimeIntervalUnit",
552+
"v1.retention_search" => "RetentionSearch",
500553
"v1.run_workflow_widget_definition" => "RunWorkflowWidgetDefinition",
501554
"v1.run_workflow_widget_definition_type" => "RunWorkflowWidgetDefinitionType",
502555
"v1.run_workflow_widget_input" => "RunWorkflowWidgetInput",
@@ -958,6 +1011,14 @@ def overrides
9581011
"v1.usage_top_avg_metrics_response" => "UsageTopAvgMetricsResponse",
9591012
"v1.user" => "User",
9601013
"v1.user_disable_response" => "UserDisableResponse",
1014+
"v1.user_journey_formula_compute" => "UserJourneyFormulaCompute",
1015+
"v1.user_journey_formula_compute_metric" => "UserJourneyFormulaComputeMetric",
1016+
"v1.user_journey_formula_group_by" => "UserJourneyFormulaGroupBy",
1017+
"v1.user_journey_join_keys" => "UserJourneyJoinKeys",
1018+
"v1.user_journey_search" => "UserJourneySearch",
1019+
"v1.user_journey_search_filters" => "UserJourneySearchFilters",
1020+
"v1.user_journey_search_graph_filter" => "UserJourneySearchGraphFilter",
1021+
"v1.user_journey_search_target" => "UserJourneySearchTarget",
9611022
"v1.user_list_response" => "UserListResponse",
9621023
"v1.user_response" => "UserResponse",
9631024
"v1.viewing_preferences" => "ViewingPreferences",
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
=begin
2+
#Datadog API V1 Collection
3+
4+
#Collection of all Datadog Public endpoints.
5+
6+
The version of the OpenAPI document: 1.0
7+
Contact: support@datadoghq.com
8+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9+
10+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11+
This product includes software developed at Datadog (https://www.datadoghq.com/).
12+
Copyright 2020-Present Datadog, Inc.
13+
14+
=end
15+
16+
require 'date'
17+
require 'time'
18+
19+
module DatadogAPIClient::V1
20+
# Calendar interval definition.
21+
class CalendarInterval
22+
include BaseGenericModel
23+
24+
# Alignment of the interval. Valid values depend on the interval type. For `day`, use hours (for example, `1am`, `2pm`, or `14`). For `week`, use day names (for example, `monday`). For `month`, use day-of-month ordinals (for example, `1st`, `15th`). For `year` or `quarter`, use month names (for example, `january`).
25+
attr_accessor :alignment
26+
27+
# Quantity of the interval.
28+
attr_accessor :quantity
29+
30+
# Timezone for the interval.
31+
attr_accessor :timezone
32+
33+
# Type of calendar interval.
34+
attr_reader :type
35+
36+
# Attribute mapping from ruby-style variable name to JSON key.
37+
# @!visibility private
38+
def self.attribute_map
39+
{
40+
:'alignment' => :'alignment',
41+
:'quantity' => :'quantity',
42+
:'timezone' => :'timezone',
43+
:'type' => :'type'
44+
}
45+
end
46+
47+
# Attribute type mapping.
48+
# @!visibility private
49+
def self.openapi_types
50+
{
51+
:'alignment' => :'String',
52+
:'quantity' => :'Integer',
53+
:'timezone' => :'String',
54+
:'type' => :'CalendarIntervalType'
55+
}
56+
end
57+
58+
# Initializes the object
59+
# @param attributes [Hash] Model attributes in the form of hash
60+
# @!visibility private
61+
def initialize(attributes = {})
62+
if (!attributes.is_a?(Hash))
63+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CalendarInterval` initialize method"
64+
end
65+
66+
# check to see if the attribute exists and convert string to symbol for hash key
67+
attributes = attributes.each_with_object({}) { |(k, v), h|
68+
if (!self.class.attribute_map.key?(k.to_sym))
69+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::CalendarInterval`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
70+
end
71+
h[k.to_sym] = v
72+
}
73+
74+
if attributes.key?(:'alignment')
75+
self.alignment = attributes[:'alignment']
76+
end
77+
78+
if attributes.key?(:'quantity')
79+
self.quantity = attributes[:'quantity']
80+
end
81+
82+
if attributes.key?(:'timezone')
83+
self.timezone = attributes[:'timezone']
84+
end
85+
86+
if attributes.key?(:'type')
87+
self.type = attributes[:'type']
88+
end
89+
end
90+
91+
# Check to see if the all the properties in the model are valid
92+
# @return true if the model is valid
93+
# @!visibility private
94+
def valid?
95+
return false if @type.nil?
96+
true
97+
end
98+
99+
# Custom attribute writer method with validation
100+
# @param type [Object] Object to be assigned
101+
# @!visibility private
102+
def type=(type)
103+
if type.nil?
104+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
105+
end
106+
@type = type
107+
end
108+
109+
# Checks equality by comparing each attribute.
110+
# @param o [Object] Object to be compared
111+
# @!visibility private
112+
def ==(o)
113+
return true if self.equal?(o)
114+
self.class == o.class &&
115+
alignment == o.alignment &&
116+
quantity == o.quantity &&
117+
timezone == o.timezone &&
118+
type == o.type
119+
end
120+
121+
# Calculates hash code according to all attributes.
122+
# @return [Integer] Hash code
123+
# @!visibility private
124+
def hash
125+
[alignment, quantity, timezone, type].hash
126+
end
127+
end
128+
end
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
=begin
2+
#Datadog API V1 Collection
3+
4+
#Collection of all Datadog Public endpoints.
5+
6+
The version of the OpenAPI document: 1.0
7+
Contact: support@datadoghq.com
8+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9+
10+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11+
This product includes software developed at Datadog (https://www.datadoghq.com/).
12+
Copyright 2020-Present Datadog, Inc.
13+
14+
=end
15+
16+
require 'date'
17+
require 'time'
18+
19+
module DatadogAPIClient::V1
20+
# Type of calendar interval.
21+
class CalendarIntervalType
22+
include BaseEnumModel
23+
24+
DAY = "day".freeze
25+
WEEK = "week".freeze
26+
MONTH = "month".freeze
27+
YEAR = "year".freeze
28+
QUARTER = "quarter".freeze
29+
MINUTE = "minute".freeze
30+
HOUR = "hour".freeze
31+
end
32+
end

0 commit comments

Comments
 (0)