datadog_api_client 2.38.0 → 2.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.generated-info +4 -0
- data/.generator/schemas/v1/openapi.yaml +493 -13
- data/.generator/schemas/v2/openapi.yaml +1021 -36
- data/.github/workflows/approved_status.yml +1 -0
- data/.github/workflows/test.yml +1 -1
- data/CHANGELOG.md +16 -0
- data/examples/v1/dashboards/CreateDashboard_1751391372.rb +41 -0
- data/examples/v1/dashboards/CreatePublicDashboard_1668947073.rb +28 -0
- data/examples/v1/dashboards/UpdatePublicDashboard_1708268778.rb +27 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_1248402480.rb +25 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_1267211320.rb +27 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_1271012410.rb +25 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_3314493032.rb +26 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_3934594739.rb +26 -0
- data/examples/v1/synthetics/SearchTests.rb +5 -0
- data/examples/v1/synthetics/SearchTests_195957771.rb +13 -0
- data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissions.rb +5 -0
- data/examples/v2/cloud-cost-management/CreateCostGCPUsageCostConfig.rb +19 -0
- data/examples/v2/cloud-cost-management/DeleteCostGCPUsageCostConfig.rb +5 -0
- data/examples/v2/cloud-cost-management/ListCostGCPUsageCostConfigs.rb +5 -0
- data/examples/v2/cloud-cost-management/UpdateCostGCPUsageCostConfig.rb +14 -0
- data/examples/v2/datasets/CreateDataset.rb +27 -0
- data/examples/v2/datasets/DeleteDataset.rb +5 -0
- data/examples/v2/datasets/GetAllDatasets.rb +5 -0
- data/examples/v2/datasets/GetDataset.rb +5 -0
- data/examples/v2/monitors/CreateMonitorNotificationRule.rb +0 -3
- data/examples/v2/monitors/DeleteMonitorNotificationRule.rb +0 -3
- data/examples/v2/monitors/GetMonitorNotificationRule.rb +0 -3
- data/examples/v2/monitors/GetMonitorNotificationRules.rb +0 -3
- data/examples/v2/monitors/UpdateMonitorNotificationRule.rb +0 -3
- data/examples/v2/on-call/UpdateOnCallSchedule.rb +1 -1
- data/examples/v2/security-monitoring/ListAssetsSBOMs.rb +12 -0
- data/lib/datadog_api_client/configuration.rb +1 -5
- data/lib/datadog_api_client/inflector.rb +41 -0
- data/lib/datadog_api_client/v1/api/hosts_api.rb +1 -0
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +72 -0
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +6 -6
- data/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +14 -3
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb +1 -0
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +9 -1
- data/lib/datadog_api_client/v1/models/logs_array_processor.rb +168 -0
- data/lib/datadog_api_client/v1/models/logs_array_processor_operation.rb +64 -0
- data/lib/datadog_api_client/v1/models/logs_array_processor_operation_append.rb +175 -0
- data/lib/datadog_api_client/v1/models/logs_array_processor_operation_append_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/logs_array_processor_operation_length.rb +165 -0
- data/lib/datadog_api_client/v1/models/logs_array_processor_operation_length_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/logs_array_processor_operation_select.rb +207 -0
- data/lib/datadog_api_client/v1/models/logs_array_processor_operation_select_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/logs_array_processor_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/logs_processor.rb +2 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb +1 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +14 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +142 -1
- data/lib/datadog_api_client/v1/models/selectable_template_variable_items.rb +12 -1
- data/lib/datadog_api_client/v1/models/synthetics_step_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +81 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +81 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +81 -1
- data/lib/datadog_api_client/v2/api/aws_integration_api.rb +60 -0
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +264 -0
- data/lib/datadog_api_client/v2/api/datasets_api.rb +283 -0
- data/lib/datadog_api_client/v2/api/events_api.rb +2 -0
- data/lib/datadog_api_client/v2/api/monitors_api.rb +0 -30
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +7 -3
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +111 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
- data/lib/datadog_api_client/v2/models/asset_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/aws_integration_iam_permissions_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/aws_integration_iam_permissions_response_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/aws_integration_iam_permissions_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/aws_integration_iam_permissions_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/dataset.rb +154 -0
- data/lib/datadog_api_client/v2/models/dataset_attributes.rb +197 -0
- data/lib/datadog_api_client/v2/models/dataset_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/dataset_response_multi.rb +125 -0
- data/lib/datadog_api_client/v2/models/dataset_response_single.rb +123 -0
- data/lib/datadog_api_client/v2/models/filters_per_product.rb +150 -0
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config.rb +154 -0
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_attributes.rb +369 -0
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_request_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_request_attributes.rb +217 -0
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_configs_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/layer_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/layer_attributes_interval.rb +1 -1
- data/lib/datadog_api_client/v2/models/list_assets_sbo_ms_response.rb +145 -0
- data/lib/datadog_api_client/v2/models/sbom_attributes.rb +24 -1
- data/lib/datadog_api_client/v2/models/sbom_component.rb +46 -1
- data/lib/datadog_api_client/v2/models/sbom_component_dependency.rb +117 -0
- data/lib/datadog_api_client/v2/models/sbom_component_license.rb +123 -0
- data/lib/datadog_api_client/v2/models/sbom_component_license_license.rb +123 -0
- data/lib/datadog_api_client/v2/models/sbom_component_license_type.rb +33 -0
- data/lib/datadog_api_client/v2/models/sbom_component_property.rb +144 -0
- data/lib/datadog_api_client/v2/models/sbom_component_supplier.rb +123 -0
- data/lib/datadog_api_client/v2/models/sbom_metadata.rb +25 -3
- data/lib/datadog_api_client/v2/models/sbom_metadata_author.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +1 -1
- data/lib/datadog_api_client/v2/models/vulnerability_attributes.rb +24 -1
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +63 -2
- data/.apigentools-info +0 -16
@@ -0,0 +1,175 @@
|
|
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
|
+
# Operation that appends a value to a target array attribute.
|
21
|
+
class LogsArrayProcessorOperationAppend
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Remove or preserve the remapped source element.
|
25
|
+
attr_accessor :preserve_source
|
26
|
+
|
27
|
+
# Attribute path containing the value to append.
|
28
|
+
attr_reader :source
|
29
|
+
|
30
|
+
# Attribute path of the array to append to.
|
31
|
+
attr_reader :target
|
32
|
+
|
33
|
+
# Operation type.
|
34
|
+
attr_reader :type
|
35
|
+
|
36
|
+
attr_accessor :additional_properties
|
37
|
+
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
39
|
+
# @!visibility private
|
40
|
+
def self.attribute_map
|
41
|
+
{
|
42
|
+
:'preserve_source' => :'preserve_source',
|
43
|
+
:'source' => :'source',
|
44
|
+
:'target' => :'target',
|
45
|
+
:'type' => :'type'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute type mapping.
|
50
|
+
# @!visibility private
|
51
|
+
def self.openapi_types
|
52
|
+
{
|
53
|
+
:'preserve_source' => :'Boolean',
|
54
|
+
:'source' => :'String',
|
55
|
+
:'target' => :'String',
|
56
|
+
:'type' => :'LogsArrayProcessorOperationAppendType'
|
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::V1::LogsArrayProcessorOperationAppend` initialize method"
|
66
|
+
end
|
67
|
+
|
68
|
+
self.additional_properties = {}
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
72
|
+
self.additional_properties[k.to_sym] = v
|
73
|
+
else
|
74
|
+
h[k.to_sym] = v
|
75
|
+
end
|
76
|
+
}
|
77
|
+
|
78
|
+
if attributes.key?(:'preserve_source')
|
79
|
+
self.preserve_source = attributes[:'preserve_source']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.key?(:'source')
|
83
|
+
self.source = attributes[:'source']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'target')
|
87
|
+
self.target = attributes[:'target']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'type')
|
91
|
+
self.type = attributes[:'type']
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# Check to see if the all the properties in the model are valid
|
96
|
+
# @return true if the model is valid
|
97
|
+
# @!visibility private
|
98
|
+
def valid?
|
99
|
+
return false if @source.nil?
|
100
|
+
return false if @target.nil?
|
101
|
+
return false if @type.nil?
|
102
|
+
true
|
103
|
+
end
|
104
|
+
|
105
|
+
# Custom attribute writer method with validation
|
106
|
+
# @param source [Object] Object to be assigned
|
107
|
+
# @!visibility private
|
108
|
+
def source=(source)
|
109
|
+
if source.nil?
|
110
|
+
fail ArgumentError, 'invalid value for "source", source cannot be nil.'
|
111
|
+
end
|
112
|
+
@source = source
|
113
|
+
end
|
114
|
+
|
115
|
+
# Custom attribute writer method with validation
|
116
|
+
# @param target [Object] Object to be assigned
|
117
|
+
# @!visibility private
|
118
|
+
def target=(target)
|
119
|
+
if target.nil?
|
120
|
+
fail ArgumentError, 'invalid value for "target", target cannot be nil.'
|
121
|
+
end
|
122
|
+
@target = target
|
123
|
+
end
|
124
|
+
|
125
|
+
# Custom attribute writer method with validation
|
126
|
+
# @param type [Object] Object to be assigned
|
127
|
+
# @!visibility private
|
128
|
+
def type=(type)
|
129
|
+
if type.nil?
|
130
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
131
|
+
end
|
132
|
+
@type = type
|
133
|
+
end
|
134
|
+
|
135
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
136
|
+
# @return [Hash] Returns the object in the form of hash
|
137
|
+
# @!visibility private
|
138
|
+
def to_hash
|
139
|
+
hash = {}
|
140
|
+
self.class.attribute_map.each_pair do |attr, param|
|
141
|
+
value = self.send(attr)
|
142
|
+
if value.nil?
|
143
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
144
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
145
|
+
end
|
146
|
+
|
147
|
+
hash[param] = _to_hash(value)
|
148
|
+
end
|
149
|
+
self.additional_properties.each_pair do |attr, value|
|
150
|
+
hash[attr] = value
|
151
|
+
end
|
152
|
+
hash
|
153
|
+
end
|
154
|
+
|
155
|
+
# Checks equality by comparing each attribute.
|
156
|
+
# @param o [Object] Object to be compared
|
157
|
+
# @!visibility private
|
158
|
+
def ==(o)
|
159
|
+
return true if self.equal?(o)
|
160
|
+
self.class == o.class &&
|
161
|
+
preserve_source == o.preserve_source &&
|
162
|
+
source == o.source &&
|
163
|
+
target == o.target &&
|
164
|
+
type == o.type &&
|
165
|
+
additional_properties == o.additional_properties
|
166
|
+
end
|
167
|
+
|
168
|
+
# Calculates hash code according to all attributes.
|
169
|
+
# @return [Integer] Hash code
|
170
|
+
# @!visibility private
|
171
|
+
def hash
|
172
|
+
[preserve_source, source, target, type, additional_properties].hash
|
173
|
+
end
|
174
|
+
end
|
175
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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
|
+
# Operation type.
|
21
|
+
class LogsArrayProcessorOperationAppendType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
APPEND = "append".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,165 @@
|
|
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
|
+
# Operation that computes the length of a `source` array and stores the result in the `target` attribute.
|
21
|
+
class LogsArrayProcessorOperationLength
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Attribute path of the array to measure.
|
25
|
+
attr_reader :source
|
26
|
+
|
27
|
+
# Attribute that receives the computed length.
|
28
|
+
attr_reader :target
|
29
|
+
|
30
|
+
# Operation type.
|
31
|
+
attr_reader :type
|
32
|
+
|
33
|
+
attr_accessor :additional_properties
|
34
|
+
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
36
|
+
# @!visibility private
|
37
|
+
def self.attribute_map
|
38
|
+
{
|
39
|
+
:'source' => :'source',
|
40
|
+
:'target' => :'target',
|
41
|
+
:'type' => :'type'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
# @!visibility private
|
47
|
+
def self.openapi_types
|
48
|
+
{
|
49
|
+
:'source' => :'String',
|
50
|
+
:'target' => :'String',
|
51
|
+
:'type' => :'LogsArrayProcessorOperationLengthType'
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# Initializes the object
|
56
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
57
|
+
# @!visibility private
|
58
|
+
def initialize(attributes = {})
|
59
|
+
if (!attributes.is_a?(Hash))
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsArrayProcessorOperationLength` initialize method"
|
61
|
+
end
|
62
|
+
|
63
|
+
self.additional_properties = {}
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
+
self.additional_properties[k.to_sym] = v
|
68
|
+
else
|
69
|
+
h[k.to_sym] = v
|
70
|
+
end
|
71
|
+
}
|
72
|
+
|
73
|
+
if attributes.key?(:'source')
|
74
|
+
self.source = attributes[:'source']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'target')
|
78
|
+
self.target = attributes[:'target']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'type')
|
82
|
+
self.type = attributes[:'type']
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
# Check to see if the all the properties in the model are valid
|
87
|
+
# @return true if the model is valid
|
88
|
+
# @!visibility private
|
89
|
+
def valid?
|
90
|
+
return false if @source.nil?
|
91
|
+
return false if @target.nil?
|
92
|
+
return false if @type.nil?
|
93
|
+
true
|
94
|
+
end
|
95
|
+
|
96
|
+
# Custom attribute writer method with validation
|
97
|
+
# @param source [Object] Object to be assigned
|
98
|
+
# @!visibility private
|
99
|
+
def source=(source)
|
100
|
+
if source.nil?
|
101
|
+
fail ArgumentError, 'invalid value for "source", source cannot be nil.'
|
102
|
+
end
|
103
|
+
@source = source
|
104
|
+
end
|
105
|
+
|
106
|
+
# Custom attribute writer method with validation
|
107
|
+
# @param target [Object] Object to be assigned
|
108
|
+
# @!visibility private
|
109
|
+
def target=(target)
|
110
|
+
if target.nil?
|
111
|
+
fail ArgumentError, 'invalid value for "target", target cannot be nil.'
|
112
|
+
end
|
113
|
+
@target = target
|
114
|
+
end
|
115
|
+
|
116
|
+
# Custom attribute writer method with validation
|
117
|
+
# @param type [Object] Object to be assigned
|
118
|
+
# @!visibility private
|
119
|
+
def type=(type)
|
120
|
+
if type.nil?
|
121
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
122
|
+
end
|
123
|
+
@type = type
|
124
|
+
end
|
125
|
+
|
126
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
127
|
+
# @return [Hash] Returns the object in the form of hash
|
128
|
+
# @!visibility private
|
129
|
+
def to_hash
|
130
|
+
hash = {}
|
131
|
+
self.class.attribute_map.each_pair do |attr, param|
|
132
|
+
value = self.send(attr)
|
133
|
+
if value.nil?
|
134
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
135
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
136
|
+
end
|
137
|
+
|
138
|
+
hash[param] = _to_hash(value)
|
139
|
+
end
|
140
|
+
self.additional_properties.each_pair do |attr, value|
|
141
|
+
hash[attr] = value
|
142
|
+
end
|
143
|
+
hash
|
144
|
+
end
|
145
|
+
|
146
|
+
# Checks equality by comparing each attribute.
|
147
|
+
# @param o [Object] Object to be compared
|
148
|
+
# @!visibility private
|
149
|
+
def ==(o)
|
150
|
+
return true if self.equal?(o)
|
151
|
+
self.class == o.class &&
|
152
|
+
source == o.source &&
|
153
|
+
target == o.target &&
|
154
|
+
type == o.type &&
|
155
|
+
additional_properties == o.additional_properties
|
156
|
+
end
|
157
|
+
|
158
|
+
# Calculates hash code according to all attributes.
|
159
|
+
# @return [Integer] Hash code
|
160
|
+
# @!visibility private
|
161
|
+
def hash
|
162
|
+
[source, target, type, additional_properties].hash
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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
|
+
# Operation type.
|
21
|
+
class LogsArrayProcessorOperationLengthType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
LENGTH = "length".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,207 @@
|
|
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
|
+
# Operation that finds an object in a `source` array using a `filter`, and then extracts a specific value into the `target` attribute.
|
21
|
+
class LogsArrayProcessorOperationSelect
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Filter condition expressed as `key:value` used to find the matching element.
|
25
|
+
attr_reader :filter
|
26
|
+
|
27
|
+
# Attribute path of the array to search into.
|
28
|
+
attr_reader :source
|
29
|
+
|
30
|
+
# Attribute that receives the extracted value.
|
31
|
+
attr_reader :target
|
32
|
+
|
33
|
+
# Operation type.
|
34
|
+
attr_reader :type
|
35
|
+
|
36
|
+
# Key of the value to extract from the matching element.
|
37
|
+
attr_reader :value_to_extract
|
38
|
+
|
39
|
+
attr_accessor :additional_properties
|
40
|
+
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
42
|
+
# @!visibility private
|
43
|
+
def self.attribute_map
|
44
|
+
{
|
45
|
+
:'filter' => :'filter',
|
46
|
+
:'source' => :'source',
|
47
|
+
:'target' => :'target',
|
48
|
+
:'type' => :'type',
|
49
|
+
:'value_to_extract' => :'value_to_extract'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# Attribute type mapping.
|
54
|
+
# @!visibility private
|
55
|
+
def self.openapi_types
|
56
|
+
{
|
57
|
+
:'filter' => :'String',
|
58
|
+
:'source' => :'String',
|
59
|
+
:'target' => :'String',
|
60
|
+
:'type' => :'LogsArrayProcessorOperationSelectType',
|
61
|
+
:'value_to_extract' => :'String'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# Initializes the object
|
66
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
67
|
+
# @!visibility private
|
68
|
+
def initialize(attributes = {})
|
69
|
+
if (!attributes.is_a?(Hash))
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsArrayProcessorOperationSelect` initialize method"
|
71
|
+
end
|
72
|
+
|
73
|
+
self.additional_properties = {}
|
74
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
76
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
77
|
+
self.additional_properties[k.to_sym] = v
|
78
|
+
else
|
79
|
+
h[k.to_sym] = v
|
80
|
+
end
|
81
|
+
}
|
82
|
+
|
83
|
+
if attributes.key?(:'filter')
|
84
|
+
self.filter = attributes[:'filter']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.key?(:'source')
|
88
|
+
self.source = attributes[:'source']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.key?(:'target')
|
92
|
+
self.target = attributes[:'target']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.key?(:'type')
|
96
|
+
self.type = attributes[:'type']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.key?(:'value_to_extract')
|
100
|
+
self.value_to_extract = attributes[:'value_to_extract']
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
# Check to see if the all the properties in the model are valid
|
105
|
+
# @return true if the model is valid
|
106
|
+
# @!visibility private
|
107
|
+
def valid?
|
108
|
+
return false if @filter.nil?
|
109
|
+
return false if @source.nil?
|
110
|
+
return false if @target.nil?
|
111
|
+
return false if @type.nil?
|
112
|
+
return false if @value_to_extract.nil?
|
113
|
+
true
|
114
|
+
end
|
115
|
+
|
116
|
+
# Custom attribute writer method with validation
|
117
|
+
# @param filter [Object] Object to be assigned
|
118
|
+
# @!visibility private
|
119
|
+
def filter=(filter)
|
120
|
+
if filter.nil?
|
121
|
+
fail ArgumentError, 'invalid value for "filter", filter cannot be nil.'
|
122
|
+
end
|
123
|
+
@filter = filter
|
124
|
+
end
|
125
|
+
|
126
|
+
# Custom attribute writer method with validation
|
127
|
+
# @param source [Object] Object to be assigned
|
128
|
+
# @!visibility private
|
129
|
+
def source=(source)
|
130
|
+
if source.nil?
|
131
|
+
fail ArgumentError, 'invalid value for "source", source cannot be nil.'
|
132
|
+
end
|
133
|
+
@source = source
|
134
|
+
end
|
135
|
+
|
136
|
+
# Custom attribute writer method with validation
|
137
|
+
# @param target [Object] Object to be assigned
|
138
|
+
# @!visibility private
|
139
|
+
def target=(target)
|
140
|
+
if target.nil?
|
141
|
+
fail ArgumentError, 'invalid value for "target", target cannot be nil.'
|
142
|
+
end
|
143
|
+
@target = target
|
144
|
+
end
|
145
|
+
|
146
|
+
# Custom attribute writer method with validation
|
147
|
+
# @param type [Object] Object to be assigned
|
148
|
+
# @!visibility private
|
149
|
+
def type=(type)
|
150
|
+
if type.nil?
|
151
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
152
|
+
end
|
153
|
+
@type = type
|
154
|
+
end
|
155
|
+
|
156
|
+
# Custom attribute writer method with validation
|
157
|
+
# @param value_to_extract [Object] Object to be assigned
|
158
|
+
# @!visibility private
|
159
|
+
def value_to_extract=(value_to_extract)
|
160
|
+
if value_to_extract.nil?
|
161
|
+
fail ArgumentError, 'invalid value for "value_to_extract", value_to_extract cannot be nil.'
|
162
|
+
end
|
163
|
+
@value_to_extract = value_to_extract
|
164
|
+
end
|
165
|
+
|
166
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
167
|
+
# @return [Hash] Returns the object in the form of hash
|
168
|
+
# @!visibility private
|
169
|
+
def to_hash
|
170
|
+
hash = {}
|
171
|
+
self.class.attribute_map.each_pair do |attr, param|
|
172
|
+
value = self.send(attr)
|
173
|
+
if value.nil?
|
174
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
175
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
176
|
+
end
|
177
|
+
|
178
|
+
hash[param] = _to_hash(value)
|
179
|
+
end
|
180
|
+
self.additional_properties.each_pair do |attr, value|
|
181
|
+
hash[attr] = value
|
182
|
+
end
|
183
|
+
hash
|
184
|
+
end
|
185
|
+
|
186
|
+
# Checks equality by comparing each attribute.
|
187
|
+
# @param o [Object] Object to be compared
|
188
|
+
# @!visibility private
|
189
|
+
def ==(o)
|
190
|
+
return true if self.equal?(o)
|
191
|
+
self.class == o.class &&
|
192
|
+
filter == o.filter &&
|
193
|
+
source == o.source &&
|
194
|
+
target == o.target &&
|
195
|
+
type == o.type &&
|
196
|
+
value_to_extract == o.value_to_extract &&
|
197
|
+
additional_properties == o.additional_properties
|
198
|
+
end
|
199
|
+
|
200
|
+
# Calculates hash code according to all attributes.
|
201
|
+
# @return [Integer] Hash code
|
202
|
+
# @!visibility private
|
203
|
+
def hash
|
204
|
+
[filter, source, target, type, value_to_extract, additional_properties].hash
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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
|
+
# Operation type.
|
21
|
+
class LogsArrayProcessorOperationSelectType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
SELECT = "select".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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 logs array processor.
|
21
|
+
class LogsArrayProcessorType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
ARRAY_PROCESSOR = "array-processor".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -47,6 +47,7 @@ module DatadogAPIClient::V1
|
|
47
47
|
attr_accessor :updated_at
|
48
48
|
|
49
49
|
# Fields in Usage Summary by tag(s).
|
50
|
+
# The following values have been **deprecated**: `estimated_indexed_spans_usage`, `estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`, `estimated_ingested_spans_percentage`.
|
50
51
|
attr_accessor :values
|
51
52
|
|
52
53
|
attr_accessor :additional_properties
|