datadog_api_client 1.9.0 → 1.10.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 +489 -124
- data/.generator/schemas/v2/openapi.yaml +701 -28
- data/.generator/src/generator/formatter.py +6 -1
- data/.generator/src/generator/openapi.py +5 -5
- data/.generator/src/generator/templates/api_client.j2 +1 -4
- data/.generator/src/generator/templates/model_generic.j2 +42 -3
- data/.github/workflows/prepare_release.yml +15 -3
- data/CHANGELOG.md +32 -0
- data/Makefile +1 -1
- data/README.md +16 -0
- data/check-examples.sh +0 -2
- data/examples/v1/aws-integration/UpdateAWSAccount.rb +8 -4
- data/examples/v1/downtimes/CreateDowntime_2908359488.rb +1 -0
- data/examples/v1/downtimes/CreateDowntime_3059354445.rb +1 -0
- data/examples/v1/downtimes/UpdateDowntime.rb +1 -0
- data/examples/v1/monitors/CreateMonitor_1969035628.rb +52 -0
- data/examples/v1/monitors/CreateMonitor_2520912138.rb +22 -0
- data/examples/v1/security-monitoring/AddSecurityMonitoringSignalToIncident.rb +9 -0
- data/examples/v1/security-monitoring/EditSecurityMonitoringSignalAssignee.rb +9 -0
- data/examples/v1/security-monitoring/EditSecurityMonitoringSignalState.rb +10 -0
- data/examples/v1/service-level-objective-corrections/CreateSLOCorrection.rb +0 -3
- data/examples/v1/service-level-objective-corrections/CreateSLOCorrection_1326388368.rb +0 -3
- data/examples/v1/service-level-objective-corrections/DeleteSLOCorrection.rb +0 -3
- data/examples/v1/service-level-objective-corrections/GetSLOCorrection.rb +0 -3
- data/examples/v1/service-level-objective-corrections/ListSLOCorrection.rb +0 -3
- data/examples/v1/service-level-objective-corrections/UpdateSLOCorrection.rb +0 -3
- data/examples/v1/service-level-objectives/GetSLOCorrections.rb +0 -3
- data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +5 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.rb +44 -0
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +64 -0
- data/examples/v1/synthetics/UpdateBrowserTest.rb +5 -0
- data/examples/v1/usage-metering/GetHourlyUsageAttribution.rb +1 -1
- data/examples/v1/usage-metering/GetMonthlyUsageAttribution.rb +1 -1
- data/examples/v1/usage-metering/{GetMonthlyUsageAttribution_3738504447.rb → GetMonthlyUsageAttribution_3849653599.rb} +1 -1
- data/examples/v1/usage-metering/GetUsageAttribution.rb +1 -1
- data/examples/v1/usage-metering/GetUsageRumSessions_3271366243.rb +9 -0
- data/examples/v2/logs/SubmitLog.rb +1 -0
- data/examples/v2/logs-archives/CreateLogsArchive.rb +1 -0
- data/examples/v2/logs-archives/UpdateLogsArchive.rb +1 -0
- data/examples/v2/metrics/EstimateMetricsOutputSeries.rb +9 -0
- data/examples/v2/metrics/SubmitMetrics.rb +20 -0
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +1 -0
- data/examples/v2/usage-metering/GetCostByOrg.rb +5 -0
- data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.rb +8 -0
- data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb +8 -0
- data/lib/datadog_api_client/v1/api/metrics_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/monitors_api.rb +69 -56
- data/lib/datadog_api_client/v1/api/security_monitoring_api.rb +266 -0
- data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +10 -10
- data/lib/datadog_api_client/v1/api_client.rb +1 -4
- data/lib/datadog_api_client/v1/configuration.rb +0 -6
- data/lib/datadog_api_client/v1/models/add_signal_to_incident_request.rb +142 -0
- data/lib/datadog_api_client/v1/models/downtime.rb +11 -1
- data/lib/datadog_api_client/v1/models/downtime_child.rb +11 -1
- data/lib/datadog_api_client/v1/models/event.rb +1 -1
- data/lib/datadog_api_client/v1/models/http_log_item.rb +29 -4
- data/lib/datadog_api_client/v1/models/logs_category_processor.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_list_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_sort.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor_group_search_response_counts.rb +2 -2
- data/lib/datadog_api_client/v1/models/{monitor_search_response_counts_tag_item.rb → monitor_search_count_item.rb} +3 -3
- data/lib/datadog_api_client/v1/models/monitor_search_response_counts.rb +4 -4
- data/lib/datadog_api_client/v1/models/monitor_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_cell_create_request.rb +146 -0
- data/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb +68 -0
- data/lib/datadog_api_client/v1/models/series.rb +2 -2
- data/lib/datadog_api_client/v1/models/signal_archive_reason.rb +29 -0
- data/lib/datadog_api_client/v1/models/signal_assignee_update_request.rb +132 -0
- data/lib/datadog_api_client/v1/models/signal_state_update_request.rb +152 -0
- data/lib/datadog_api_client/v1/models/signal_triage_state.rb +28 -0
- data/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb +4 -4
- data/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/{monitor_search_response_counts_status_item.rb → successful_signal_update_response.rb} +12 -22
- data/lib/datadog_api_client/v1/models/synthetics_api_test.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_assertion_type.rb +2 -0
- data/lib/datadog_api_client/v1/models/synthetics_browser_test_rum_settings.rb +152 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_details.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb +2 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +21 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_attribution_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb +18 -4
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +11 -1
- data/lib/datadog_api_client/v1.rb +11 -6
- data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +0 -2
- data/lib/datadog_api_client/v2/api/metrics_api.rb +173 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +228 -0
- data/lib/datadog_api_client/v2/api_client.rb +1 -4
- data/lib/datadog_api_client/v2/models/authn_mapping.rb +1 -13
- data/lib/datadog_api_client/v2/models/authn_mapping_attributes.rb +1 -12
- data/lib/datadog_api_client/v2/models/authn_mapping_response.rb +16 -4
- data/lib/datadog_api_client/v2/models/authn_mappings_response.rb +13 -1
- data/lib/datadog_api_client/v2/models/chargeback_breakdown.rb +131 -0
- data/lib/datadog_api_client/v2/models/cost_by_org.rb +133 -0
- data/lib/datadog_api_client/v2/models/cost_by_org_attributes.rb +153 -0
- data/lib/datadog_api_client/v2/models/cost_by_org_response.rb +113 -0
- data/lib/datadog_api_client/v2/models/cost_by_org_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/hourly_usage_type.rb +2 -0
- data/lib/datadog_api_client/v2/models/http_log_item.rb +40 -4
- data/lib/datadog_api_client/v2/models/intake_payload_accepted.rb +111 -0
- data/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +12 -1
- data/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb +12 -1
- data/lib/datadog_api_client/v2/models/metric_content_encoding.rb +26 -0
- data/lib/datadog_api_client/v2/models/metric_estimate.rb +133 -0
- data/lib/datadog_api_client/v2/models/metric_estimate_attributes.rb +133 -0
- data/lib/datadog_api_client/v2/models/metric_estimate_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/metric_estimate_response.rb +111 -0
- data/lib/datadog_api_client/v2/models/metric_estimate_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/metric_intake_type.rb +30 -0
- data/lib/datadog_api_client/v2/models/metric_metadata.rb +111 -0
- data/lib/datadog_api_client/v2/models/metric_origin.rb +170 -0
- data/lib/datadog_api_client/{v1/models/monitor_group_search_response_counts_type_item.rb → v2/models/metric_payload.rb} +27 -24
- data/lib/datadog_api_client/v2/models/metric_point.rb +122 -0
- data/lib/datadog_api_client/{v1/models/monitor_search_response_counts_type_item.rb → v2/models/metric_resource.rb} +21 -21
- data/lib/datadog_api_client/v2/models/metric_series.rb +220 -0
- data/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute_data.rb +1 -5
- data/lib/datadog_api_client/v2/models/saml_assertion_attribute.rb +1 -5
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_hardcoded_evaluator_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +11 -1
- data/lib/datadog_api_client/{v1/models/monitor_group_search_response_counts_status_item.rb → v2/models/usage_application_security_monitoring_response.rb} +16 -24
- data/lib/datadog_api_client/{v1/models/monitor_search_response_counts_muted_item.rb → v2/models/usage_lambda_traced_invocations_response.rb} +16 -24
- data/lib/datadog_api_client/v2.rb +22 -0
- data/lib/datadog_api_client/version.rb +1 -1
- data/spec/v1/api_client_spec.rb +3 -3
- data/spec/v2/api_client_spec.rb +3 -3
- metadata +49 -11
- data/extract-code-blocks.awk +0 -81
- data/extract-code-blocks.sh +0 -3
@@ -21,6 +21,8 @@ module DatadogAPIClient::V2
|
|
21
21
|
class HourlyUsageType
|
22
22
|
include BaseEnumModel
|
23
23
|
|
24
|
+
APP_SEC_HOST_COUNT = "app_sec_host_count".freeze
|
24
25
|
OBSERVABILITY_PIPELINES_BYTES_PROCESSSED = "observability_pipelines_bytes_processed".freeze
|
26
|
+
LAMBDA_TRACED_INVOCATIONS_COUNT = "lambda_traced_invocations_count".freeze
|
25
27
|
end
|
26
28
|
end
|
@@ -46,6 +46,8 @@ module DatadogAPIClient::V2
|
|
46
46
|
# See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes).
|
47
47
|
attr_accessor :service
|
48
48
|
|
49
|
+
attr_accessor :additional_properties
|
50
|
+
|
49
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
52
|
# @!visibility private
|
51
53
|
def self.attribute_map
|
@@ -91,12 +93,14 @@ module DatadogAPIClient::V2
|
|
91
93
|
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::HTTPLogItem` initialize method"
|
92
94
|
end
|
93
95
|
|
96
|
+
self.additional_properties = {}
|
94
97
|
# check to see if the attribute exists and convert string to symbol for hash key
|
95
98
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
96
99
|
if (!self.class.attribute_map.key?(k.to_sym))
|
97
|
-
|
100
|
+
self.additional_properties[k.to_sym] = v
|
101
|
+
else
|
102
|
+
h[k.to_sym] = v
|
98
103
|
end
|
99
|
-
h[k.to_sym] = v
|
100
104
|
}
|
101
105
|
|
102
106
|
if attributes.key?(:'ddsource')
|
@@ -124,9 +128,40 @@ module DatadogAPIClient::V2
|
|
124
128
|
# @return true if the model is valid
|
125
129
|
# @!visibility private
|
126
130
|
def valid?
|
131
|
+
return false if @message.nil?
|
127
132
|
true
|
128
133
|
end
|
129
134
|
|
135
|
+
# Custom attribute writer method with validation
|
136
|
+
# @param message [Object] Object to be assigned
|
137
|
+
# @!visibility private
|
138
|
+
def message=(message)
|
139
|
+
if message.nil?
|
140
|
+
fail ArgumentError, 'invalid value for "message", message cannot be nil.'
|
141
|
+
end
|
142
|
+
@message = message
|
143
|
+
end
|
144
|
+
|
145
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
146
|
+
# @return [Hash] Returns the object in the form of hash
|
147
|
+
# @!visibility private
|
148
|
+
def to_hash
|
149
|
+
hash = {}
|
150
|
+
self.class.attribute_map.each_pair do |attr, param|
|
151
|
+
value = self.send(attr)
|
152
|
+
if value.nil?
|
153
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
154
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
155
|
+
end
|
156
|
+
|
157
|
+
hash[param] = _to_hash(value)
|
158
|
+
end
|
159
|
+
self.additional_properties.each_pair do |attr, value|
|
160
|
+
hash[attr] = value
|
161
|
+
end
|
162
|
+
hash
|
163
|
+
end
|
164
|
+
|
130
165
|
# Checks equality by comparing each attribute.
|
131
166
|
# @param o [Object] Object to be compared
|
132
167
|
# @!visibility private
|
@@ -137,7 +172,8 @@ module DatadogAPIClient::V2
|
|
137
172
|
ddtags == o.ddtags &&
|
138
173
|
hostname == o.hostname &&
|
139
174
|
message == o.message &&
|
140
|
-
service == o.service
|
175
|
+
service == o.service &&
|
176
|
+
additional_properties == o.additional_properties
|
141
177
|
end
|
142
178
|
|
143
179
|
# @see the `==` method
|
@@ -151,7 +187,7 @@ module DatadogAPIClient::V2
|
|
151
187
|
# @return [Integer] Hash code
|
152
188
|
# @!visibility private
|
153
189
|
def hash
|
154
|
-
[ddsource, ddtags, hostname, message, service].hash
|
190
|
+
[ddsource, ddtags, hostname, message, service, additional_properties].hash
|
155
191
|
end
|
156
192
|
end
|
157
193
|
end
|
@@ -0,0 +1,111 @@
|
|
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 payload accepted for intake.
|
21
|
+
class IntakePayloadAccepted
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Whether the object has unparsed attributes
|
25
|
+
# @!visibility private
|
26
|
+
attr_accessor :_unparsed
|
27
|
+
|
28
|
+
# The status of the intake payload.
|
29
|
+
attr_accessor :status
|
30
|
+
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
+
# @!visibility private
|
33
|
+
def self.attribute_map
|
34
|
+
{
|
35
|
+
:'status' => :'status'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Returns all the JSON keys this model knows about
|
40
|
+
# @!visibility private
|
41
|
+
def self.acceptable_attributes
|
42
|
+
attribute_map.values
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
# @!visibility private
|
47
|
+
def self.openapi_types
|
48
|
+
{
|
49
|
+
:'status' => :'String'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# List of attributes with nullable: true
|
54
|
+
# @!visibility private
|
55
|
+
def self.openapi_nullable
|
56
|
+
Set.new([
|
57
|
+
])
|
58
|
+
end
|
59
|
+
|
60
|
+
# Initializes the object
|
61
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
62
|
+
# @!visibility private
|
63
|
+
def initialize(attributes = {})
|
64
|
+
if (!attributes.is_a?(Hash))
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IntakePayloadAccepted` initialize method"
|
66
|
+
end
|
67
|
+
|
68
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
69
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
70
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IntakePayloadAccepted`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
72
|
+
end
|
73
|
+
h[k.to_sym] = v
|
74
|
+
}
|
75
|
+
|
76
|
+
if attributes.key?(:'status')
|
77
|
+
self.status = attributes[:'status']
|
78
|
+
end
|
79
|
+
end
|
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
|
+
true
|
86
|
+
end
|
87
|
+
|
88
|
+
# Checks equality by comparing each attribute.
|
89
|
+
# @param o [Object] Object to be compared
|
90
|
+
# @!visibility private
|
91
|
+
def ==(o)
|
92
|
+
return true if self.equal?(o)
|
93
|
+
self.class == o.class &&
|
94
|
+
status == o.status
|
95
|
+
end
|
96
|
+
|
97
|
+
# @see the `==` method
|
98
|
+
# @param o [Object] Object to be compared
|
99
|
+
# @!visibility private
|
100
|
+
def eql?(o)
|
101
|
+
self == o
|
102
|
+
end
|
103
|
+
|
104
|
+
# Calculates hash code according to all attributes.
|
105
|
+
# @return [Integer] Hash code
|
106
|
+
# @!visibility private
|
107
|
+
def hash
|
108
|
+
[status].hash
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
@@ -38,6 +38,9 @@ module DatadogAPIClient::V2
|
|
38
38
|
# The archive query/filter. Logs matching this query are included in the archive.
|
39
39
|
attr_accessor :query
|
40
40
|
|
41
|
+
# Maximum scan size for rehydration from this archive.
|
42
|
+
attr_accessor :rehydration_max_scan_size_in_gb
|
43
|
+
|
41
44
|
# An array of tags to add to rehydrated logs from an archive.
|
42
45
|
attr_accessor :rehydration_tags
|
43
46
|
|
@@ -52,6 +55,7 @@ module DatadogAPIClient::V2
|
|
52
55
|
:'include_tags' => :'include_tags',
|
53
56
|
:'name' => :'name',
|
54
57
|
:'query' => :'query',
|
58
|
+
:'rehydration_max_scan_size_in_gb' => :'rehydration_max_scan_size_in_gb',
|
55
59
|
:'rehydration_tags' => :'rehydration_tags',
|
56
60
|
:'state' => :'state'
|
57
61
|
}
|
@@ -71,6 +75,7 @@ module DatadogAPIClient::V2
|
|
71
75
|
:'include_tags' => :'Boolean',
|
72
76
|
:'name' => :'String',
|
73
77
|
:'query' => :'String',
|
78
|
+
:'rehydration_max_scan_size_in_gb' => :'Integer',
|
74
79
|
:'rehydration_tags' => :'Array<String>',
|
75
80
|
:'state' => :'LogsArchiveState'
|
76
81
|
}
|
@@ -81,6 +86,7 @@ module DatadogAPIClient::V2
|
|
81
86
|
def self.openapi_nullable
|
82
87
|
Set.new([
|
83
88
|
:'destination',
|
89
|
+
:'rehydration_max_scan_size_in_gb',
|
84
90
|
])
|
85
91
|
end
|
86
92
|
|
@@ -118,6 +124,10 @@ module DatadogAPIClient::V2
|
|
118
124
|
self.query = attributes[:'query']
|
119
125
|
end
|
120
126
|
|
127
|
+
if attributes.key?(:'rehydration_max_scan_size_in_gb')
|
128
|
+
self.rehydration_max_scan_size_in_gb = attributes[:'rehydration_max_scan_size_in_gb']
|
129
|
+
end
|
130
|
+
|
121
131
|
if attributes.key?(:'rehydration_tags')
|
122
132
|
if (value = attributes[:'rehydration_tags']).is_a?(Array)
|
123
133
|
self.rehydration_tags = value
|
@@ -168,6 +178,7 @@ module DatadogAPIClient::V2
|
|
168
178
|
include_tags == o.include_tags &&
|
169
179
|
name == o.name &&
|
170
180
|
query == o.query &&
|
181
|
+
rehydration_max_scan_size_in_gb == o.rehydration_max_scan_size_in_gb &&
|
171
182
|
rehydration_tags == o.rehydration_tags &&
|
172
183
|
state == o.state
|
173
184
|
end
|
@@ -183,7 +194,7 @@ module DatadogAPIClient::V2
|
|
183
194
|
# @return [Integer] Hash code
|
184
195
|
# @!visibility private
|
185
196
|
def hash
|
186
|
-
[destination, include_tags, name, query, rehydration_tags, state].hash
|
197
|
+
[destination, include_tags, name, query, rehydration_max_scan_size_in_gb, rehydration_tags, state].hash
|
187
198
|
end
|
188
199
|
end
|
189
200
|
end
|
@@ -38,6 +38,9 @@ module DatadogAPIClient::V2
|
|
38
38
|
# The archive query/filter. Logs matching this query are included in the archive.
|
39
39
|
attr_accessor :query
|
40
40
|
|
41
|
+
# Maximum scan size for rehydration from this archive.
|
42
|
+
attr_accessor :rehydration_max_scan_size_in_gb
|
43
|
+
|
41
44
|
# An array of tags to add to rehydrated logs from an archive.
|
42
45
|
attr_accessor :rehydration_tags
|
43
46
|
|
@@ -49,6 +52,7 @@ module DatadogAPIClient::V2
|
|
49
52
|
:'include_tags' => :'include_tags',
|
50
53
|
:'name' => :'name',
|
51
54
|
:'query' => :'query',
|
55
|
+
:'rehydration_max_scan_size_in_gb' => :'rehydration_max_scan_size_in_gb',
|
52
56
|
:'rehydration_tags' => :'rehydration_tags'
|
53
57
|
}
|
54
58
|
end
|
@@ -67,6 +71,7 @@ module DatadogAPIClient::V2
|
|
67
71
|
:'include_tags' => :'Boolean',
|
68
72
|
:'name' => :'String',
|
69
73
|
:'query' => :'String',
|
74
|
+
:'rehydration_max_scan_size_in_gb' => :'Integer',
|
70
75
|
:'rehydration_tags' => :'Array<String>'
|
71
76
|
}
|
72
77
|
end
|
@@ -75,6 +80,7 @@ module DatadogAPIClient::V2
|
|
75
80
|
# @!visibility private
|
76
81
|
def self.openapi_nullable
|
77
82
|
Set.new([
|
83
|
+
:'rehydration_max_scan_size_in_gb',
|
78
84
|
])
|
79
85
|
end
|
80
86
|
|
@@ -112,6 +118,10 @@ module DatadogAPIClient::V2
|
|
112
118
|
self.query = attributes[:'query']
|
113
119
|
end
|
114
120
|
|
121
|
+
if attributes.key?(:'rehydration_max_scan_size_in_gb')
|
122
|
+
self.rehydration_max_scan_size_in_gb = attributes[:'rehydration_max_scan_size_in_gb']
|
123
|
+
end
|
124
|
+
|
115
125
|
if attributes.key?(:'rehydration_tags')
|
116
126
|
if (value = attributes[:'rehydration_tags']).is_a?(Array)
|
117
127
|
self.rehydration_tags = value
|
@@ -169,6 +179,7 @@ module DatadogAPIClient::V2
|
|
169
179
|
include_tags == o.include_tags &&
|
170
180
|
name == o.name &&
|
171
181
|
query == o.query &&
|
182
|
+
rehydration_max_scan_size_in_gb == o.rehydration_max_scan_size_in_gb &&
|
172
183
|
rehydration_tags == o.rehydration_tags
|
173
184
|
end
|
174
185
|
|
@@ -183,7 +194,7 @@ module DatadogAPIClient::V2
|
|
183
194
|
# @return [Integer] Hash code
|
184
195
|
# @!visibility private
|
185
196
|
def hash
|
186
|
-
[destination, include_tags, name, query, rehydration_tags].hash
|
197
|
+
[destination, include_tags, name, query, rehydration_max_scan_size_in_gb, rehydration_tags].hash
|
187
198
|
end
|
188
199
|
end
|
189
200
|
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
|
+
# HTTP header used to compress the media-type.
|
21
|
+
class MetricContentEncoding
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
DEFLATE = "deflate".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,133 @@
|
|
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
|
+
# Object for a metric cardinality estimate.
|
21
|
+
class MetricEstimate
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Whether the object has unparsed attributes
|
25
|
+
# @!visibility private
|
26
|
+
attr_accessor :_unparsed
|
27
|
+
|
28
|
+
# Object containing the definition of a metric estimate attribute.
|
29
|
+
attr_accessor :attributes
|
30
|
+
|
31
|
+
# The metric name for this resource.
|
32
|
+
attr_accessor :id
|
33
|
+
|
34
|
+
# The metric estimate resource type.
|
35
|
+
attr_accessor :type
|
36
|
+
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
38
|
+
# @!visibility private
|
39
|
+
def self.attribute_map
|
40
|
+
{
|
41
|
+
:'attributes' => :'attributes',
|
42
|
+
:'id' => :'id',
|
43
|
+
:'type' => :'type'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# Returns all the JSON keys this model knows about
|
48
|
+
# @!visibility private
|
49
|
+
def self.acceptable_attributes
|
50
|
+
attribute_map.values
|
51
|
+
end
|
52
|
+
|
53
|
+
# Attribute type mapping.
|
54
|
+
# @!visibility private
|
55
|
+
def self.openapi_types
|
56
|
+
{
|
57
|
+
:'attributes' => :'MetricEstimateAttributes',
|
58
|
+
:'id' => :'String',
|
59
|
+
:'type' => :'MetricEstimateResourceType'
|
60
|
+
}
|
61
|
+
end
|
62
|
+
|
63
|
+
# List of attributes with nullable: true
|
64
|
+
# @!visibility private
|
65
|
+
def self.openapi_nullable
|
66
|
+
Set.new([
|
67
|
+
])
|
68
|
+
end
|
69
|
+
|
70
|
+
# Initializes the object
|
71
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
72
|
+
# @!visibility private
|
73
|
+
def initialize(attributes = {})
|
74
|
+
if (!attributes.is_a?(Hash))
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricEstimate` initialize method"
|
76
|
+
end
|
77
|
+
|
78
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
79
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
80
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricEstimate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
82
|
+
end
|
83
|
+
h[k.to_sym] = v
|
84
|
+
}
|
85
|
+
|
86
|
+
if attributes.key?(:'attributes')
|
87
|
+
self.attributes = attributes[:'attributes']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'id')
|
91
|
+
self.id = attributes[:'id']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.key?(:'type')
|
95
|
+
self.type = attributes[:'type']
|
96
|
+
else
|
97
|
+
self.type = 'metric_cardinality_estimate'
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
# Check to see if the all the properties in the model are valid
|
102
|
+
# @return true if the model is valid
|
103
|
+
# @!visibility private
|
104
|
+
def valid?
|
105
|
+
true
|
106
|
+
end
|
107
|
+
|
108
|
+
# Checks equality by comparing each attribute.
|
109
|
+
# @param o [Object] Object to be compared
|
110
|
+
# @!visibility private
|
111
|
+
def ==(o)
|
112
|
+
return true if self.equal?(o)
|
113
|
+
self.class == o.class &&
|
114
|
+
attributes == o.attributes &&
|
115
|
+
id == o.id &&
|
116
|
+
type == o.type
|
117
|
+
end
|
118
|
+
|
119
|
+
# @see the `==` method
|
120
|
+
# @param o [Object] Object to be compared
|
121
|
+
# @!visibility private
|
122
|
+
def eql?(o)
|
123
|
+
self == o
|
124
|
+
end
|
125
|
+
|
126
|
+
# Calculates hash code according to all attributes.
|
127
|
+
# @return [Integer] Hash code
|
128
|
+
# @!visibility private
|
129
|
+
def hash
|
130
|
+
[attributes, id, type].hash
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
@@ -0,0 +1,133 @@
|
|
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
|
+
# Object containing the definition of a metric estimate attribute.
|
21
|
+
class MetricEstimateAttributes
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Whether the object has unparsed attributes
|
25
|
+
# @!visibility private
|
26
|
+
attr_accessor :_unparsed
|
27
|
+
|
28
|
+
# Estimate type based on the queried configuration. By default, `count_or_gauge` is returned. `distribution` is returned for distribution metrics without percentiles enabled. Lastly, `percentile` is returned if `filter[pct]=true` is queried with a distribution metric.
|
29
|
+
attr_accessor :estimate_type
|
30
|
+
|
31
|
+
# Timestamp when the cardinality estimate was requested.
|
32
|
+
attr_accessor :estimated_at
|
33
|
+
|
34
|
+
# Estimated cardinality of the metric based on the queried configuration.
|
35
|
+
attr_accessor :estimated_output_series
|
36
|
+
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
38
|
+
# @!visibility private
|
39
|
+
def self.attribute_map
|
40
|
+
{
|
41
|
+
:'estimate_type' => :'estimate_type',
|
42
|
+
:'estimated_at' => :'estimated_at',
|
43
|
+
:'estimated_output_series' => :'estimated_output_series'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# Returns all the JSON keys this model knows about
|
48
|
+
# @!visibility private
|
49
|
+
def self.acceptable_attributes
|
50
|
+
attribute_map.values
|
51
|
+
end
|
52
|
+
|
53
|
+
# Attribute type mapping.
|
54
|
+
# @!visibility private
|
55
|
+
def self.openapi_types
|
56
|
+
{
|
57
|
+
:'estimate_type' => :'MetricEstimateType',
|
58
|
+
:'estimated_at' => :'Time',
|
59
|
+
:'estimated_output_series' => :'Integer'
|
60
|
+
}
|
61
|
+
end
|
62
|
+
|
63
|
+
# List of attributes with nullable: true
|
64
|
+
# @!visibility private
|
65
|
+
def self.openapi_nullable
|
66
|
+
Set.new([
|
67
|
+
])
|
68
|
+
end
|
69
|
+
|
70
|
+
# Initializes the object
|
71
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
72
|
+
# @!visibility private
|
73
|
+
def initialize(attributes = {})
|
74
|
+
if (!attributes.is_a?(Hash))
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricEstimateAttributes` initialize method"
|
76
|
+
end
|
77
|
+
|
78
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
79
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
80
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MetricEstimateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
82
|
+
end
|
83
|
+
h[k.to_sym] = v
|
84
|
+
}
|
85
|
+
|
86
|
+
if attributes.key?(:'estimate_type')
|
87
|
+
self.estimate_type = attributes[:'estimate_type']
|
88
|
+
else
|
89
|
+
self.estimate_type = 'count_or_gauge'
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'estimated_at')
|
93
|
+
self.estimated_at = attributes[:'estimated_at']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'estimated_output_series')
|
97
|
+
self.estimated_output_series = attributes[:'estimated_output_series']
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
# Check to see if the all the properties in the model are valid
|
102
|
+
# @return true if the model is valid
|
103
|
+
# @!visibility private
|
104
|
+
def valid?
|
105
|
+
true
|
106
|
+
end
|
107
|
+
|
108
|
+
# Checks equality by comparing each attribute.
|
109
|
+
# @param o [Object] Object to be compared
|
110
|
+
# @!visibility private
|
111
|
+
def ==(o)
|
112
|
+
return true if self.equal?(o)
|
113
|
+
self.class == o.class &&
|
114
|
+
estimate_type == o.estimate_type &&
|
115
|
+
estimated_at == o.estimated_at &&
|
116
|
+
estimated_output_series == o.estimated_output_series
|
117
|
+
end
|
118
|
+
|
119
|
+
# @see the `==` method
|
120
|
+
# @param o [Object] Object to be compared
|
121
|
+
# @!visibility private
|
122
|
+
def eql?(o)
|
123
|
+
self == o
|
124
|
+
end
|
125
|
+
|
126
|
+
# Calculates hash code according to all attributes.
|
127
|
+
# @return [Integer] Hash code
|
128
|
+
# @!visibility private
|
129
|
+
def hash
|
130
|
+
[estimate_type, estimated_at, estimated_output_series].hash
|
131
|
+
end
|
132
|
+
end
|
133
|
+
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 metric estimate resource type.
|
21
|
+
class MetricEstimateResourceType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
METRIC_CARDINALITY_ESTIMATE = "metric_cardinality_estimate".freeze
|
25
|
+
end
|
26
|
+
end
|