Skip to content

Commit de037de

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9b70463 of spec repo
1 parent 57818ec commit de037de

81 files changed

Lines changed: 7766 additions & 159 deletions

File tree

Some content is hidden

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

.generator/schemas/v1/openapi.yaml

Lines changed: 1197 additions & 151 deletions
Large diffs are not rendered by default.

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46179,7 +46179,7 @@ components:
4617946179
$ref: "#/components/schemas/ObservabilityPipelineParseGrokProcessorRuleMatchRule"
4618046180
type: array
4618146181
source:
46182-
description: The value of the source field in log events to be processed by the Grok rules.
46182+
description: The name of the field in the log event to apply the Grok rules to.
4618346183
example: "message"
4618446184
type: string
4618546185
support_rules:

lib/datadog_api_client/inflector.rb

Lines changed: 73 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,14 @@ 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_legacy_display_mode" => "CohortLegacyDisplayMode",
81+
"v1.cohort_legacy_query" => "CohortLegacyQuery",
82+
"v1.cohort_legacy_request" => "CohortLegacyRequest",
83+
"v1.cohort_legacy_request_type" => "CohortLegacyRequestType",
84+
"v1.cohort_legacy_window_size" => "CohortLegacyWindowSize",
85+
"v1.cohort_widget_definition" => "CohortWidgetDefinition",
86+
"v1.cohort_widget_definition_type" => "CohortWidgetDefinitionType",
87+
"v1.cohort_widget_request" => "CohortWidgetRequest",
7888
"v1.content_encoding" => "ContentEncoding",
7989
"v1.creator" => "Creator",
8090
"v1.dashboard" => "Dashboard",
@@ -166,6 +176,10 @@ def overrides
166176
"v1.formula_type" => "FormulaType",
167177
"v1.free_text_widget_definition" => "FreeTextWidgetDefinition",
168178
"v1.free_text_widget_definition_type" => "FreeTextWidgetDefinitionType",
179+
"v1.funnel_comparison_custom_timeframe" => "FunnelComparisonCustomTimeframe",
180+
"v1.funnel_comparison_duration" => "FunnelComparisonDuration",
181+
"v1.funnel_comparison_duration_type" => "FunnelComparisonDurationType",
182+
"v1.funnel_grouped_display" => "FunnelGroupedDisplay",
169183
"v1.funnel_query" => "FunnelQuery",
170184
"v1.funnel_request_type" => "FunnelRequestType",
171185
"v1.funnel_source" => "FunnelSource",
@@ -230,6 +244,7 @@ def overrides
230244
"v1.ip_prefixes_synthetics_private_locations" => "IPPrefixesSyntheticsPrivateLocations",
231245
"v1.ip_prefixes_webhooks" => "IPPrefixesWebhooks",
232246
"v1.ip_ranges" => "IPRanges",
247+
"v1.legacy_user_journey_search" => "LegacyUserJourneySearch",
233248
"v1.list_stream_column" => "ListStreamColumn",
234249
"v1.list_stream_column_width" => "ListStreamColumnWidth",
235250
"v1.list_stream_compute_aggregation" => "ListStreamComputeAggregation",
@@ -490,13 +505,66 @@ def overrides
490505
"v1.product_analytics_audience_occurrence_filter" => "ProductAnalyticsAudienceOccurrenceFilter",
491506
"v1.product_analytics_audience_segment_subquery" => "ProductAnalyticsAudienceSegmentSubquery",
492507
"v1.product_analytics_audience_user_subquery" => "ProductAnalyticsAudienceUserSubquery",
508+
"v1.product_analytics_base_query" => "ProductAnalyticsBaseQuery",
509+
"v1.product_analytics_event_data_source" => "ProductAnalyticsEventDataSource",
510+
"v1.product_analytics_event_occurrence_data_source" => "ProductAnalyticsEventOccurrenceDataSource",
511+
"v1.product_analytics_event_occurrence_query" => "ProductAnalyticsEventOccurrenceQuery",
512+
"v1.product_analytics_event_occurrence_query_search" => "ProductAnalyticsEventOccurrenceQuerySearch",
513+
"v1.product_analytics_event_query" => "ProductAnalyticsEventQuery",
514+
"v1.product_analytics_event_query_search" => "ProductAnalyticsEventQuerySearch",
515+
"v1.product_analytics_funnel_compute" => "ProductAnalyticsFunnelCompute",
516+
"v1.product_analytics_funnel_compute_aggregation" => "ProductAnalyticsFunnelComputeAggregation",
517+
"v1.product_analytics_funnel_data_source" => "ProductAnalyticsFunnelDataSource",
518+
"v1.product_analytics_funnel_group_by" => "ProductAnalyticsFunnelGroupBy",
519+
"v1.product_analytics_funnel_group_by_sort" => "ProductAnalyticsFunnelGroupBySort",
520+
"v1.product_analytics_funnel_query" => "ProductAnalyticsFunnelQuery",
521+
"v1.product_analytics_funnel_query_search" => "ProductAnalyticsFunnelQuerySearch",
522+
"v1.product_analytics_funnel_request" => "ProductAnalyticsFunnelRequest",
523+
"v1.product_analytics_funnel_request_type" => "ProductAnalyticsFunnelRequestType",
524+
"v1.product_analytics_funnel_widget_definition" => "ProductAnalyticsFunnelWidgetDefinition",
493525
"v1.query_sort_order" => "QuerySortOrder",
494526
"v1.query_value_widget_definition" => "QueryValueWidgetDefinition",
495527
"v1.query_value_widget_definition_type" => "QueryValueWidgetDefinitionType",
496528
"v1.query_value_widget_request" => "QueryValueWidgetRequest",
497529
"v1.reference_table_logs_lookup_processor" => "ReferenceTableLogsLookupProcessor",
498530
"v1.resource_provider_config" => "ResourceProviderConfig",
499531
"v1.response_meta_attributes" => "ResponseMetaAttributes",
532+
"v1.retention_aggregation_target" => "RetentionAggregationTarget",
533+
"v1.retention_aggregation_target_type" => "RetentionAggregationTargetType",
534+
"v1.retention_aggregation_target_value" => "RetentionAggregationTargetValue",
535+
"v1.retention_cell_scope" => "RetentionCellScope",
536+
"v1.retention_cell_scope_type" => "RetentionCellScopeType",
537+
"v1.retention_cohort_criteria" => "RetentionCohortCriteria",
538+
"v1.retention_cohort_criteria_time_interval" => "RetentionCohortCriteriaTimeInterval",
539+
"v1.retention_cohort_criteria_time_interval_type" => "RetentionCohortCriteriaTimeIntervalType",
540+
"v1.retention_cohort_scope" => "RetentionCohortScope",
541+
"v1.retention_cohort_scope_type" => "RetentionCohortScopeType",
542+
"v1.retention_computation_scope" => "RetentionComputationScope",
543+
"v1.retention_compute" => "RetentionCompute",
544+
"v1.retention_curve_request_type" => "RetentionCurveRequestType",
545+
"v1.retention_curve_style" => "RetentionCurveStyle",
546+
"v1.retention_curve_widget_definition" => "RetentionCurveWidgetDefinition",
547+
"v1.retention_curve_widget_definition_type" => "RetentionCurveWidgetDefinitionType",
548+
"v1.retention_curve_widget_request" => "RetentionCurveWidgetRequest",
549+
"v1.retention_data_source" => "RetentionDataSource",
550+
"v1.retention_entity" => "RetentionEntity",
551+
"v1.retention_filters" => "RetentionFilters",
552+
"v1.retention_grid_request" => "RetentionGridRequest",
553+
"v1.retention_grid_request_type" => "RetentionGridRequestType",
554+
"v1.retention_group_by" => "RetentionGroupBy",
555+
"v1.retention_group_by_sort" => "RetentionGroupBySort",
556+
"v1.retention_group_by_target" => "RetentionGroupByTarget",
557+
"v1.retention_index_target" => "RetentionIndexTarget",
558+
"v1.retention_index_target_type" => "RetentionIndexTargetType",
559+
"v1.retention_query" => "RetentionQuery",
560+
"v1.retention_return_condition" => "RetentionReturnCondition",
561+
"v1.retention_return_criteria" => "RetentionReturnCriteria",
562+
"v1.retention_return_criteria_time_interval" => "RetentionReturnCriteriaTimeInterval",
563+
"v1.retention_return_criteria_time_interval_type" => "RetentionReturnCriteriaTimeIntervalType",
564+
"v1.retention_return_period_scope" => "RetentionReturnPeriodScope",
565+
"v1.retention_return_period_scope_type" => "RetentionReturnPeriodScopeType",
566+
"v1.retention_scope_target" => "RetentionScopeTarget",
567+
"v1.retention_search" => "RetentionSearch",
500568
"v1.run_workflow_widget_definition" => "RunWorkflowWidgetDefinition",
501569
"v1.run_workflow_widget_definition_type" => "RunWorkflowWidgetDefinitionType",
502570
"v1.run_workflow_widget_input" => "RunWorkflowWidgetInput",
@@ -958,6 +1026,11 @@ def overrides
9581026
"v1.usage_top_avg_metrics_response" => "UsageTopAvgMetricsResponse",
9591027
"v1.user" => "User",
9601028
"v1.user_disable_response" => "UserDisableResponse",
1029+
"v1.user_journey_join_keys" => "UserJourneyJoinKeys",
1030+
"v1.user_journey_search" => "UserJourneySearch",
1031+
"v1.user_journey_search_filters" => "UserJourneySearchFilters",
1032+
"v1.user_journey_search_graph_filter" => "UserJourneySearchGraphFilter",
1033+
"v1.user_journey_search_target" => "UserJourneySearchTarget",
9611034
"v1.user_list_response" => "UserListResponse",
9621035
"v1.user_response" => "UserResponse",
9631036
"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.
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
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
# Display mode for legacy cohort queries.
21+
class CohortLegacyDisplayMode
22+
include BaseEnumModel
23+
24+
ABSOLUTE = "absolute".freeze
25+
PERCENTAGE = "percentage".freeze
26+
end
27+
end

0 commit comments

Comments
 (0)