datadog_api_client 2.13.0 → 2.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +181 -16
- data/.generator/schemas/v2/openapi.yaml +391 -151
- data/.generator/src/generator/formatter.py +34 -29
- data/.generator/src/generator/templates/api_client.j2 +81 -53
- data/.generator/src/generator/templates/configuration.j2 +21 -0
- data/.pre-commit-config.yaml +2 -2
- data/CHANGELOG.md +31 -0
- data/README.md +23 -0
- data/examples/v1/azure-integration/CreateAzureIntegration.rb +3 -0
- data/examples/v1/azure-integration/DeleteAzureIntegration.rb +3 -0
- data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +3 -0
- data/examples/v1/azure-integration/UpdateAzureIntegration.rb +3 -0
- data/examples/v1/dashboards/CreateDashboard_252716965.rb +6 -0
- data/examples/v1/dashboards/DeletePublicDashboardInvitation.rb +3 -3
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +1 -0
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +3 -0
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +3 -0
- data/examples/v2/logs/AggregateLogs_2955613758.rb +1 -1
- data/examples/v2/teams/CreateTeam.rb +2 -2
- data/examples/v2/teams/CreateTeam_252121814.rb +24 -0
- data/examples/v2/teams/GetUserMemberships.rb +8 -0
- data/examples/v2/teams/UpdateTeam.rb +9 -0
- data/lib/datadog_api_client/api_client.rb +81 -53
- data/lib/datadog_api_client/configuration.rb +22 -0
- data/lib/datadog_api_client/inflector.rb +10 -1
- data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +2 -2
- data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +10 -10
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
- data/lib/datadog_api_client/v1/models/azure_account.rb +32 -1
- data/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +13 -1
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +3 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +6 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +61 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb +12 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +24 -4
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +24 -4
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +24 -4
- data/lib/datadog_api_client/v1/models/widget_comparator.rb +1 -0
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +10 -6
- data/lib/datadog_api_client/v2/api/ip_allowlist_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/spans_metrics_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/teams_api.rb +65 -0
- data/lib/datadog_api_client/v2/models/application_key_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/application_key_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/audit_logs_event_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb +9 -21
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb +1 -1
- data/lib/datadog_api_client/v2/models/{team_data.rb → ci_app_pipeline_event_attributes.rb} +24 -62
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_level.rb +30 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_test_level.rb +29 -0
- data/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb +25 -1
- data/lib/datadog_api_client/v2/models/dashboard_list_item.rb +25 -1
- data/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb +19 -1
- data/lib/datadog_api_client/v2/models/formula_limit.rb +1 -0
- data/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_group_by.rb +3 -2
- data/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_list_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_query_options.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb +1 -1
- data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb +14 -4
- data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/query_formula.rb +1 -0
- data/lib/datadog_api_client/v2/models/relationship_to_team_links.rb +14 -4
- data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +14 -4
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_metadata_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb +26 -2
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb +24 -4
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb +24 -4
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +1 -19
- data/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +11 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb +11 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/team_attributes.rb +50 -4
- data/lib/datadog_api_client/v2/models/team_create_attributes.rb +57 -4
- data/lib/datadog_api_client/v2/models/team_relationships_links.rb +80 -0
- data/lib/datadog_api_client/v2/models/team_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/team_update_attributes.rb +57 -4
- data/lib/datadog_api_client/v2/models/teams_response.rb +24 -4
- data/lib/datadog_api_client/v2/models/teams_response_links.rb +129 -0
- data/lib/datadog_api_client/v2/models/teams_response_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/teams_response_meta_pagination.rb +150 -0
- data/lib/datadog_api_client/v2/models/usage_attributes_object.rb +11 -1
- data/lib/datadog_api_client/v2/models/user_teams_response.rb +24 -4
- data/lib/datadog_api_client/version.rb +1 -1
- data/spec/configuration_spec.rb +17 -0
- data/spec/retry_spec.rb +44 -0
- metadata +16 -3
@@ -21,6 +21,12 @@ module DatadogAPIClient::V2
|
|
21
21
|
class CloudConfigurationRuleComplianceSignalOptions
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
+
# The default activation status.
|
25
|
+
attr_accessor :default_activation_status
|
26
|
+
|
27
|
+
# The default group by fields.
|
28
|
+
attr_accessor :default_group_by_fields
|
29
|
+
|
24
30
|
# Whether signals will be sent.
|
25
31
|
attr_accessor :user_activation_status
|
26
32
|
|
@@ -31,6 +37,8 @@ module DatadogAPIClient::V2
|
|
31
37
|
# @!visibility private
|
32
38
|
def self.attribute_map
|
33
39
|
{
|
40
|
+
:'default_activation_status' => :'defaultActivationStatus',
|
41
|
+
:'default_group_by_fields' => :'defaultGroupByFields',
|
34
42
|
:'user_activation_status' => :'userActivationStatus',
|
35
43
|
:'user_group_by_fields' => :'userGroupByFields'
|
36
44
|
}
|
@@ -40,6 +48,8 @@ module DatadogAPIClient::V2
|
|
40
48
|
# @!visibility private
|
41
49
|
def self.openapi_types
|
42
50
|
{
|
51
|
+
:'default_activation_status' => :'Boolean',
|
52
|
+
:'default_group_by_fields' => :'Array<String>',
|
43
53
|
:'user_activation_status' => :'Boolean',
|
44
54
|
:'user_group_by_fields' => :'Array<String>'
|
45
55
|
}
|
@@ -49,6 +59,8 @@ module DatadogAPIClient::V2
|
|
49
59
|
# @!visibility private
|
50
60
|
def self.openapi_nullable
|
51
61
|
Set.new([
|
62
|
+
:'default_activation_status',
|
63
|
+
:'default_group_by_fields',
|
52
64
|
:'user_activation_status',
|
53
65
|
:'user_group_by_fields',
|
54
66
|
])
|
@@ -70,6 +82,16 @@ module DatadogAPIClient::V2
|
|
70
82
|
h[k.to_sym] = v
|
71
83
|
}
|
72
84
|
|
85
|
+
if attributes.key?(:'default_activation_status')
|
86
|
+
self.default_activation_status = attributes[:'default_activation_status']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.key?(:'default_group_by_fields')
|
90
|
+
if (value = attributes[:'default_group_by_fields']).is_a?(Array)
|
91
|
+
self.default_group_by_fields = value
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
73
95
|
if attributes.key?(:'user_activation_status')
|
74
96
|
self.user_activation_status = attributes[:'user_activation_status']
|
75
97
|
end
|
@@ -87,6 +109,8 @@ module DatadogAPIClient::V2
|
|
87
109
|
def ==(o)
|
88
110
|
return true if self.equal?(o)
|
89
111
|
self.class == o.class &&
|
112
|
+
default_activation_status == o.default_activation_status &&
|
113
|
+
default_group_by_fields == o.default_group_by_fields &&
|
90
114
|
user_activation_status == o.user_activation_status &&
|
91
115
|
user_group_by_fields == o.user_group_by_fields
|
92
116
|
end
|
@@ -95,7 +119,7 @@ module DatadogAPIClient::V2
|
|
95
119
|
# @return [Integer] Hash code
|
96
120
|
# @!visibility private
|
97
121
|
def hash
|
98
|
-
[user_activation_status, user_group_by_fields].hash
|
122
|
+
[default_activation_status, default_group_by_fields, user_activation_status, user_group_by_fields].hash
|
99
123
|
end
|
100
124
|
end
|
101
125
|
end
|
@@ -51,6 +51,9 @@ module DatadogAPIClient::V2
|
|
51
51
|
# Popularity of the dashboard.
|
52
52
|
attr_reader :popularity
|
53
53
|
|
54
|
+
# List of team names representing ownership of a dashboard.
|
55
|
+
attr_reader :tags
|
56
|
+
|
54
57
|
# Title of the dashboard.
|
55
58
|
attr_accessor :title
|
56
59
|
|
@@ -74,6 +77,7 @@ module DatadogAPIClient::V2
|
|
74
77
|
:'is_shared' => :'is_shared',
|
75
78
|
:'modified' => :'modified',
|
76
79
|
:'popularity' => :'popularity',
|
80
|
+
:'tags' => :'tags',
|
77
81
|
:'title' => :'title',
|
78
82
|
:'type' => :'type',
|
79
83
|
:'url' => :'url'
|
@@ -94,6 +98,7 @@ module DatadogAPIClient::V2
|
|
94
98
|
:'is_shared' => :'Boolean',
|
95
99
|
:'modified' => :'Time',
|
96
100
|
:'popularity' => :'Integer',
|
101
|
+
:'tags' => :'Array<String>',
|
97
102
|
:'title' => :'String',
|
98
103
|
:'type' => :'DashboardType',
|
99
104
|
:'url' => :'String'
|
@@ -106,6 +111,7 @@ module DatadogAPIClient::V2
|
|
106
111
|
Set.new([
|
107
112
|
:'icon',
|
108
113
|
:'integration_id',
|
114
|
+
:'tags',
|
109
115
|
])
|
110
116
|
end
|
111
117
|
|
@@ -165,6 +171,12 @@ module DatadogAPIClient::V2
|
|
165
171
|
self.popularity = attributes[:'popularity']
|
166
172
|
end
|
167
173
|
|
174
|
+
if attributes.key?(:'tags')
|
175
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
176
|
+
self.tags = value
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
168
180
|
if attributes.key?(:'title')
|
169
181
|
self.title = attributes[:'title']
|
170
182
|
end
|
@@ -184,6 +196,7 @@ module DatadogAPIClient::V2
|
|
184
196
|
def valid?
|
185
197
|
return false if @id.nil?
|
186
198
|
return false if !@popularity.nil? && @popularity > 5
|
199
|
+
return false if !@tags.nil? && @tags.length > 5
|
187
200
|
return false if @type.nil?
|
188
201
|
true
|
189
202
|
end
|
@@ -208,6 +221,16 @@ module DatadogAPIClient::V2
|
|
208
221
|
@popularity = popularity
|
209
222
|
end
|
210
223
|
|
224
|
+
# Custom attribute writer method with validation
|
225
|
+
# @param tags [Object] Object to be assigned
|
226
|
+
# @!visibility private
|
227
|
+
def tags=(tags)
|
228
|
+
if !tags.nil? && tags.length > 5
|
229
|
+
fail ArgumentError, 'invalid value for "tags", number of items must be less than or equal to 5.'
|
230
|
+
end
|
231
|
+
@tags = tags
|
232
|
+
end
|
233
|
+
|
211
234
|
# Custom attribute writer method with validation
|
212
235
|
# @param type [Object] Object to be assigned
|
213
236
|
# @!visibility private
|
@@ -234,6 +257,7 @@ module DatadogAPIClient::V2
|
|
234
257
|
is_shared == o.is_shared &&
|
235
258
|
modified == o.modified &&
|
236
259
|
popularity == o.popularity &&
|
260
|
+
tags == o.tags &&
|
237
261
|
title == o.title &&
|
238
262
|
type == o.type &&
|
239
263
|
url == o.url
|
@@ -243,7 +267,7 @@ module DatadogAPIClient::V2
|
|
243
267
|
# @return [Integer] Hash code
|
244
268
|
# @!visibility private
|
245
269
|
def hash
|
246
|
-
[author, created, icon, id, integration_id, is_favorite, is_read_only, is_shared, modified, popularity, title, type, url].hash
|
270
|
+
[author, created, icon, id, integration_id, is_favorite, is_read_only, is_shared, modified, popularity, tags, title, type, url].hash
|
247
271
|
end
|
248
272
|
end
|
249
273
|
end
|
@@ -25,7 +25,7 @@ module DatadogAPIClient::V2
|
|
25
25
|
attr_accessor :_end
|
26
26
|
|
27
27
|
# ISO-8601 Datetime to start the downtime.
|
28
|
-
|
28
|
+
attr_reader :start
|
29
29
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
# @!visibility private
|
@@ -78,6 +78,24 @@ module DatadogAPIClient::V2
|
|
78
78
|
end
|
79
79
|
end
|
80
80
|
|
81
|
+
# Check to see if the all the properties in the model are valid
|
82
|
+
# @return true if the model is valid
|
83
|
+
# @!visibility private
|
84
|
+
def valid?
|
85
|
+
return false if @start.nil?
|
86
|
+
true
|
87
|
+
end
|
88
|
+
|
89
|
+
# Custom attribute writer method with validation
|
90
|
+
# @param start [Object] Object to be assigned
|
91
|
+
# @!visibility private
|
92
|
+
def start=(start)
|
93
|
+
if start.nil?
|
94
|
+
fail ArgumentError, 'invalid value for "start", start cannot be nil.'
|
95
|
+
end
|
96
|
+
@start = start
|
97
|
+
end
|
98
|
+
|
81
99
|
# Checks equality by comparing each attribute.
|
82
100
|
# @param o [Object] Object to be compared
|
83
101
|
# @!visibility private
|
@@ -18,6 +18,7 @@ require 'time'
|
|
18
18
|
|
19
19
|
module DatadogAPIClient::V2
|
20
20
|
# Message for specifying limits to the number of values returned by a query.
|
21
|
+
# This limit is only for scalar queries and has no effect on timeseries queries.
|
21
22
|
class FormulaLimit
|
22
23
|
include BaseGenericModel
|
23
24
|
|
@@ -33,7 +33,7 @@ module DatadogAPIClient::V2
|
|
33
33
|
# Name of the application key.
|
34
34
|
attr_accessor :name
|
35
35
|
|
36
|
-
# Array of scopes to grant the application key.
|
36
|
+
# Array of scopes to grant the application key.
|
37
37
|
attr_accessor :scopes
|
38
38
|
|
39
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -31,7 +31,7 @@ module DatadogAPIClient::V2
|
|
31
31
|
attr_accessor :group_by
|
32
32
|
|
33
33
|
# Global query options that are used during the query.
|
34
|
-
# Note:
|
34
|
+
# Note: you should supply either timezone or time offset, but not both. Otherwise, the query will fail.
|
35
35
|
attr_accessor :options
|
36
36
|
|
37
37
|
# Paging settings
|
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
|
|
21
21
|
class LogsAggregateRequestPage
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
-
# The returned paging point to use to get the next results
|
24
|
+
# The returned paging point to use to get the next results. Note: at most 1000 results can be paged.
|
25
25
|
attr_accessor :cursor
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -25,10 +25,11 @@ module DatadogAPIClient::V2
|
|
25
25
|
attr_reader :facet
|
26
26
|
|
27
27
|
# Used to perform a histogram computation (only for measure facets).
|
28
|
-
# Note:
|
28
|
+
# Note: at most 100 buckets are allowed, the number of buckets is (max - min)/interval.
|
29
29
|
attr_accessor :histogram
|
30
30
|
|
31
|
-
# The maximum buckets to return for this group by
|
31
|
+
# The maximum buckets to return for this group by. Note: at most 10000 buckets are allowed.
|
32
|
+
# If grouping by multiple facets, the product of limits must not exceed 10000.
|
32
33
|
attr_accessor :limit
|
33
34
|
|
34
35
|
# The value to use for logs that don't have the facet used to group by
|
@@ -18,7 +18,7 @@ require 'time'
|
|
18
18
|
|
19
19
|
module DatadogAPIClient::V2
|
20
20
|
# Used to perform a histogram computation (only for measure facets).
|
21
|
-
# Note:
|
21
|
+
# Note: at most 100 buckets are allowed, the number of buckets is (max - min)/interval.
|
22
22
|
class LogsGroupByHistogram
|
23
23
|
include BaseGenericModel
|
24
24
|
|
@@ -25,7 +25,7 @@ module DatadogAPIClient::V2
|
|
25
25
|
attr_accessor :filter
|
26
26
|
|
27
27
|
# Global query options that are used during the query.
|
28
|
-
# Note:
|
28
|
+
# Note: you should supply either timezone or time offset, but not both. Otherwise, the query will fail.
|
29
29
|
attr_accessor :options
|
30
30
|
|
31
31
|
# Paging attributes for listing logs.
|
@@ -18,7 +18,7 @@ require 'time'
|
|
18
18
|
|
19
19
|
module DatadogAPIClient::V2
|
20
20
|
# Global query options that are used during the query.
|
21
|
-
# Note:
|
21
|
+
# Note: you should supply either timezone or time offset, but not both. Otherwise, the query will fail.
|
22
22
|
class LogsQueryOptions
|
23
23
|
include BaseGenericModel
|
24
24
|
|
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
|
|
21
21
|
class LogsResponseMetadataPage
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
-
# The cursor to use to get the next results, if any. To make the next request, use the same
|
24
|
+
# The cursor to use to get the next results, if any. To make the next request, use the same
|
25
25
|
# parameters with the addition of the `page[cursor]`.
|
26
26
|
attr_accessor :after
|
27
27
|
|
@@ -24,11 +24,15 @@ module DatadogAPIClient::V2
|
|
24
24
|
# On-demand concurrency cap attributes.
|
25
25
|
attr_accessor :attributes
|
26
26
|
|
27
|
+
# On-demand concurrency cap type.
|
28
|
+
attr_accessor :type
|
29
|
+
|
27
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
31
|
# @!visibility private
|
29
32
|
def self.attribute_map
|
30
33
|
{
|
31
|
-
:'attributes' => :'attributes'
|
34
|
+
:'attributes' => :'attributes',
|
35
|
+
:'type' => :'type'
|
32
36
|
}
|
33
37
|
end
|
34
38
|
|
@@ -36,7 +40,8 @@ module DatadogAPIClient::V2
|
|
36
40
|
# @!visibility private
|
37
41
|
def self.openapi_types
|
38
42
|
{
|
39
|
-
:'attributes' => :'OnDemandConcurrencyCapAttributes'
|
43
|
+
:'attributes' => :'OnDemandConcurrencyCapAttributes',
|
44
|
+
:'type' => :'OnDemandConcurrencyCapType'
|
40
45
|
}
|
41
46
|
end
|
42
47
|
|
@@ -59,6 +64,10 @@ module DatadogAPIClient::V2
|
|
59
64
|
if attributes.key?(:'attributes')
|
60
65
|
self.attributes = attributes[:'attributes']
|
61
66
|
end
|
67
|
+
|
68
|
+
if attributes.key?(:'type')
|
69
|
+
self.type = attributes[:'type']
|
70
|
+
end
|
62
71
|
end
|
63
72
|
|
64
73
|
# Checks equality by comparing each attribute.
|
@@ -67,14 +76,15 @@ module DatadogAPIClient::V2
|
|
67
76
|
def ==(o)
|
68
77
|
return true if self.equal?(o)
|
69
78
|
self.class == o.class &&
|
70
|
-
attributes == o.attributes
|
79
|
+
attributes == o.attributes &&
|
80
|
+
type == o.type
|
71
81
|
end
|
72
82
|
|
73
83
|
# Calculates hash code according to all attributes.
|
74
84
|
# @return [Integer] Hash code
|
75
85
|
# @!visibility private
|
76
86
|
def hash
|
77
|
-
[attributes].hash
|
87
|
+
[attributes, type].hash
|
78
88
|
end
|
79
89
|
end
|
80
90
|
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 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::V2
|
20
|
+
# On-demand concurrency cap type.
|
21
|
+
class OnDemandConcurrencyCapType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
ON_DEMAND_CONCURRENCY_CAP = "on_demand_concurrency_cap".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -30,7 +30,7 @@ module DatadogAPIClient::V2
|
|
30
30
|
# Name of the application key.
|
31
31
|
attr_accessor :name
|
32
32
|
|
33
|
-
# Array of scopes to grant the application key.
|
33
|
+
# Array of scopes to grant the application key.
|
34
34
|
attr_accessor :scopes
|
35
35
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -25,6 +25,7 @@ module DatadogAPIClient::V2
|
|
25
25
|
attr_reader :formula
|
26
26
|
|
27
27
|
# Message for specifying limits to the number of values returned by a query.
|
28
|
+
# This limit is only for scalar queries and has no effect on timeseries queries.
|
28
29
|
attr_accessor :limit
|
29
30
|
|
30
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -24,11 +24,15 @@ module DatadogAPIClient::V2
|
|
24
24
|
# Related team links
|
25
25
|
attr_accessor :data
|
26
26
|
|
27
|
+
# Links attributes.
|
28
|
+
attr_accessor :links
|
29
|
+
|
27
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
31
|
# @!visibility private
|
29
32
|
def self.attribute_map
|
30
33
|
{
|
31
|
-
:'data' => :'data'
|
34
|
+
:'data' => :'data',
|
35
|
+
:'links' => :'links'
|
32
36
|
}
|
33
37
|
end
|
34
38
|
|
@@ -36,7 +40,8 @@ module DatadogAPIClient::V2
|
|
36
40
|
# @!visibility private
|
37
41
|
def self.openapi_types
|
38
42
|
{
|
39
|
-
:'data' => :'Array<RelationshipToTeamLinkData>'
|
43
|
+
:'data' => :'Array<RelationshipToTeamLinkData>',
|
44
|
+
:'links' => :'TeamRelationshipsLinks'
|
40
45
|
}
|
41
46
|
end
|
42
47
|
|
@@ -61,6 +66,10 @@ module DatadogAPIClient::V2
|
|
61
66
|
self.data = value
|
62
67
|
end
|
63
68
|
end
|
69
|
+
|
70
|
+
if attributes.key?(:'links')
|
71
|
+
self.links = attributes[:'links']
|
72
|
+
end
|
64
73
|
end
|
65
74
|
|
66
75
|
# Checks equality by comparing each attribute.
|
@@ -69,14 +78,15 @@ module DatadogAPIClient::V2
|
|
69
78
|
def ==(o)
|
70
79
|
return true if self.equal?(o)
|
71
80
|
self.class == o.class &&
|
72
|
-
data == o.data
|
81
|
+
data == o.data &&
|
82
|
+
links == o.links
|
73
83
|
end
|
74
84
|
|
75
85
|
# Calculates hash code according to all attributes.
|
76
86
|
# @return [Integer] Hash code
|
77
87
|
# @!visibility private
|
78
88
|
def hash
|
79
|
-
[data].hash
|
89
|
+
[data, links].hash
|
80
90
|
end
|
81
91
|
end
|
82
92
|
end
|
@@ -24,11 +24,15 @@ module DatadogAPIClient::V2
|
|
24
24
|
# Related user team permission data
|
25
25
|
attr_accessor :data
|
26
26
|
|
27
|
+
# Links attributes.
|
28
|
+
attr_accessor :links
|
29
|
+
|
27
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
31
|
# @!visibility private
|
29
32
|
def self.attribute_map
|
30
33
|
{
|
31
|
-
:'data' => :'data'
|
34
|
+
:'data' => :'data',
|
35
|
+
:'links' => :'links'
|
32
36
|
}
|
33
37
|
end
|
34
38
|
|
@@ -36,7 +40,8 @@ module DatadogAPIClient::V2
|
|
36
40
|
# @!visibility private
|
37
41
|
def self.openapi_types
|
38
42
|
{
|
39
|
-
:'data' => :'RelationshipToUserTeamPermissionData'
|
43
|
+
:'data' => :'RelationshipToUserTeamPermissionData',
|
44
|
+
:'links' => :'TeamRelationshipsLinks'
|
40
45
|
}
|
41
46
|
end
|
42
47
|
|
@@ -59,6 +64,10 @@ module DatadogAPIClient::V2
|
|
59
64
|
if attributes.key?(:'data')
|
60
65
|
self.data = attributes[:'data']
|
61
66
|
end
|
67
|
+
|
68
|
+
if attributes.key?(:'links')
|
69
|
+
self.links = attributes[:'links']
|
70
|
+
end
|
62
71
|
end
|
63
72
|
|
64
73
|
# Checks equality by comparing each attribute.
|
@@ -67,14 +76,15 @@ module DatadogAPIClient::V2
|
|
67
76
|
def ==(o)
|
68
77
|
return true if self.equal?(o)
|
69
78
|
self.class == o.class &&
|
70
|
-
data == o.data
|
79
|
+
data == o.data &&
|
80
|
+
links == o.links
|
71
81
|
end
|
72
82
|
|
73
83
|
# Calculates hash code according to all attributes.
|
74
84
|
# @return [Integer] Hash code
|
75
85
|
# @!visibility private
|
76
86
|
def hash
|
77
|
-
[data].hash
|
87
|
+
[data, links].hash
|
78
88
|
end
|
79
89
|
end
|
80
90
|
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 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::V2
|
20
|
+
# The type of event.
|
21
|
+
class SecurityMonitoringSignalMetadataType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
SIGNAL_METADATA = "signal_metadata".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 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::V2
|
20
|
+
# Security Signal response data object.
|
21
|
+
class SecurityMonitoringSignalResponse
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Object description of a security signal.
|
25
|
+
attr_accessor :data
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
# @!visibility private
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'data' => :'data'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
# @!visibility private
|
37
|
+
def self.openapi_types
|
38
|
+
{
|
39
|
+
:'data' => :'SecurityMonitoringSignal'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Initializes the object
|
44
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
45
|
+
# @!visibility private
|
46
|
+
def initialize(attributes = {})
|
47
|
+
if (!attributes.is_a?(Hash))
|
48
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalResponse` initialize method"
|
49
|
+
end
|
50
|
+
|
51
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
52
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
53
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
54
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
55
|
+
end
|
56
|
+
h[k.to_sym] = v
|
57
|
+
}
|
58
|
+
|
59
|
+
if attributes.key?(:'data')
|
60
|
+
self.data = attributes[:'data']
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# Checks equality by comparing each attribute.
|
65
|
+
# @param o [Object] Object to be compared
|
66
|
+
# @!visibility private
|
67
|
+
def ==(o)
|
68
|
+
return true if self.equal?(o)
|
69
|
+
self.class == o.class &&
|
70
|
+
data == o.data
|
71
|
+
end
|
72
|
+
|
73
|
+
# Calculates hash code according to all attributes.
|
74
|
+
# @return [Integer] Hash code
|
75
|
+
# @!visibility private
|
76
|
+
def hash
|
77
|
+
[data].hash
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|