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 ObservabilityPipelineRenameFieldsProcessor
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Whether this processor is enabled.
|
|
25
|
+
attr_reader :enabled
|
|
26
|
+
|
|
24
27
|
# A list of rename rules specifying which fields to rename in the event, what to rename them to, and whether to preserve the original fields.
|
|
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 component.
|
|
34
|
-
attr_reader :inputs
|
|
35
|
-
|
|
36
36
|
# The processor type. The value should always be `rename_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<ObservabilityPipelineRenameFieldsProcessorField>',
|
|
58
59
|
:'id' => :'String',
|
|
59
60
|
:'include' => :'String',
|
|
60
|
-
:'inputs' => :'Array<String>',
|
|
61
61
|
:'type' => :'ObservabilityPipelineRenameFieldsProcessorType'
|
|
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
|
|
@@ -21,15 +21,15 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class ObservabilityPipelineSampleProcessor
|
|
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 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 component.
|
|
31
|
-
attr_reader :inputs
|
|
32
|
-
|
|
33
33
|
# The percentage of logs to sample.
|
|
34
34
|
attr_accessor :percentage
|
|
35
35
|
|
|
@@ -45,9 +45,9 @@ module DatadogAPIClient::V2
|
|
|
45
45
|
# @!visibility private
|
|
46
46
|
def self.attribute_map
|
|
47
47
|
{
|
|
48
|
+
:'enabled' => :'enabled',
|
|
48
49
|
:'id' => :'id',
|
|
49
50
|
:'include' => :'include',
|
|
50
|
-
:'inputs' => :'inputs',
|
|
51
51
|
:'percentage' => :'percentage',
|
|
52
52
|
:'rate' => :'rate',
|
|
53
53
|
:'type' => :'type'
|
|
@@ -58,9 +58,9 @@ module DatadogAPIClient::V2
|
|
|
58
58
|
# @!visibility private
|
|
59
59
|
def self.openapi_types
|
|
60
60
|
{
|
|
61
|
+
:'enabled' => :'Boolean',
|
|
61
62
|
:'id' => :'String',
|
|
62
63
|
:'include' => :'String',
|
|
63
|
-
:'inputs' => :'Array<String>',
|
|
64
64
|
:'percentage' => :'Float',
|
|
65
65
|
:'rate' => :'Integer',
|
|
66
66
|
:'type' => :'ObservabilityPipelineSampleProcessorType'
|
|
@@ -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?(:'id')
|
|
89
93
|
self.id = attributes[:'id']
|
|
90
94
|
end
|
|
@@ -93,12 +97,6 @@ module DatadogAPIClient::V2
|
|
|
93
97
|
self.include = attributes[:'include']
|
|
94
98
|
end
|
|
95
99
|
|
|
96
|
-
if attributes.key?(:'inputs')
|
|
97
|
-
if (value = attributes[:'inputs']).is_a?(Array)
|
|
98
|
-
self.inputs = value
|
|
99
|
-
end
|
|
100
|
-
end
|
|
101
|
-
|
|
102
100
|
if attributes.key?(:'percentage')
|
|
103
101
|
self.percentage = attributes[:'percentage']
|
|
104
102
|
end
|
|
@@ -116,14 +114,24 @@ module DatadogAPIClient::V2
|
|
|
116
114
|
# @return true if the model is valid
|
|
117
115
|
# @!visibility private
|
|
118
116
|
def valid?
|
|
117
|
+
return false if @enabled.nil?
|
|
119
118
|
return false if @id.nil?
|
|
120
119
|
return false if @include.nil?
|
|
121
|
-
return false if @inputs.nil?
|
|
122
120
|
return false if !@rate.nil? && @rate < 1
|
|
123
121
|
return false if @type.nil?
|
|
124
122
|
true
|
|
125
123
|
end
|
|
126
124
|
|
|
125
|
+
# Custom attribute writer method with validation
|
|
126
|
+
# @param enabled [Object] Object to be assigned
|
|
127
|
+
# @!visibility private
|
|
128
|
+
def enabled=(enabled)
|
|
129
|
+
if enabled.nil?
|
|
130
|
+
fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
|
|
131
|
+
end
|
|
132
|
+
@enabled = enabled
|
|
133
|
+
end
|
|
134
|
+
|
|
127
135
|
# Custom attribute writer method with validation
|
|
128
136
|
# @param id [Object] Object to be assigned
|
|
129
137
|
# @!visibility private
|
|
@@ -144,16 +152,6 @@ module DatadogAPIClient::V2
|
|
|
144
152
|
@include = include
|
|
145
153
|
end
|
|
146
154
|
|
|
147
|
-
# Custom attribute writer method with validation
|
|
148
|
-
# @param inputs [Object] Object to be assigned
|
|
149
|
-
# @!visibility private
|
|
150
|
-
def inputs=(inputs)
|
|
151
|
-
if inputs.nil?
|
|
152
|
-
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
|
|
153
|
-
end
|
|
154
|
-
@inputs = inputs
|
|
155
|
-
end
|
|
156
|
-
|
|
157
155
|
# Custom attribute writer method with validation
|
|
158
156
|
# @param rate [Object] Object to be assigned
|
|
159
157
|
# @!visibility private
|
|
@@ -200,9 +198,9 @@ module DatadogAPIClient::V2
|
|
|
200
198
|
def ==(o)
|
|
201
199
|
return true if self.equal?(o)
|
|
202
200
|
self.class == o.class &&
|
|
201
|
+
enabled == o.enabled &&
|
|
203
202
|
id == o.id &&
|
|
204
203
|
include == o.include &&
|
|
205
|
-
inputs == o.inputs &&
|
|
206
204
|
percentage == o.percentage &&
|
|
207
205
|
rate == o.rate &&
|
|
208
206
|
type == o.type &&
|
|
@@ -213,7 +211,7 @@ module DatadogAPIClient::V2
|
|
|
213
211
|
# @return [Integer] Hash code
|
|
214
212
|
# @!visibility private
|
|
215
213
|
def hash
|
|
216
|
-
[id, include,
|
|
214
|
+
[enabled, id, include, percentage, rate, type, additional_properties].hash
|
|
217
215
|
end
|
|
218
216
|
end
|
|
219
217
|
end
|
data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb
CHANGED
|
@@ -21,15 +21,15 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class ObservabilityPipelineSensitiveDataScannerProcessor
|
|
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 (e.g., as input to downstream components).
|
|
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 component.
|
|
31
|
-
attr_reader :inputs
|
|
32
|
-
|
|
33
33
|
# A list of rules for identifying and acting on sensitive data patterns.
|
|
34
34
|
attr_reader :rules
|
|
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
|
:'rules' => :'rules',
|
|
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
|
:'rules' => :'Array<ObservabilityPipelineSensitiveDataScannerProcessorRule>',
|
|
61
61
|
:'type' => :'ObservabilityPipelineSensitiveDataScannerProcessorType'
|
|
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?(:'rules')
|
|
98
96
|
if (value = attributes[:'rules']).is_a?(Array)
|
|
99
97
|
self.rules = 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 @rules.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 rules [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
|
rules == o.rules &&
|
|
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, rules, type, additional_properties].hash
|
|
209
207
|
end
|
|
210
208
|
end
|
|
211
209
|
end
|
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class ObservabilityPipelineThrottleProcessor
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Whether this processor is enabled.
|
|
25
|
+
attr_reader :enabled
|
|
26
|
+
|
|
24
27
|
# Optional list of fields used to group events before the threshold has been reached.
|
|
25
28
|
attr_accessor :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
|
# the number of events allowed in a given time window. Events sent after the threshold has been reached, are dropped.
|
|
37
37
|
attr_reader :threshold
|
|
38
38
|
|
|
@@ -48,10 +48,10 @@ module DatadogAPIClient::V2
|
|
|
48
48
|
# @!visibility private
|
|
49
49
|
def self.attribute_map
|
|
50
50
|
{
|
|
51
|
+
:'enabled' => :'enabled',
|
|
51
52
|
:'group_by' => :'group_by',
|
|
52
53
|
:'id' => :'id',
|
|
53
54
|
:'include' => :'include',
|
|
54
|
-
:'inputs' => :'inputs',
|
|
55
55
|
:'threshold' => :'threshold',
|
|
56
56
|
:'type' => :'type',
|
|
57
57
|
:'window' => :'window'
|
|
@@ -62,10 +62,10 @@ module DatadogAPIClient::V2
|
|
|
62
62
|
# @!visibility private
|
|
63
63
|
def self.openapi_types
|
|
64
64
|
{
|
|
65
|
+
:'enabled' => :'Boolean',
|
|
65
66
|
:'group_by' => :'Array<String>',
|
|
66
67
|
:'id' => :'String',
|
|
67
68
|
:'include' => :'String',
|
|
68
|
-
:'inputs' => :'Array<String>',
|
|
69
69
|
:'threshold' => :'Integer',
|
|
70
70
|
:'type' => :'ObservabilityPipelineThrottleProcessorType',
|
|
71
71
|
:'window' => :'Float'
|
|
@@ -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?(:'group_by')
|
|
94
98
|
if (value = attributes[:'group_by']).is_a?(Array)
|
|
95
99
|
self.group_by = value
|
|
@@ -104,12 +108,6 @@ module DatadogAPIClient::V2
|
|
|
104
108
|
self.include = attributes[:'include']
|
|
105
109
|
end
|
|
106
110
|
|
|
107
|
-
if attributes.key?(:'inputs')
|
|
108
|
-
if (value = attributes[:'inputs']).is_a?(Array)
|
|
109
|
-
self.inputs = value
|
|
110
|
-
end
|
|
111
|
-
end
|
|
112
|
-
|
|
113
111
|
if attributes.key?(:'threshold')
|
|
114
112
|
self.threshold = attributes[:'threshold']
|
|
115
113
|
end
|
|
@@ -127,15 +125,25 @@ module DatadogAPIClient::V2
|
|
|
127
125
|
# @return true if the model is valid
|
|
128
126
|
# @!visibility private
|
|
129
127
|
def valid?
|
|
128
|
+
return false if @enabled.nil?
|
|
130
129
|
return false if @id.nil?
|
|
131
130
|
return false if @include.nil?
|
|
132
|
-
return false if @inputs.nil?
|
|
133
131
|
return false if @threshold.nil?
|
|
134
132
|
return false if @type.nil?
|
|
135
133
|
return false if @window.nil?
|
|
136
134
|
true
|
|
137
135
|
end
|
|
138
136
|
|
|
137
|
+
# Custom attribute writer method with validation
|
|
138
|
+
# @param enabled [Object] Object to be assigned
|
|
139
|
+
# @!visibility private
|
|
140
|
+
def enabled=(enabled)
|
|
141
|
+
if enabled.nil?
|
|
142
|
+
fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
|
|
143
|
+
end
|
|
144
|
+
@enabled = enabled
|
|
145
|
+
end
|
|
146
|
+
|
|
139
147
|
# Custom attribute writer method with validation
|
|
140
148
|
# @param id [Object] Object to be assigned
|
|
141
149
|
# @!visibility private
|
|
@@ -156,16 +164,6 @@ module DatadogAPIClient::V2
|
|
|
156
164
|
@include = include
|
|
157
165
|
end
|
|
158
166
|
|
|
159
|
-
# Custom attribute writer method with validation
|
|
160
|
-
# @param inputs [Object] Object to be assigned
|
|
161
|
-
# @!visibility private
|
|
162
|
-
def inputs=(inputs)
|
|
163
|
-
if inputs.nil?
|
|
164
|
-
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
|
|
165
|
-
end
|
|
166
|
-
@inputs = inputs
|
|
167
|
-
end
|
|
168
|
-
|
|
169
167
|
# Custom attribute writer method with validation
|
|
170
168
|
# @param threshold [Object] Object to be assigned
|
|
171
169
|
# @!visibility private
|
|
@@ -222,10 +220,10 @@ module DatadogAPIClient::V2
|
|
|
222
220
|
def ==(o)
|
|
223
221
|
return true if self.equal?(o)
|
|
224
222
|
self.class == o.class &&
|
|
223
|
+
enabled == o.enabled &&
|
|
225
224
|
group_by == o.group_by &&
|
|
226
225
|
id == o.id &&
|
|
227
226
|
include == o.include &&
|
|
228
|
-
inputs == o.inputs &&
|
|
229
227
|
threshold == o.threshold &&
|
|
230
228
|
type == o.type &&
|
|
231
229
|
window == o.window &&
|
|
@@ -236,7 +234,7 @@ module DatadogAPIClient::V2
|
|
|
236
234
|
# @return [Integer] Hash code
|
|
237
235
|
# @!visibility private
|
|
238
236
|
def hash
|
|
239
|
-
[group_by, id, include,
|
|
237
|
+
[enabled, group_by, id, include, threshold, type, window, additional_properties].hash
|
|
240
238
|
end
|
|
241
239
|
end
|
|
242
240
|
end
|
|
@@ -24,6 +24,9 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# The duration in days after which a learned value is forgotten.
|
|
25
25
|
attr_accessor :forget_after
|
|
26
26
|
|
|
27
|
+
# When set to true, Datadog uses previous values that fall within the defined learning window to construct the baseline, enabling the system to establish an accurate baseline more rapidly rather than relying solely on gradual learning over time.
|
|
28
|
+
attr_accessor :instantaneous_baseline
|
|
29
|
+
|
|
27
30
|
# The duration in days during which values are learned, and after which signals will be generated for values that
|
|
28
31
|
# weren't learned. If set to 0, a signal will be generated for all new values after the first value is learned.
|
|
29
32
|
attr_accessor :learning_duration
|
|
@@ -41,6 +44,7 @@ module DatadogAPIClient::V2
|
|
|
41
44
|
def self.attribute_map
|
|
42
45
|
{
|
|
43
46
|
:'forget_after' => :'forgetAfter',
|
|
47
|
+
:'instantaneous_baseline' => :'instantaneousBaseline',
|
|
44
48
|
:'learning_duration' => :'learningDuration',
|
|
45
49
|
:'learning_method' => :'learningMethod',
|
|
46
50
|
:'learning_threshold' => :'learningThreshold'
|
|
@@ -52,6 +56,7 @@ module DatadogAPIClient::V2
|
|
|
52
56
|
def self.openapi_types
|
|
53
57
|
{
|
|
54
58
|
:'forget_after' => :'SecurityMonitoringRuleNewValueOptionsForgetAfter',
|
|
59
|
+
:'instantaneous_baseline' => :'Boolean',
|
|
55
60
|
:'learning_duration' => :'SecurityMonitoringRuleNewValueOptionsLearningDuration',
|
|
56
61
|
:'learning_method' => :'SecurityMonitoringRuleNewValueOptionsLearningMethod',
|
|
57
62
|
:'learning_threshold' => :'SecurityMonitoringRuleNewValueOptionsLearningThreshold'
|
|
@@ -80,6 +85,10 @@ module DatadogAPIClient::V2
|
|
|
80
85
|
self.forget_after = attributes[:'forget_after']
|
|
81
86
|
end
|
|
82
87
|
|
|
88
|
+
if attributes.key?(:'instantaneous_baseline')
|
|
89
|
+
self.instantaneous_baseline = attributes[:'instantaneous_baseline']
|
|
90
|
+
end
|
|
91
|
+
|
|
83
92
|
if attributes.key?(:'learning_duration')
|
|
84
93
|
self.learning_duration = attributes[:'learning_duration']
|
|
85
94
|
end
|
|
@@ -120,6 +129,7 @@ module DatadogAPIClient::V2
|
|
|
120
129
|
return true if self.equal?(o)
|
|
121
130
|
self.class == o.class &&
|
|
122
131
|
forget_after == o.forget_after &&
|
|
132
|
+
instantaneous_baseline == o.instantaneous_baseline &&
|
|
123
133
|
learning_duration == o.learning_duration &&
|
|
124
134
|
learning_method == o.learning_method &&
|
|
125
135
|
learning_threshold == o.learning_threshold &&
|
|
@@ -130,7 +140,7 @@ module DatadogAPIClient::V2
|
|
|
130
140
|
# @return [Integer] Hash code
|
|
131
141
|
# @!visibility private
|
|
132
142
|
def hash
|
|
133
|
-
[forget_after, learning_duration, learning_method, learning_threshold, additional_properties].hash
|
|
143
|
+
[forget_after, instantaneous_baseline, learning_duration, learning_method, learning_threshold, additional_properties].hash
|
|
134
144
|
end
|
|
135
145
|
end
|
|
136
146
|
end
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V2
|
|
20
|
+
#
|
|
21
|
+
class ServiceList
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
#
|
|
25
|
+
attr_accessor :data
|
|
26
|
+
|
|
27
|
+
attr_accessor :additional_properties
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
# @!visibility private
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'data' => :'data'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'data' => :'ServiceListData'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Initializes the object
|
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
47
|
+
# @!visibility private
|
|
48
|
+
def initialize(attributes = {})
|
|
49
|
+
if (!attributes.is_a?(Hash))
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceList` initialize method"
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
self.additional_properties = {}
|
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
+
self.additional_properties[k.to_sym] = v
|
|
58
|
+
else
|
|
59
|
+
h[k.to_sym] = v
|
|
60
|
+
end
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if attributes.key?(:'data')
|
|
64
|
+
self.data = attributes[:'data']
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
69
|
+
# @return [Hash] Returns the object in the form of hash
|
|
70
|
+
# @!visibility private
|
|
71
|
+
def to_hash
|
|
72
|
+
hash = {}
|
|
73
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
74
|
+
value = self.send(attr)
|
|
75
|
+
if value.nil?
|
|
76
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
77
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
hash[param] = _to_hash(value)
|
|
81
|
+
end
|
|
82
|
+
self.additional_properties.each_pair do |attr, value|
|
|
83
|
+
hash[attr] = value
|
|
84
|
+
end
|
|
85
|
+
hash
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Checks equality by comparing each attribute.
|
|
89
|
+
# @param o [Object] Object to be compared
|
|
90
|
+
# @!visibility private
|
|
91
|
+
def ==(o)
|
|
92
|
+
return true if self.equal?(o)
|
|
93
|
+
self.class == o.class &&
|
|
94
|
+
data == o.data &&
|
|
95
|
+
additional_properties == o.additional_properties
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Calculates hash code according to all attributes.
|
|
99
|
+
# @return [Integer] Hash code
|
|
100
|
+
# @!visibility private
|
|
101
|
+
def hash
|
|
102
|
+
[data, additional_properties].hash
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|