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
|
@@ -24,15 +24,15 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# If set to `true`, disables the default Grok rules provided by Datadog.
|
|
25
25
|
attr_accessor :disable_library_rules
|
|
26
26
|
|
|
27
|
+
# Whether this processor is enabled.
|
|
28
|
+
attr_reader :enabled
|
|
29
|
+
|
|
27
30
|
# A unique identifier for this processor.
|
|
28
31
|
attr_reader :id
|
|
29
32
|
|
|
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 component.
|
|
34
|
-
attr_reader :inputs
|
|
35
|
-
|
|
36
36
|
# The list of Grok parsing rules. If multiple matching rules are provided, they are evaluated in order. The first successful match is applied.
|
|
37
37
|
attr_reader :rules
|
|
38
38
|
|
|
@@ -46,9 +46,9 @@ module DatadogAPIClient::V2
|
|
|
46
46
|
def self.attribute_map
|
|
47
47
|
{
|
|
48
48
|
:'disable_library_rules' => :'disable_library_rules',
|
|
49
|
+
:'enabled' => :'enabled',
|
|
49
50
|
:'id' => :'id',
|
|
50
51
|
:'include' => :'include',
|
|
51
|
-
:'inputs' => :'inputs',
|
|
52
52
|
:'rules' => :'rules',
|
|
53
53
|
:'type' => :'type'
|
|
54
54
|
}
|
|
@@ -59,9 +59,9 @@ module DatadogAPIClient::V2
|
|
|
59
59
|
def self.openapi_types
|
|
60
60
|
{
|
|
61
61
|
:'disable_library_rules' => :'Boolean',
|
|
62
|
+
:'enabled' => :'Boolean',
|
|
62
63
|
:'id' => :'String',
|
|
63
64
|
:'include' => :'String',
|
|
64
|
-
:'inputs' => :'Array<String>',
|
|
65
65
|
:'rules' => :'Array<ObservabilityPipelineParseGrokProcessorRule>',
|
|
66
66
|
:'type' => :'ObservabilityPipelineParseGrokProcessorType'
|
|
67
67
|
}
|
|
@@ -89,6 +89,10 @@ module DatadogAPIClient::V2
|
|
|
89
89
|
self.disable_library_rules = attributes[:'disable_library_rules']
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
+
if attributes.key?(:'enabled')
|
|
93
|
+
self.enabled = attributes[:'enabled']
|
|
94
|
+
end
|
|
95
|
+
|
|
92
96
|
if attributes.key?(:'id')
|
|
93
97
|
self.id = attributes[:'id']
|
|
94
98
|
end
|
|
@@ -97,12 +101,6 @@ module DatadogAPIClient::V2
|
|
|
97
101
|
self.include = attributes[:'include']
|
|
98
102
|
end
|
|
99
103
|
|
|
100
|
-
if attributes.key?(:'inputs')
|
|
101
|
-
if (value = attributes[:'inputs']).is_a?(Array)
|
|
102
|
-
self.inputs = value
|
|
103
|
-
end
|
|
104
|
-
end
|
|
105
|
-
|
|
106
104
|
if attributes.key?(:'rules')
|
|
107
105
|
if (value = attributes[:'rules']).is_a?(Array)
|
|
108
106
|
self.rules = value
|
|
@@ -118,14 +116,24 @@ 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 @id.nil?
|
|
122
121
|
return false if @include.nil?
|
|
123
|
-
return false if @inputs.nil?
|
|
124
122
|
return false if @rules.nil?
|
|
125
123
|
return false if @type.nil?
|
|
126
124
|
true
|
|
127
125
|
end
|
|
128
126
|
|
|
127
|
+
# Custom attribute writer method with validation
|
|
128
|
+
# @param enabled [Object] Object to be assigned
|
|
129
|
+
# @!visibility private
|
|
130
|
+
def enabled=(enabled)
|
|
131
|
+
if enabled.nil?
|
|
132
|
+
fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
|
|
133
|
+
end
|
|
134
|
+
@enabled = enabled
|
|
135
|
+
end
|
|
136
|
+
|
|
129
137
|
# Custom attribute writer method with validation
|
|
130
138
|
# @param id [Object] Object to be assigned
|
|
131
139
|
# @!visibility private
|
|
@@ -146,16 +154,6 @@ module DatadogAPIClient::V2
|
|
|
146
154
|
@include = include
|
|
147
155
|
end
|
|
148
156
|
|
|
149
|
-
# Custom attribute writer method with validation
|
|
150
|
-
# @param inputs [Object] Object to be assigned
|
|
151
|
-
# @!visibility private
|
|
152
|
-
def inputs=(inputs)
|
|
153
|
-
if inputs.nil?
|
|
154
|
-
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
|
|
155
|
-
end
|
|
156
|
-
@inputs = inputs
|
|
157
|
-
end
|
|
158
|
-
|
|
159
157
|
# Custom attribute writer method with validation
|
|
160
158
|
# @param rules [Object] Object to be assigned
|
|
161
159
|
# @!visibility private
|
|
@@ -203,9 +201,9 @@ module DatadogAPIClient::V2
|
|
|
203
201
|
return true if self.equal?(o)
|
|
204
202
|
self.class == o.class &&
|
|
205
203
|
disable_library_rules == o.disable_library_rules &&
|
|
204
|
+
enabled == o.enabled &&
|
|
206
205
|
id == o.id &&
|
|
207
206
|
include == o.include &&
|
|
208
|
-
inputs == o.inputs &&
|
|
209
207
|
rules == o.rules &&
|
|
210
208
|
type == o.type &&
|
|
211
209
|
additional_properties == o.additional_properties
|
|
@@ -215,7 +213,7 @@ module DatadogAPIClient::V2
|
|
|
215
213
|
# @return [Integer] Hash code
|
|
216
214
|
# @!visibility private
|
|
217
215
|
def hash
|
|
218
|
-
[disable_library_rules, id, include,
|
|
216
|
+
[disable_library_rules, enabled, id, include, rules, type, additional_properties].hash
|
|
219
217
|
end
|
|
220
218
|
end
|
|
221
219
|
end
|
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class ObservabilityPipelineParseJSONProcessor
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Whether this processor is enabled.
|
|
25
|
+
attr_reader :enabled
|
|
26
|
+
|
|
24
27
|
# The name of the log field that contains a JSON string.
|
|
25
28
|
attr_reader :field
|
|
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 component.
|
|
34
|
-
attr_reader :inputs
|
|
35
|
-
|
|
36
36
|
# The processor type. The value should always be `parse_json`.
|
|
37
37
|
attr_reader :type
|
|
38
38
|
|
|
@@ -42,10 +42,10 @@ module DatadogAPIClient::V2
|
|
|
42
42
|
# @!visibility private
|
|
43
43
|
def self.attribute_map
|
|
44
44
|
{
|
|
45
|
+
:'enabled' => :'enabled',
|
|
45
46
|
:'field' => :'field',
|
|
46
47
|
:'id' => :'id',
|
|
47
48
|
:'include' => :'include',
|
|
48
|
-
:'inputs' => :'inputs',
|
|
49
49
|
:'type' => :'type'
|
|
50
50
|
}
|
|
51
51
|
end
|
|
@@ -54,10 +54,10 @@ module DatadogAPIClient::V2
|
|
|
54
54
|
# @!visibility private
|
|
55
55
|
def self.openapi_types
|
|
56
56
|
{
|
|
57
|
+
:'enabled' => :'Boolean',
|
|
57
58
|
:'field' => :'String',
|
|
58
59
|
:'id' => :'String',
|
|
59
60
|
:'include' => :'String',
|
|
60
|
-
:'inputs' => :'Array<String>',
|
|
61
61
|
:'type' => :'ObservabilityPipelineParseJSONProcessorType'
|
|
62
62
|
}
|
|
63
63
|
end
|
|
@@ -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?(:'field')
|
|
84
88
|
self.field = attributes[:'field']
|
|
85
89
|
end
|
|
@@ -92,12 +96,6 @@ module DatadogAPIClient::V2
|
|
|
92
96
|
self.include = attributes[:'include']
|
|
93
97
|
end
|
|
94
98
|
|
|
95
|
-
if attributes.key?(:'inputs')
|
|
96
|
-
if (value = attributes[:'inputs']).is_a?(Array)
|
|
97
|
-
self.inputs = value
|
|
98
|
-
end
|
|
99
|
-
end
|
|
100
|
-
|
|
101
99
|
if attributes.key?(:'type')
|
|
102
100
|
self.type = attributes[:'type']
|
|
103
101
|
end
|
|
@@ -107,14 +105,24 @@ module DatadogAPIClient::V2
|
|
|
107
105
|
# @return true if the model is valid
|
|
108
106
|
# @!visibility private
|
|
109
107
|
def valid?
|
|
108
|
+
return false if @enabled.nil?
|
|
110
109
|
return false if @field.nil?
|
|
111
110
|
return false if @id.nil?
|
|
112
111
|
return false if @include.nil?
|
|
113
|
-
return false if @inputs.nil?
|
|
114
112
|
return false if @type.nil?
|
|
115
113
|
true
|
|
116
114
|
end
|
|
117
115
|
|
|
116
|
+
# Custom attribute writer method with validation
|
|
117
|
+
# @param enabled [Object] Object to be assigned
|
|
118
|
+
# @!visibility private
|
|
119
|
+
def enabled=(enabled)
|
|
120
|
+
if enabled.nil?
|
|
121
|
+
fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
|
|
122
|
+
end
|
|
123
|
+
@enabled = enabled
|
|
124
|
+
end
|
|
125
|
+
|
|
118
126
|
# Custom attribute writer method with validation
|
|
119
127
|
# @param field [Object] Object to be assigned
|
|
120
128
|
# @!visibility private
|
|
@@ -145,16 +153,6 @@ module DatadogAPIClient::V2
|
|
|
145
153
|
@include = include
|
|
146
154
|
end
|
|
147
155
|
|
|
148
|
-
# Custom attribute writer method with validation
|
|
149
|
-
# @param inputs [Object] Object to be assigned
|
|
150
|
-
# @!visibility private
|
|
151
|
-
def inputs=(inputs)
|
|
152
|
-
if inputs.nil?
|
|
153
|
-
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
|
|
154
|
-
end
|
|
155
|
-
@inputs = inputs
|
|
156
|
-
end
|
|
157
|
-
|
|
158
156
|
# Custom attribute writer method with validation
|
|
159
157
|
# @param type [Object] Object to be assigned
|
|
160
158
|
# @!visibility private
|
|
@@ -191,10 +189,10 @@ module DatadogAPIClient::V2
|
|
|
191
189
|
def ==(o)
|
|
192
190
|
return true if self.equal?(o)
|
|
193
191
|
self.class == o.class &&
|
|
192
|
+
enabled == o.enabled &&
|
|
194
193
|
field == o.field &&
|
|
195
194
|
id == o.id &&
|
|
196
195
|
include == o.include &&
|
|
197
|
-
inputs == o.inputs &&
|
|
198
196
|
type == o.type &&
|
|
199
197
|
additional_properties == o.additional_properties
|
|
200
198
|
end
|
|
@@ -203,7 +201,7 @@ module DatadogAPIClient::V2
|
|
|
203
201
|
# @return [Integer] Hash code
|
|
204
202
|
# @!visibility private
|
|
205
203
|
def hash
|
|
206
|
-
[field, id, include,
|
|
204
|
+
[enabled, field, id, include, type, additional_properties].hash
|
|
207
205
|
end
|
|
208
206
|
end
|
|
209
207
|
end
|
|
@@ -22,7 +22,10 @@ module DatadogAPIClient::V2
|
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
24
|
# If set to `true`, logs that matched the quota filter and sent after the quota has been met are dropped; only logs that did not match the filter query continue through the pipeline.
|
|
25
|
-
|
|
25
|
+
attr_accessor :drop_events
|
|
26
|
+
|
|
27
|
+
# Whether this processor is enabled.
|
|
28
|
+
attr_reader :enabled
|
|
26
29
|
|
|
27
30
|
# 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).
|
|
28
31
|
attr_reader :id
|
|
@@ -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 component.
|
|
37
|
-
attr_reader :inputs
|
|
38
|
-
|
|
39
39
|
# The maximum amount of data or number of events allowed before the quota is enforced. Can be specified in bytes or events.
|
|
40
40
|
attr_reader :limit
|
|
41
41
|
|
|
@@ -64,10 +64,10 @@ module DatadogAPIClient::V2
|
|
|
64
64
|
def self.attribute_map
|
|
65
65
|
{
|
|
66
66
|
:'drop_events' => :'drop_events',
|
|
67
|
+
:'enabled' => :'enabled',
|
|
67
68
|
:'id' => :'id',
|
|
68
69
|
:'ignore_when_missing_partitions' => :'ignore_when_missing_partitions',
|
|
69
70
|
:'include' => :'include',
|
|
70
|
-
:'inputs' => :'inputs',
|
|
71
71
|
:'limit' => :'limit',
|
|
72
72
|
:'name' => :'name',
|
|
73
73
|
:'overflow_action' => :'overflow_action',
|
|
@@ -82,10 +82,10 @@ module DatadogAPIClient::V2
|
|
|
82
82
|
def self.openapi_types
|
|
83
83
|
{
|
|
84
84
|
:'drop_events' => :'Boolean',
|
|
85
|
+
:'enabled' => :'Boolean',
|
|
85
86
|
:'id' => :'String',
|
|
86
87
|
:'ignore_when_missing_partitions' => :'Boolean',
|
|
87
88
|
:'include' => :'String',
|
|
88
|
-
:'inputs' => :'Array<String>',
|
|
89
89
|
:'limit' => :'ObservabilityPipelineQuotaProcessorLimit',
|
|
90
90
|
:'name' => :'String',
|
|
91
91
|
:'overflow_action' => :'ObservabilityPipelineQuotaProcessorOverflowAction',
|
|
@@ -117,6 +117,10 @@ module DatadogAPIClient::V2
|
|
|
117
117
|
self.drop_events = attributes[:'drop_events']
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
+
if attributes.key?(:'enabled')
|
|
121
|
+
self.enabled = attributes[:'enabled']
|
|
122
|
+
end
|
|
123
|
+
|
|
120
124
|
if attributes.key?(:'id')
|
|
121
125
|
self.id = attributes[:'id']
|
|
122
126
|
end
|
|
@@ -129,12 +133,6 @@ module DatadogAPIClient::V2
|
|
|
129
133
|
self.include = attributes[:'include']
|
|
130
134
|
end
|
|
131
135
|
|
|
132
|
-
if attributes.key?(:'inputs')
|
|
133
|
-
if (value = attributes[:'inputs']).is_a?(Array)
|
|
134
|
-
self.inputs = value
|
|
135
|
-
end
|
|
136
|
-
end
|
|
137
|
-
|
|
138
136
|
if attributes.key?(:'limit')
|
|
139
137
|
self.limit = attributes[:'limit']
|
|
140
138
|
end
|
|
@@ -168,10 +166,9 @@ module DatadogAPIClient::V2
|
|
|
168
166
|
# @return true if the model is valid
|
|
169
167
|
# @!visibility private
|
|
170
168
|
def valid?
|
|
171
|
-
return false if @
|
|
169
|
+
return false if @enabled.nil?
|
|
172
170
|
return false if @id.nil?
|
|
173
171
|
return false if @include.nil?
|
|
174
|
-
return false if @inputs.nil?
|
|
175
172
|
return false if @limit.nil?
|
|
176
173
|
return false if @name.nil?
|
|
177
174
|
return false if @type.nil?
|
|
@@ -179,13 +176,13 @@ module DatadogAPIClient::V2
|
|
|
179
176
|
end
|
|
180
177
|
|
|
181
178
|
# Custom attribute writer method with validation
|
|
182
|
-
# @param
|
|
179
|
+
# @param enabled [Object] Object to be assigned
|
|
183
180
|
# @!visibility private
|
|
184
|
-
def
|
|
185
|
-
if
|
|
186
|
-
fail ArgumentError, 'invalid value for "
|
|
181
|
+
def enabled=(enabled)
|
|
182
|
+
if enabled.nil?
|
|
183
|
+
fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
|
|
187
184
|
end
|
|
188
|
-
@
|
|
185
|
+
@enabled = enabled
|
|
189
186
|
end
|
|
190
187
|
|
|
191
188
|
# Custom attribute writer method with validation
|
|
@@ -208,16 +205,6 @@ module DatadogAPIClient::V2
|
|
|
208
205
|
@include = include
|
|
209
206
|
end
|
|
210
207
|
|
|
211
|
-
# Custom attribute writer method with validation
|
|
212
|
-
# @param inputs [Object] Object to be assigned
|
|
213
|
-
# @!visibility private
|
|
214
|
-
def inputs=(inputs)
|
|
215
|
-
if inputs.nil?
|
|
216
|
-
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
|
|
217
|
-
end
|
|
218
|
-
@inputs = inputs
|
|
219
|
-
end
|
|
220
|
-
|
|
221
208
|
# Custom attribute writer method with validation
|
|
222
209
|
# @param limit [Object] Object to be assigned
|
|
223
210
|
# @!visibility private
|
|
@@ -275,10 +262,10 @@ module DatadogAPIClient::V2
|
|
|
275
262
|
return true if self.equal?(o)
|
|
276
263
|
self.class == o.class &&
|
|
277
264
|
drop_events == o.drop_events &&
|
|
265
|
+
enabled == o.enabled &&
|
|
278
266
|
id == o.id &&
|
|
279
267
|
ignore_when_missing_partitions == o.ignore_when_missing_partitions &&
|
|
280
268
|
include == o.include &&
|
|
281
|
-
inputs == o.inputs &&
|
|
282
269
|
limit == o.limit &&
|
|
283
270
|
name == o.name &&
|
|
284
271
|
overflow_action == o.overflow_action &&
|
|
@@ -292,7 +279,7 @@ module DatadogAPIClient::V2
|
|
|
292
279
|
# @return [Integer] Hash code
|
|
293
280
|
# @!visibility private
|
|
294
281
|
def hash
|
|
295
|
-
[drop_events, id, ignore_when_missing_partitions, include,
|
|
282
|
+
[drop_events, enabled, id, ignore_when_missing_partitions, include, limit, name, overflow_action, overrides, partition_fields, type, additional_properties].hash
|
|
296
283
|
end
|
|
297
284
|
end
|
|
298
285
|
end
|
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class ObservabilityPipelineReduceProcessor
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Whether this processor is enabled.
|
|
25
|
+
attr_reader :enabled
|
|
26
|
+
|
|
24
27
|
# A list of fields used to group log events for merging.
|
|
25
28
|
attr_reader :group_by
|
|
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
|
# List of merge strategies defining how values from grouped events should be combined.
|
|
37
37
|
attr_reader :merge_strategies
|
|
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
|
:'group_by' => :'group_by',
|
|
49
50
|
:'id' => :'id',
|
|
50
51
|
:'include' => :'include',
|
|
51
|
-
:'inputs' => :'inputs',
|
|
52
52
|
:'merge_strategies' => :'merge_strategies',
|
|
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
|
:'group_by' => :'Array<String>',
|
|
62
63
|
:'id' => :'String',
|
|
63
64
|
:'include' => :'String',
|
|
64
|
-
:'inputs' => :'Array<String>',
|
|
65
65
|
:'merge_strategies' => :'Array<ObservabilityPipelineReduceProcessorMergeStrategy>',
|
|
66
66
|
:'type' => :'ObservabilityPipelineReduceProcessorType'
|
|
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?(:'group_by')
|
|
89
93
|
if (value = attributes[:'group_by']).is_a?(Array)
|
|
90
94
|
self.group_by = 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?(:'merge_strategies')
|
|
109
107
|
if (value = attributes[:'merge_strategies']).is_a?(Array)
|
|
110
108
|
self.merge_strategies = value
|
|
@@ -120,15 +118,25 @@ module DatadogAPIClient::V2
|
|
|
120
118
|
# @return true if the model is valid
|
|
121
119
|
# @!visibility private
|
|
122
120
|
def valid?
|
|
121
|
+
return false if @enabled.nil?
|
|
123
122
|
return false if @group_by.nil?
|
|
124
123
|
return false if @id.nil?
|
|
125
124
|
return false if @include.nil?
|
|
126
|
-
return false if @inputs.nil?
|
|
127
125
|
return false if @merge_strategies.nil?
|
|
128
126
|
return false if @type.nil?
|
|
129
127
|
true
|
|
130
128
|
end
|
|
131
129
|
|
|
130
|
+
# Custom attribute writer method with validation
|
|
131
|
+
# @param enabled [Object] Object to be assigned
|
|
132
|
+
# @!visibility private
|
|
133
|
+
def enabled=(enabled)
|
|
134
|
+
if enabled.nil?
|
|
135
|
+
fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
|
|
136
|
+
end
|
|
137
|
+
@enabled = enabled
|
|
138
|
+
end
|
|
139
|
+
|
|
132
140
|
# Custom attribute writer method with validation
|
|
133
141
|
# @param group_by [Object] Object to be assigned
|
|
134
142
|
# @!visibility private
|
|
@@ -159,16 +167,6 @@ module DatadogAPIClient::V2
|
|
|
159
167
|
@include = include
|
|
160
168
|
end
|
|
161
169
|
|
|
162
|
-
# Custom attribute writer method with validation
|
|
163
|
-
# @param inputs [Object] Object to be assigned
|
|
164
|
-
# @!visibility private
|
|
165
|
-
def inputs=(inputs)
|
|
166
|
-
if inputs.nil?
|
|
167
|
-
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
|
|
168
|
-
end
|
|
169
|
-
@inputs = inputs
|
|
170
|
-
end
|
|
171
|
-
|
|
172
170
|
# Custom attribute writer method with validation
|
|
173
171
|
# @param merge_strategies [Object] Object to be assigned
|
|
174
172
|
# @!visibility private
|
|
@@ -215,10 +213,10 @@ module DatadogAPIClient::V2
|
|
|
215
213
|
def ==(o)
|
|
216
214
|
return true if self.equal?(o)
|
|
217
215
|
self.class == o.class &&
|
|
216
|
+
enabled == o.enabled &&
|
|
218
217
|
group_by == o.group_by &&
|
|
219
218
|
id == o.id &&
|
|
220
219
|
include == o.include &&
|
|
221
|
-
inputs == o.inputs &&
|
|
222
220
|
merge_strategies == o.merge_strategies &&
|
|
223
221
|
type == o.type &&
|
|
224
222
|
additional_properties == o.additional_properties
|
|
@@ -228,7 +226,7 @@ module DatadogAPIClient::V2
|
|
|
228
226
|
# @return [Integer] Hash code
|
|
229
227
|
# @!visibility private
|
|
230
228
|
def hash
|
|
231
|
-
[group_by, id, include,
|
|
229
|
+
[enabled, group_by, id, include, merge_strategies, type, additional_properties].hash
|
|
232
230
|
end
|
|
233
231
|
end
|
|
234
232
|
end
|
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class ObservabilityPipelineRemoveFieldsProcessor
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Whether this processor is enabled.
|
|
25
|
+
attr_reader :enabled
|
|
26
|
+
|
|
24
27
|
# A list of field names to be removed from each log event.
|
|
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
|
-
# The `PipelineRemoveFieldsProcessor` `inputs`.
|
|
34
|
-
attr_reader :inputs
|
|
35
|
-
|
|
36
36
|
# The processor type. The value should always be `remove_fields`.
|
|
37
37
|
attr_reader :type
|
|
38
38
|
|
|
@@ -42,10 +42,10 @@ module DatadogAPIClient::V2
|
|
|
42
42
|
# @!visibility private
|
|
43
43
|
def self.attribute_map
|
|
44
44
|
{
|
|
45
|
+
:'enabled' => :'enabled',
|
|
45
46
|
:'fields' => :'fields',
|
|
46
47
|
:'id' => :'id',
|
|
47
48
|
:'include' => :'include',
|
|
48
|
-
:'inputs' => :'inputs',
|
|
49
49
|
:'type' => :'type'
|
|
50
50
|
}
|
|
51
51
|
end
|
|
@@ -54,10 +54,10 @@ module DatadogAPIClient::V2
|
|
|
54
54
|
# @!visibility private
|
|
55
55
|
def self.openapi_types
|
|
56
56
|
{
|
|
57
|
+
:'enabled' => :'Boolean',
|
|
57
58
|
:'fields' => :'Array<String>',
|
|
58
59
|
:'id' => :'String',
|
|
59
60
|
:'include' => :'String',
|
|
60
|
-
:'inputs' => :'Array<String>',
|
|
61
61
|
:'type' => :'ObservabilityPipelineRemoveFieldsProcessorType'
|
|
62
62
|
}
|
|
63
63
|
end
|
|
@@ -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?(:'fields')
|
|
84
88
|
if (value = attributes[:'fields']).is_a?(Array)
|
|
85
89
|
self.fields = value
|
|
@@ -94,12 +98,6 @@ module DatadogAPIClient::V2
|
|
|
94
98
|
self.include = attributes[:'include']
|
|
95
99
|
end
|
|
96
100
|
|
|
97
|
-
if attributes.key?(:'inputs')
|
|
98
|
-
if (value = attributes[:'inputs']).is_a?(Array)
|
|
99
|
-
self.inputs = value
|
|
100
|
-
end
|
|
101
|
-
end
|
|
102
|
-
|
|
103
101
|
if attributes.key?(:'type')
|
|
104
102
|
self.type = attributes[:'type']
|
|
105
103
|
end
|
|
@@ -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 @fields.nil?
|
|
113
112
|
return false if @id.nil?
|
|
114
113
|
return false if @include.nil?
|
|
115
|
-
return false if @inputs.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 fields [Object] Object to be assigned
|
|
122
130
|
# @!visibility private
|
|
@@ -147,16 +155,6 @@ module DatadogAPIClient::V2
|
|
|
147
155
|
@include = include
|
|
148
156
|
end
|
|
149
157
|
|
|
150
|
-
# Custom attribute writer method with validation
|
|
151
|
-
# @param inputs [Object] Object to be assigned
|
|
152
|
-
# @!visibility private
|
|
153
|
-
def inputs=(inputs)
|
|
154
|
-
if inputs.nil?
|
|
155
|
-
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
|
|
156
|
-
end
|
|
157
|
-
@inputs = inputs
|
|
158
|
-
end
|
|
159
|
-
|
|
160
158
|
# Custom attribute writer method with validation
|
|
161
159
|
# @param type [Object] Object to be assigned
|
|
162
160
|
# @!visibility private
|
|
@@ -193,10 +191,10 @@ 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
|
fields == o.fields &&
|
|
197
196
|
id == o.id &&
|
|
198
197
|
include == o.include &&
|
|
199
|
-
inputs == o.inputs &&
|
|
200
198
|
type == o.type &&
|
|
201
199
|
additional_properties == o.additional_properties
|
|
202
200
|
end
|
|
@@ -205,7 +203,7 @@ module DatadogAPIClient::V2
|
|
|
205
203
|
# @return [Integer] Hash code
|
|
206
204
|
# @!visibility private
|
|
207
205
|
def hash
|
|
208
|
-
[fields, id, include,
|
|
206
|
+
[enabled, fields, id, include, type, additional_properties].hash
|
|
209
207
|
end
|
|
210
208
|
end
|
|
211
209
|
end
|