datadog_api_client 2.46.0 → 2.47.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/.generator/schemas/v1/openapi.yaml +105 -7
- data/.generator/schemas/v2/openapi.yaml +1285 -324
- data/CHANGELOG.md +26 -0
- data/examples/v1/dashboards/CreateDashboard_3685886950.rb +36 -0
- data/examples/v1/dashboards/CreateDashboard_865807520.rb +36 -0
- data/examples/v1/dashboards/CreateDashboard_9836563.rb +118 -0
- data/examples/v2/apm/GetServiceList.rb +5 -0
- data/examples/v2/aws-integration/CreateAWSAccount.rb +11 -0
- data/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb +11 -0
- data/examples/v2/aws-integration/UpdateAWSAccount.rb +11 -0
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +3 -1
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1363354233.rb +1 -1
- data/examples/v2/deployment-gates/GetDeploymentGateRules.rb +11 -0
- data/examples/v2/events/CreateEvent.rb +1 -0
- data/examples/v2/observability-pipelines/CreatePipeline.rb +12 -4
- data/examples/v2/observability-pipelines/UpdatePipeline.rb +12 -4
- data/examples/v2/observability-pipelines/ValidatePipeline.rb +12 -4
- data/examples/v2/on-call/CreateUserNotificationChannel.rb +23 -0
- data/examples/v2/on-call/DeleteUserNotificationChannel.rb +11 -0
- data/examples/v2/on-call/GetUserNotificationChannel.rb +11 -0
- data/examples/v2/on-call/ListUserNotificationChannels.rb +8 -0
- data/examples/v2/security-monitoring/CreateCases.rb +2 -2
- data/examples/v2/security-monitoring/CreateCases_2385516013.rb +1 -1
- data/examples/v2/security-monitoring/CreateCases_2798851680.rb +2 -2
- data/examples/v2/security-monitoring/CreateJiraIssues.rb +14 -69
- data/examples/v2/security-monitoring/GetSecretsRules.rb +1 -1
- data/examples/v2/security-monitoring/GetSuppressionVersionHistory.rb +8 -0
- data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_2609327779.rb +54 -0
- data/lib/datadog_api_client/configuration.rb +4 -3
- data/lib/datadog_api_client/inflector.rb +43 -6
- data/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb +13 -3
- data/lib/datadog_api_client/v1/models/formula_and_function_metric_semantic_mode.rb +27 -0
- data/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +4 -5
- data/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb +1 -1
- data/lib/datadog_api_client/v1/models/geomap_widget_request.rb +37 -3
- data/lib/datadog_api_client/v1/models/geomap_widget_request_style.rb +105 -0
- data/lib/datadog_api_client/v1/models/monitor_search_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +41 -1
- data/lib/datadog_api_client/v2/api/apm_api.rb +83 -0
- data/lib/datadog_api_client/v2/api/deployment_gates_api.rb +71 -0
- data/lib/datadog_api_client/v2/api/incidents_api.rb +0 -18
- data/lib/datadog_api_client/v2/api/on_call_api.rb +277 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +99 -11
- data/lib/datadog_api_client/v2/api/teams_api.rb +6 -0
- data/lib/datadog_api_client/v2/models/attach_case_request_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data.rb +1 -11
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/aws_account_create_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/aws_account_response_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/aws_account_update_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/awsccm_config.rb +107 -0
- data/lib/datadog_api_client/v2/models/case_insights_items.rb +3 -3
- data/lib/datadog_api_client/v2/models/case_management_project_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_version.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_hash.rb +105 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb +1 -1
- data/lib/datadog_api_client/v2/models/{create_jira_issue_request_array_included.rb → cloud_workload_security_agent_rule_action_set_value.rb} +5 -5
- data/lib/datadog_api_client/v2/models/create_case_request_data.rb +1 -11
- data/lib/datadog_api_client/v2/models/create_case_request_data_attributes.rb +3 -3
- data/lib/datadog_api_client/v2/models/create_email_notification_channel_config.rb +167 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_array.rb +3 -15
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data.rb +1 -11
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_attributes.rb +43 -3
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships.rb +35 -14
- data/lib/datadog_api_client/v2/models/create_notification_channel_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_notification_channel_config.rb +63 -0
- data/lib/datadog_api_client/v2/models/create_notification_channel_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/create_phone_notification_channel_config.rb +144 -0
- data/lib/datadog_api_client/v2/models/{create_jira_issue_request_data_relationships_case.rb → create_user_notification_channel_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/data_export_config.rb +145 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_rules_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/detach_case_request_data.rb +1 -11
- data/lib/datadog_api_client/v2/models/event_payload.rb +26 -1
- data/lib/datadog_api_client/v2/models/finding_case_response_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/finding_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/finding_jira_issue.rb +2 -2
- data/lib/datadog_api_client/v2/models/finding_jira_issue_result.rb +4 -4
- data/lib/datadog_api_client/v2/models/get_suppression_version_history_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/get_suppression_version_history_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/get_suppression_version_history_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/library.rb +13 -1
- data/lib/datadog_api_client/v2/models/list_deployment_rule_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/list_deployment_rules_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{create_jira_issue_request_data_attributes_fields.rb → list_deployment_rules_response_data_attributes.rb} +12 -10
- data/lib/datadog_api_client/v2/models/list_notification_channels_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/notification_channel.rb +105 -0
- data/lib/datadog_api_client/v2/models/notification_channel_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/notification_channel_config.rb +64 -0
- data/lib/datadog_api_client/v2/models/notification_channel_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/notification_channel_email_config.rb +167 -0
- data/lib/datadog_api_client/v2/models/notification_channel_email_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notification_channel_email_format_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/notification_channel_phone_config.rb +225 -0
- data/lib/datadog_api_client/v2/models/notification_channel_phone_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notification_channel_push_config.rb +165 -0
- data/lib/datadog_api_client/v2/models/notification_channel_push_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notification_channel_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +2 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_group.rb +211 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor_remap.rb +1 -12
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor.rb +24 -48
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +18 -31
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/rule_versions.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/service_list.rb +105 -0
- data/lib/datadog_api_client/v2/models/{create_jira_issue_request_data_relationships_case_data.rb → service_list_data.rb} +17 -18
- data/lib/datadog_api_client/v2/models/service_list_data_attributes.rb +119 -0
- data/lib/datadog_api_client/v2/models/service_list_data_attributes_metadata_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/service_list_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/suppression_version_history.rb +133 -0
- data/lib/datadog_api_client/v2/models/suppression_versions.rb +117 -0
- data/lib/datadog_api_client/v2/models/{rule_version_update.rb → version_history_update.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{rule_version_update_type.rb → version_history_update_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/vulnerability_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/vulnerability_ecosystem.rb +6 -1
- data/lib/datadog_api_client/v2/models/vulnerability_tool.rb +1 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +55 -9
- data/examples/v2/security-monitoring/CreateJiraIssues_379590688.rb +0 -56
- data/examples/v2/security-monitoring/CreateJiraIssues_829823123.rb +0 -64
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class ObservabilityPipelineDedupeProcessor
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Whether this processor is enabled.
|
|
25
|
+
attr_reader :enabled
|
|
26
|
+
|
|
24
27
|
# A list of log field paths to check for duplicates.
|
|
25
28
|
attr_reader :fields
|
|
26
29
|
|
|
@@ -30,9 +33,6 @@ module DatadogAPIClient::V2
|
|
|
30
33
|
# A Datadog search query used to determine which logs this processor targets.
|
|
31
34
|
attr_reader :include
|
|
32
35
|
|
|
33
|
-
# A list of component IDs whose output is used as the input for this processor.
|
|
34
|
-
attr_reader :inputs
|
|
35
|
-
|
|
36
36
|
# The deduplication mode to apply to the fields.
|
|
37
37
|
attr_reader :mode
|
|
38
38
|
|
|
@@ -45,10 +45,10 @@ module DatadogAPIClient::V2
|
|
|
45
45
|
# @!visibility private
|
|
46
46
|
def self.attribute_map
|
|
47
47
|
{
|
|
48
|
+
:'enabled' => :'enabled',
|
|
48
49
|
:'fields' => :'fields',
|
|
49
50
|
:'id' => :'id',
|
|
50
51
|
:'include' => :'include',
|
|
51
|
-
:'inputs' => :'inputs',
|
|
52
52
|
:'mode' => :'mode',
|
|
53
53
|
:'type' => :'type'
|
|
54
54
|
}
|
|
@@ -58,10 +58,10 @@ module DatadogAPIClient::V2
|
|
|
58
58
|
# @!visibility private
|
|
59
59
|
def self.openapi_types
|
|
60
60
|
{
|
|
61
|
+
:'enabled' => :'Boolean',
|
|
61
62
|
:'fields' => :'Array<String>',
|
|
62
63
|
:'id' => :'String',
|
|
63
64
|
:'include' => :'String',
|
|
64
|
-
:'inputs' => :'Array<String>',
|
|
65
65
|
:'mode' => :'ObservabilityPipelineDedupeProcessorMode',
|
|
66
66
|
:'type' => :'ObservabilityPipelineDedupeProcessorType'
|
|
67
67
|
}
|
|
@@ -85,6 +85,10 @@ module DatadogAPIClient::V2
|
|
|
85
85
|
end
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
if attributes.key?(:'enabled')
|
|
89
|
+
self.enabled = attributes[:'enabled']
|
|
90
|
+
end
|
|
91
|
+
|
|
88
92
|
if attributes.key?(:'fields')
|
|
89
93
|
if (value = attributes[:'fields']).is_a?(Array)
|
|
90
94
|
self.fields = value
|
|
@@ -99,12 +103,6 @@ module DatadogAPIClient::V2
|
|
|
99
103
|
self.include = attributes[:'include']
|
|
100
104
|
end
|
|
101
105
|
|
|
102
|
-
if attributes.key?(:'inputs')
|
|
103
|
-
if (value = attributes[:'inputs']).is_a?(Array)
|
|
104
|
-
self.inputs = value
|
|
105
|
-
end
|
|
106
|
-
end
|
|
107
|
-
|
|
108
106
|
if attributes.key?(:'mode')
|
|
109
107
|
self.mode = attributes[:'mode']
|
|
110
108
|
end
|
|
@@ -118,15 +116,25 @@ module DatadogAPIClient::V2
|
|
|
118
116
|
# @return true if the model is valid
|
|
119
117
|
# @!visibility private
|
|
120
118
|
def valid?
|
|
119
|
+
return false if @enabled.nil?
|
|
121
120
|
return false if @fields.nil?
|
|
122
121
|
return false if @id.nil?
|
|
123
122
|
return false if @include.nil?
|
|
124
|
-
return false if @inputs.nil?
|
|
125
123
|
return false if @mode.nil?
|
|
126
124
|
return false if @type.nil?
|
|
127
125
|
true
|
|
128
126
|
end
|
|
129
127
|
|
|
128
|
+
# Custom attribute writer method with validation
|
|
129
|
+
# @param enabled [Object] Object to be assigned
|
|
130
|
+
# @!visibility private
|
|
131
|
+
def enabled=(enabled)
|
|
132
|
+
if enabled.nil?
|
|
133
|
+
fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
|
|
134
|
+
end
|
|
135
|
+
@enabled = enabled
|
|
136
|
+
end
|
|
137
|
+
|
|
130
138
|
# Custom attribute writer method with validation
|
|
131
139
|
# @param fields [Object] Object to be assigned
|
|
132
140
|
# @!visibility private
|
|
@@ -157,16 +165,6 @@ module DatadogAPIClient::V2
|
|
|
157
165
|
@include = include
|
|
158
166
|
end
|
|
159
167
|
|
|
160
|
-
# Custom attribute writer method with validation
|
|
161
|
-
# @param inputs [Object] Object to be assigned
|
|
162
|
-
# @!visibility private
|
|
163
|
-
def inputs=(inputs)
|
|
164
|
-
if inputs.nil?
|
|
165
|
-
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
|
|
166
|
-
end
|
|
167
|
-
@inputs = inputs
|
|
168
|
-
end
|
|
169
|
-
|
|
170
168
|
# Custom attribute writer method with validation
|
|
171
169
|
# @param mode [Object] Object to be assigned
|
|
172
170
|
# @!visibility private
|
|
@@ -213,10 +211,10 @@ module DatadogAPIClient::V2
|
|
|
213
211
|
def ==(o)
|
|
214
212
|
return true if self.equal?(o)
|
|
215
213
|
self.class == o.class &&
|
|
214
|
+
enabled == o.enabled &&
|
|
216
215
|
fields == o.fields &&
|
|
217
216
|
id == o.id &&
|
|
218
217
|
include == o.include &&
|
|
219
|
-
inputs == o.inputs &&
|
|
220
218
|
mode == o.mode &&
|
|
221
219
|
type == o.type &&
|
|
222
220
|
additional_properties == o.additional_properties
|
|
@@ -226,7 +224,7 @@ module DatadogAPIClient::V2
|
|
|
226
224
|
# @return [Integer] Hash code
|
|
227
225
|
# @!visibility private
|
|
228
226
|
def hash
|
|
229
|
-
[fields, id, include,
|
|
227
|
+
[enabled, fields, id, include, mode, type, additional_properties].hash
|
|
230
228
|
end
|
|
231
229
|
end
|
|
232
230
|
end
|
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class ObservabilityPipelineEnrichmentTableProcessor
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Whether this processor is enabled.
|
|
25
|
+
attr_reader :enabled
|
|
26
|
+
|
|
24
27
|
# Defines a static enrichment table loaded from a CSV file.
|
|
25
28
|
attr_accessor :file
|
|
26
29
|
|
|
@@ -33,9 +36,6 @@ module DatadogAPIClient::V2
|
|
|
33
36
|
# A Datadog search query used to determine which logs this processor targets.
|
|
34
37
|
attr_reader :include
|
|
35
38
|
|
|
36
|
-
# A list of component IDs whose output is used as the input for this processor.
|
|
37
|
-
attr_reader :inputs
|
|
38
|
-
|
|
39
39
|
# Path where enrichment results should be stored in the log.
|
|
40
40
|
attr_reader :target
|
|
41
41
|
|
|
@@ -48,11 +48,11 @@ module DatadogAPIClient::V2
|
|
|
48
48
|
# @!visibility private
|
|
49
49
|
def self.attribute_map
|
|
50
50
|
{
|
|
51
|
+
:'enabled' => :'enabled',
|
|
51
52
|
:'file' => :'file',
|
|
52
53
|
:'geoip' => :'geoip',
|
|
53
54
|
:'id' => :'id',
|
|
54
55
|
:'include' => :'include',
|
|
55
|
-
:'inputs' => :'inputs',
|
|
56
56
|
:'target' => :'target',
|
|
57
57
|
:'type' => :'type'
|
|
58
58
|
}
|
|
@@ -62,11 +62,11 @@ module DatadogAPIClient::V2
|
|
|
62
62
|
# @!visibility private
|
|
63
63
|
def self.openapi_types
|
|
64
64
|
{
|
|
65
|
+
:'enabled' => :'Boolean',
|
|
65
66
|
:'file' => :'ObservabilityPipelineEnrichmentTableFile',
|
|
66
67
|
:'geoip' => :'ObservabilityPipelineEnrichmentTableGeoIp',
|
|
67
68
|
:'id' => :'String',
|
|
68
69
|
:'include' => :'String',
|
|
69
|
-
:'inputs' => :'Array<String>',
|
|
70
70
|
:'target' => :'String',
|
|
71
71
|
:'type' => :'ObservabilityPipelineEnrichmentTableProcessorType'
|
|
72
72
|
}
|
|
@@ -90,6 +90,10 @@ module DatadogAPIClient::V2
|
|
|
90
90
|
end
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
if attributes.key?(:'enabled')
|
|
94
|
+
self.enabled = attributes[:'enabled']
|
|
95
|
+
end
|
|
96
|
+
|
|
93
97
|
if attributes.key?(:'file')
|
|
94
98
|
self.file = attributes[:'file']
|
|
95
99
|
end
|
|
@@ -106,12 +110,6 @@ module DatadogAPIClient::V2
|
|
|
106
110
|
self.include = attributes[:'include']
|
|
107
111
|
end
|
|
108
112
|
|
|
109
|
-
if attributes.key?(:'inputs')
|
|
110
|
-
if (value = attributes[:'inputs']).is_a?(Array)
|
|
111
|
-
self.inputs = value
|
|
112
|
-
end
|
|
113
|
-
end
|
|
114
|
-
|
|
115
113
|
if attributes.key?(:'target')
|
|
116
114
|
self.target = attributes[:'target']
|
|
117
115
|
end
|
|
@@ -125,14 +123,24 @@ module DatadogAPIClient::V2
|
|
|
125
123
|
# @return true if the model is valid
|
|
126
124
|
# @!visibility private
|
|
127
125
|
def valid?
|
|
126
|
+
return false if @enabled.nil?
|
|
128
127
|
return false if @id.nil?
|
|
129
128
|
return false if @include.nil?
|
|
130
|
-
return false if @inputs.nil?
|
|
131
129
|
return false if @target.nil?
|
|
132
130
|
return false if @type.nil?
|
|
133
131
|
true
|
|
134
132
|
end
|
|
135
133
|
|
|
134
|
+
# Custom attribute writer method with validation
|
|
135
|
+
# @param enabled [Object] Object to be assigned
|
|
136
|
+
# @!visibility private
|
|
137
|
+
def enabled=(enabled)
|
|
138
|
+
if enabled.nil?
|
|
139
|
+
fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
|
|
140
|
+
end
|
|
141
|
+
@enabled = enabled
|
|
142
|
+
end
|
|
143
|
+
|
|
136
144
|
# Custom attribute writer method with validation
|
|
137
145
|
# @param id [Object] Object to be assigned
|
|
138
146
|
# @!visibility private
|
|
@@ -153,16 +161,6 @@ module DatadogAPIClient::V2
|
|
|
153
161
|
@include = include
|
|
154
162
|
end
|
|
155
163
|
|
|
156
|
-
# Custom attribute writer method with validation
|
|
157
|
-
# @param inputs [Object] Object to be assigned
|
|
158
|
-
# @!visibility private
|
|
159
|
-
def inputs=(inputs)
|
|
160
|
-
if inputs.nil?
|
|
161
|
-
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
|
|
162
|
-
end
|
|
163
|
-
@inputs = inputs
|
|
164
|
-
end
|
|
165
|
-
|
|
166
164
|
# Custom attribute writer method with validation
|
|
167
165
|
# @param target [Object] Object to be assigned
|
|
168
166
|
# @!visibility private
|
|
@@ -209,11 +207,11 @@ module DatadogAPIClient::V2
|
|
|
209
207
|
def ==(o)
|
|
210
208
|
return true if self.equal?(o)
|
|
211
209
|
self.class == o.class &&
|
|
210
|
+
enabled == o.enabled &&
|
|
212
211
|
file == o.file &&
|
|
213
212
|
geoip == o.geoip &&
|
|
214
213
|
id == o.id &&
|
|
215
214
|
include == o.include &&
|
|
216
|
-
inputs == o.inputs &&
|
|
217
215
|
target == o.target &&
|
|
218
216
|
type == o.type &&
|
|
219
217
|
additional_properties == o.additional_properties
|
|
@@ -223,7 +221,7 @@ module DatadogAPIClient::V2
|
|
|
223
221
|
# @return [Integer] Hash code
|
|
224
222
|
# @!visibility private
|
|
225
223
|
def hash
|
|
226
|
-
[file, geoip, id, include,
|
|
224
|
+
[enabled, file, geoip, id, include, target, type, additional_properties].hash
|
|
227
225
|
end
|
|
228
226
|
end
|
|
229
227
|
end
|
|
@@ -21,15 +21,15 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class ObservabilityPipelineFilterProcessor
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Whether this processor is enabled.
|
|
25
|
+
attr_reader :enabled
|
|
26
|
+
|
|
24
27
|
# The unique identifier for this component. Used to reference this component in other parts of the pipeline (for example, as the `input` to downstream components).
|
|
25
28
|
attr_reader :id
|
|
26
29
|
|
|
27
30
|
# A Datadog search query used to determine which logs should pass through the filter. Logs that match this query continue to downstream components; others are dropped.
|
|
28
31
|
attr_reader :include
|
|
29
32
|
|
|
30
|
-
# A list of component IDs whose output is used as the `input` for this component.
|
|
31
|
-
attr_reader :inputs
|
|
32
|
-
|
|
33
33
|
# The processor type. The value should always be `filter`.
|
|
34
34
|
attr_reader :type
|
|
35
35
|
|
|
@@ -39,9 +39,9 @@ module DatadogAPIClient::V2
|
|
|
39
39
|
# @!visibility private
|
|
40
40
|
def self.attribute_map
|
|
41
41
|
{
|
|
42
|
+
:'enabled' => :'enabled',
|
|
42
43
|
:'id' => :'id',
|
|
43
44
|
:'include' => :'include',
|
|
44
|
-
:'inputs' => :'inputs',
|
|
45
45
|
:'type' => :'type'
|
|
46
46
|
}
|
|
47
47
|
end
|
|
@@ -50,9 +50,9 @@ module DatadogAPIClient::V2
|
|
|
50
50
|
# @!visibility private
|
|
51
51
|
def self.openapi_types
|
|
52
52
|
{
|
|
53
|
+
:'enabled' => :'Boolean',
|
|
53
54
|
:'id' => :'String',
|
|
54
55
|
:'include' => :'String',
|
|
55
|
-
:'inputs' => :'Array<String>',
|
|
56
56
|
:'type' => :'ObservabilityPipelineFilterProcessorType'
|
|
57
57
|
}
|
|
58
58
|
end
|
|
@@ -75,6 +75,10 @@ module DatadogAPIClient::V2
|
|
|
75
75
|
end
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
if attributes.key?(:'enabled')
|
|
79
|
+
self.enabled = attributes[:'enabled']
|
|
80
|
+
end
|
|
81
|
+
|
|
78
82
|
if attributes.key?(:'id')
|
|
79
83
|
self.id = attributes[:'id']
|
|
80
84
|
end
|
|
@@ -83,12 +87,6 @@ module DatadogAPIClient::V2
|
|
|
83
87
|
self.include = attributes[:'include']
|
|
84
88
|
end
|
|
85
89
|
|
|
86
|
-
if attributes.key?(:'inputs')
|
|
87
|
-
if (value = attributes[:'inputs']).is_a?(Array)
|
|
88
|
-
self.inputs = value
|
|
89
|
-
end
|
|
90
|
-
end
|
|
91
|
-
|
|
92
90
|
if attributes.key?(:'type')
|
|
93
91
|
self.type = attributes[:'type']
|
|
94
92
|
end
|
|
@@ -98,13 +96,23 @@ module DatadogAPIClient::V2
|
|
|
98
96
|
# @return true if the model is valid
|
|
99
97
|
# @!visibility private
|
|
100
98
|
def valid?
|
|
99
|
+
return false if @enabled.nil?
|
|
101
100
|
return false if @id.nil?
|
|
102
101
|
return false if @include.nil?
|
|
103
|
-
return false if @inputs.nil?
|
|
104
102
|
return false if @type.nil?
|
|
105
103
|
true
|
|
106
104
|
end
|
|
107
105
|
|
|
106
|
+
# Custom attribute writer method with validation
|
|
107
|
+
# @param enabled [Object] Object to be assigned
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def enabled=(enabled)
|
|
110
|
+
if enabled.nil?
|
|
111
|
+
fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
|
|
112
|
+
end
|
|
113
|
+
@enabled = enabled
|
|
114
|
+
end
|
|
115
|
+
|
|
108
116
|
# Custom attribute writer method with validation
|
|
109
117
|
# @param id [Object] Object to be assigned
|
|
110
118
|
# @!visibility private
|
|
@@ -125,16 +133,6 @@ module DatadogAPIClient::V2
|
|
|
125
133
|
@include = include
|
|
126
134
|
end
|
|
127
135
|
|
|
128
|
-
# Custom attribute writer method with validation
|
|
129
|
-
# @param inputs [Object] Object to be assigned
|
|
130
|
-
# @!visibility private
|
|
131
|
-
def inputs=(inputs)
|
|
132
|
-
if inputs.nil?
|
|
133
|
-
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
|
|
134
|
-
end
|
|
135
|
-
@inputs = inputs
|
|
136
|
-
end
|
|
137
|
-
|
|
138
136
|
# Custom attribute writer method with validation
|
|
139
137
|
# @param type [Object] Object to be assigned
|
|
140
138
|
# @!visibility private
|
|
@@ -171,9 +169,9 @@ module DatadogAPIClient::V2
|
|
|
171
169
|
def ==(o)
|
|
172
170
|
return true if self.equal?(o)
|
|
173
171
|
self.class == o.class &&
|
|
172
|
+
enabled == o.enabled &&
|
|
174
173
|
id == o.id &&
|
|
175
174
|
include == o.include &&
|
|
176
|
-
inputs == o.inputs &&
|
|
177
175
|
type == o.type &&
|
|
178
176
|
additional_properties == o.additional_properties
|
|
179
177
|
end
|
|
@@ -182,7 +180,7 @@ module DatadogAPIClient::V2
|
|
|
182
180
|
# @return [Integer] Hash code
|
|
183
181
|
# @!visibility private
|
|
184
182
|
def hash
|
|
185
|
-
[id, include,
|
|
183
|
+
[enabled, id, include, type, additional_properties].hash
|
|
186
184
|
end
|
|
187
185
|
end
|
|
188
186
|
end
|
|
@@ -22,17 +22,17 @@ module DatadogAPIClient::V2
|
|
|
22
22
|
class ObservabilityPipelineGenerateMetricsProcessor
|
|
23
23
|
include BaseGenericModel
|
|
24
24
|
|
|
25
|
+
# Whether this processor is enabled.
|
|
26
|
+
attr_reader :enabled
|
|
27
|
+
|
|
25
28
|
# The unique identifier for this component. Used to reference this component in other parts of the pipeline.
|
|
26
29
|
attr_reader :id
|
|
27
30
|
|
|
28
31
|
# A Datadog search query used to determine which logs this processor targets.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
# A list of component IDs whose output is used as the `input` for this processor.
|
|
32
|
-
attr_reader :inputs
|
|
32
|
+
attr_accessor :include
|
|
33
33
|
|
|
34
34
|
# Configuration for generating individual metrics.
|
|
35
|
-
|
|
35
|
+
attr_accessor :metrics
|
|
36
36
|
|
|
37
37
|
# The processor type. Always `generate_datadog_metrics`.
|
|
38
38
|
attr_reader :type
|
|
@@ -43,9 +43,9 @@ module DatadogAPIClient::V2
|
|
|
43
43
|
# @!visibility private
|
|
44
44
|
def self.attribute_map
|
|
45
45
|
{
|
|
46
|
+
:'enabled' => :'enabled',
|
|
46
47
|
:'id' => :'id',
|
|
47
48
|
:'include' => :'include',
|
|
48
|
-
:'inputs' => :'inputs',
|
|
49
49
|
:'metrics' => :'metrics',
|
|
50
50
|
:'type' => :'type'
|
|
51
51
|
}
|
|
@@ -55,9 +55,9 @@ module DatadogAPIClient::V2
|
|
|
55
55
|
# @!visibility private
|
|
56
56
|
def self.openapi_types
|
|
57
57
|
{
|
|
58
|
+
:'enabled' => :'Boolean',
|
|
58
59
|
:'id' => :'String',
|
|
59
60
|
:'include' => :'String',
|
|
60
|
-
:'inputs' => :'Array<String>',
|
|
61
61
|
:'metrics' => :'Array<ObservabilityPipelineGeneratedMetric>',
|
|
62
62
|
:'type' => :'ObservabilityPipelineGenerateMetricsProcessorType'
|
|
63
63
|
}
|
|
@@ -81,6 +81,10 @@ module DatadogAPIClient::V2
|
|
|
81
81
|
end
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
if attributes.key?(:'enabled')
|
|
85
|
+
self.enabled = attributes[:'enabled']
|
|
86
|
+
end
|
|
87
|
+
|
|
84
88
|
if attributes.key?(:'id')
|
|
85
89
|
self.id = attributes[:'id']
|
|
86
90
|
end
|
|
@@ -89,12 +93,6 @@ module DatadogAPIClient::V2
|
|
|
89
93
|
self.include = attributes[:'include']
|
|
90
94
|
end
|
|
91
95
|
|
|
92
|
-
if attributes.key?(:'inputs')
|
|
93
|
-
if (value = attributes[:'inputs']).is_a?(Array)
|
|
94
|
-
self.inputs = value
|
|
95
|
-
end
|
|
96
|
-
end
|
|
97
|
-
|
|
98
96
|
if attributes.key?(:'metrics')
|
|
99
97
|
if (value = attributes[:'metrics']).is_a?(Array)
|
|
100
98
|
self.metrics = value
|
|
@@ -110,52 +108,30 @@ module DatadogAPIClient::V2
|
|
|
110
108
|
# @return true if the model is valid
|
|
111
109
|
# @!visibility private
|
|
112
110
|
def valid?
|
|
111
|
+
return false if @enabled.nil?
|
|
113
112
|
return false if @id.nil?
|
|
114
|
-
return false if @include.nil?
|
|
115
|
-
return false if @inputs.nil?
|
|
116
|
-
return false if @metrics.nil?
|
|
117
113
|
return false if @type.nil?
|
|
118
114
|
true
|
|
119
115
|
end
|
|
120
116
|
|
|
121
117
|
# Custom attribute writer method with validation
|
|
122
|
-
# @param
|
|
118
|
+
# @param enabled [Object] Object to be assigned
|
|
123
119
|
# @!visibility private
|
|
124
|
-
def
|
|
125
|
-
if
|
|
126
|
-
fail ArgumentError, 'invalid value for "
|
|
120
|
+
def enabled=(enabled)
|
|
121
|
+
if enabled.nil?
|
|
122
|
+
fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
|
|
127
123
|
end
|
|
128
|
-
@
|
|
124
|
+
@enabled = enabled
|
|
129
125
|
end
|
|
130
126
|
|
|
131
127
|
# Custom attribute writer method with validation
|
|
132
|
-
# @param
|
|
133
|
-
# @!visibility private
|
|
134
|
-
def include=(include)
|
|
135
|
-
if include.nil?
|
|
136
|
-
fail ArgumentError, 'invalid value for "include", include cannot be nil.'
|
|
137
|
-
end
|
|
138
|
-
@include = include
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
# Custom attribute writer method with validation
|
|
142
|
-
# @param inputs [Object] Object to be assigned
|
|
143
|
-
# @!visibility private
|
|
144
|
-
def inputs=(inputs)
|
|
145
|
-
if inputs.nil?
|
|
146
|
-
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
|
|
147
|
-
end
|
|
148
|
-
@inputs = inputs
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
# Custom attribute writer method with validation
|
|
152
|
-
# @param metrics [Object] Object to be assigned
|
|
128
|
+
# @param id [Object] Object to be assigned
|
|
153
129
|
# @!visibility private
|
|
154
|
-
def
|
|
155
|
-
if
|
|
156
|
-
fail ArgumentError, 'invalid value for "
|
|
130
|
+
def id=(id)
|
|
131
|
+
if id.nil?
|
|
132
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
|
157
133
|
end
|
|
158
|
-
@
|
|
134
|
+
@id = id
|
|
159
135
|
end
|
|
160
136
|
|
|
161
137
|
# Custom attribute writer method with validation
|
|
@@ -194,9 +170,9 @@ module DatadogAPIClient::V2
|
|
|
194
170
|
def ==(o)
|
|
195
171
|
return true if self.equal?(o)
|
|
196
172
|
self.class == o.class &&
|
|
173
|
+
enabled == o.enabled &&
|
|
197
174
|
id == o.id &&
|
|
198
175
|
include == o.include &&
|
|
199
|
-
inputs == o.inputs &&
|
|
200
176
|
metrics == o.metrics &&
|
|
201
177
|
type == o.type &&
|
|
202
178
|
additional_properties == o.additional_properties
|
|
@@ -206,7 +182,7 @@ module DatadogAPIClient::V2
|
|
|
206
182
|
# @return [Integer] Hash code
|
|
207
183
|
# @!visibility private
|
|
208
184
|
def hash
|
|
209
|
-
[id, include,
|
|
185
|
+
[enabled, id, include, metrics, type, additional_properties].hash
|
|
210
186
|
end
|
|
211
187
|
end
|
|
212
188
|
end
|
|
@@ -21,15 +21,15 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class ObservabilityPipelineOcsfMapperProcessor
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Whether this processor is enabled.
|
|
25
|
+
attr_reader :enabled
|
|
26
|
+
|
|
24
27
|
# The unique identifier for this component. Used to reference this component in other parts of the pipeline.
|
|
25
28
|
attr_reader :id
|
|
26
29
|
|
|
27
30
|
# A Datadog search query used to determine which logs this processor targets.
|
|
28
31
|
attr_reader :include
|
|
29
32
|
|
|
30
|
-
# A list of component IDs whose output is used as the `input` for this processor.
|
|
31
|
-
attr_reader :inputs
|
|
32
|
-
|
|
33
33
|
# A list of mapping rules to convert events to the OCSF format.
|
|
34
34
|
attr_reader :mappings
|
|
35
35
|
|
|
@@ -42,9 +42,9 @@ module DatadogAPIClient::V2
|
|
|
42
42
|
# @!visibility private
|
|
43
43
|
def self.attribute_map
|
|
44
44
|
{
|
|
45
|
+
:'enabled' => :'enabled',
|
|
45
46
|
:'id' => :'id',
|
|
46
47
|
:'include' => :'include',
|
|
47
|
-
:'inputs' => :'inputs',
|
|
48
48
|
:'mappings' => :'mappings',
|
|
49
49
|
:'type' => :'type'
|
|
50
50
|
}
|
|
@@ -54,9 +54,9 @@ module DatadogAPIClient::V2
|
|
|
54
54
|
# @!visibility private
|
|
55
55
|
def self.openapi_types
|
|
56
56
|
{
|
|
57
|
+
:'enabled' => :'Boolean',
|
|
57
58
|
:'id' => :'String',
|
|
58
59
|
:'include' => :'String',
|
|
59
|
-
:'inputs' => :'Array<String>',
|
|
60
60
|
:'mappings' => :'Array<ObservabilityPipelineOcsfMapperProcessorMapping>',
|
|
61
61
|
:'type' => :'ObservabilityPipelineOcsfMapperProcessorType'
|
|
62
62
|
}
|
|
@@ -80,6 +80,10 @@ module DatadogAPIClient::V2
|
|
|
80
80
|
end
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
if attributes.key?(:'enabled')
|
|
84
|
+
self.enabled = attributes[:'enabled']
|
|
85
|
+
end
|
|
86
|
+
|
|
83
87
|
if attributes.key?(:'id')
|
|
84
88
|
self.id = attributes[:'id']
|
|
85
89
|
end
|
|
@@ -88,12 +92,6 @@ module DatadogAPIClient::V2
|
|
|
88
92
|
self.include = attributes[:'include']
|
|
89
93
|
end
|
|
90
94
|
|
|
91
|
-
if attributes.key?(:'inputs')
|
|
92
|
-
if (value = attributes[:'inputs']).is_a?(Array)
|
|
93
|
-
self.inputs = value
|
|
94
|
-
end
|
|
95
|
-
end
|
|
96
|
-
|
|
97
95
|
if attributes.key?(:'mappings')
|
|
98
96
|
if (value = attributes[:'mappings']).is_a?(Array)
|
|
99
97
|
self.mappings = value
|
|
@@ -109,14 +107,24 @@ module DatadogAPIClient::V2
|
|
|
109
107
|
# @return true if the model is valid
|
|
110
108
|
# @!visibility private
|
|
111
109
|
def valid?
|
|
110
|
+
return false if @enabled.nil?
|
|
112
111
|
return false if @id.nil?
|
|
113
112
|
return false if @include.nil?
|
|
114
|
-
return false if @inputs.nil?
|
|
115
113
|
return false if @mappings.nil?
|
|
116
114
|
return false if @type.nil?
|
|
117
115
|
true
|
|
118
116
|
end
|
|
119
117
|
|
|
118
|
+
# Custom attribute writer method with validation
|
|
119
|
+
# @param enabled [Object] Object to be assigned
|
|
120
|
+
# @!visibility private
|
|
121
|
+
def enabled=(enabled)
|
|
122
|
+
if enabled.nil?
|
|
123
|
+
fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
|
|
124
|
+
end
|
|
125
|
+
@enabled = enabled
|
|
126
|
+
end
|
|
127
|
+
|
|
120
128
|
# Custom attribute writer method with validation
|
|
121
129
|
# @param id [Object] Object to be assigned
|
|
122
130
|
# @!visibility private
|
|
@@ -137,16 +145,6 @@ module DatadogAPIClient::V2
|
|
|
137
145
|
@include = include
|
|
138
146
|
end
|
|
139
147
|
|
|
140
|
-
# Custom attribute writer method with validation
|
|
141
|
-
# @param inputs [Object] Object to be assigned
|
|
142
|
-
# @!visibility private
|
|
143
|
-
def inputs=(inputs)
|
|
144
|
-
if inputs.nil?
|
|
145
|
-
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
|
|
146
|
-
end
|
|
147
|
-
@inputs = inputs
|
|
148
|
-
end
|
|
149
|
-
|
|
150
148
|
# Custom attribute writer method with validation
|
|
151
149
|
# @param mappings [Object] Object to be assigned
|
|
152
150
|
# @!visibility private
|
|
@@ -193,9 +191,9 @@ module DatadogAPIClient::V2
|
|
|
193
191
|
def ==(o)
|
|
194
192
|
return true if self.equal?(o)
|
|
195
193
|
self.class == o.class &&
|
|
194
|
+
enabled == o.enabled &&
|
|
196
195
|
id == o.id &&
|
|
197
196
|
include == o.include &&
|
|
198
|
-
inputs == o.inputs &&
|
|
199
197
|
mappings == o.mappings &&
|
|
200
198
|
type == o.type &&
|
|
201
199
|
additional_properties == o.additional_properties
|
|
@@ -205,7 +203,7 @@ module DatadogAPIClient::V2
|
|
|
205
203
|
# @return [Integer] Hash code
|
|
206
204
|
# @!visibility private
|
|
207
205
|
def hash
|
|
208
|
-
[id, include,
|
|
206
|
+
[enabled, id, include, mappings, type, additional_properties].hash
|
|
209
207
|
end
|
|
210
208
|
end
|
|
211
209
|
end
|