datadog_api_client 2.34.0 → 2.36.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.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +59 -6
  4. data/.generator/schemas/v2/openapi.yaml +1093 -69
  5. data/.generator/src/generator/formatter.py +2 -2
  6. data/.generator/src/generator/openapi.py +1 -1
  7. data/.github/workflows/release.yml +1 -1
  8. data/CHANGELOG.md +36 -0
  9. data/Gemfile +1 -0
  10. data/examples/v1/monitors/CreateMonitor_1539578087.rb +1 -0
  11. data/examples/v1/monitors/CreateMonitor_440013737.rb +1 -0
  12. data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +142 -0
  13. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +35 -0
  14. data/examples/v2/dora-metrics/CreateDORADeployment.rb +0 -3
  15. data/examples/v2/dora-metrics/CreateDORAFailure.rb +30 -0
  16. data/examples/v2/dora-metrics/CreateDORAIncident.rb +11 -9
  17. data/examples/v2/dora-metrics/CreateDORAIncident_1768887482.rb +25 -0
  18. data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1735989579.rb +30 -0
  19. data/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle_1716851881.rb +1 -1
  20. data/examples/v2/on-call/GetTeamOnCallUsers.rb +11 -0
  21. data/examples/v2/security-monitoring/ListFindings_2932019633.rb +11 -0
  22. data/examples/v2/software-catalog/DeleteCatalogKind.rb +5 -0
  23. data/examples/v2/software-catalog/ListCatalogKind.rb +5 -0
  24. data/examples/v2/software-catalog/ListCatalogKind_3806205775.rb +5 -0
  25. data/examples/v2/software-catalog/UpsertCatalogKind.rb +9 -0
  26. data/examples/v2/teams/AddMemberTeam.rb +15 -0
  27. data/examples/v2/teams/ListMemberTeams.rb +8 -0
  28. data/examples/v2/teams/ListMemberTeams_1662850354.rb +8 -0
  29. data/examples/v2/teams/RemoveMemberTeam.rb +8 -0
  30. data/lib/datadog_api_client/configuration.rb +3 -2
  31. data/lib/datadog_api_client/inflector.rb +42 -6
  32. data/lib/datadog_api_client/v1/api/snapshots_api.rb +2 -1
  33. data/lib/datadog_api_client/v1/models/monitor.rb +17 -1
  34. data/lib/datadog_api_client/v1/models/monitor_draft_status.rb +32 -0
  35. data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
  36. data/lib/datadog_api_client/v1/models/monitor_update_request.rb +17 -1
  37. data/lib/datadog_api_client/v1/models/synthetics_api_test_step_subtype.rb +6 -0
  38. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb +2 -31
  39. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +32 -2
  40. data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +79 -15
  41. data/lib/datadog_api_client/v2/api/on_call_api.rb +67 -0
  42. data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +5 -3
  43. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +13 -0
  44. data/lib/datadog_api_client/v2/api/software_catalog_api.rb +221 -0
  45. data/lib/datadog_api_client/v2/api/teams_api.rb +254 -0
  46. data/lib/datadog_api_client/v2/models/action_query_spec_inputs.rb +1 -1
  47. data/lib/datadog_api_client/v2/models/{dora_incident_response.rb → add_member_team_request.rb} +5 -5
  48. data/lib/datadog_api_client/v2/models/change_event_custom_attributes_author_type.rb +2 -0
  49. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb +21 -1
  50. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +33 -3
  51. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_metadata.rb +125 -0
  52. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb +165 -0
  53. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +37 -1
  54. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +57 -1
  55. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb +57 -1
  56. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination.rb +2 -1
  57. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_microsoft_sentinel.rb +228 -0
  58. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_microsoft_sentinel_type.rb +26 -0
  59. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination.rb +2 -1
  60. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_microsoft_sentinel.rb +228 -0
  61. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_microsoft_sentinel_type.rb +26 -0
  62. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +21 -1
  63. data/lib/datadog_api_client/v2/models/{dora_incident_request.rb → dora_failure_request.rb} +4 -4
  64. data/lib/datadog_api_client/v2/models/{dora_incident_request_attributes.rb → dora_failure_request_attributes.rb} +31 -11
  65. data/lib/datadog_api_client/v2/models/{dora_incident_request_data.rb → dora_failure_request_data.rb} +4 -4
  66. data/lib/datadog_api_client/v2/models/dora_failure_response.rb +123 -0
  67. data/lib/datadog_api_client/v2/models/{dora_incident_response_data.rb → dora_failure_response_data.rb} +6 -6
  68. data/lib/datadog_api_client/v2/models/{dora_incident_type.rb → dora_failure_type.rb} +3 -3
  69. data/lib/datadog_api_client/v2/models/escalation.rb +143 -0
  70. data/lib/datadog_api_client/v2/models/escalation_relationships.rb +105 -0
  71. data/lib/datadog_api_client/v2/models/escalation_relationships_responders.rb +107 -0
  72. data/lib/datadog_api_client/v2/models/escalation_relationships_responders_data_items.rb +144 -0
  73. data/lib/datadog_api_client/v2/models/escalation_relationships_responders_data_items_type.rb +26 -0
  74. data/lib/datadog_api_client/v2/models/escalation_type.rb +26 -0
  75. data/lib/datadog_api_client/v2/models/finding_attributes.rb +31 -1
  76. data/lib/datadog_api_client/v2/models/kind_attributes.rb +143 -0
  77. data/lib/datadog_api_client/v2/models/kind_data.rb +153 -0
  78. data/lib/datadog_api_client/v2/models/kind_metadata.rb +115 -0
  79. data/lib/datadog_api_client/v2/models/kind_obj.rb +143 -0
  80. data/lib/datadog_api_client/v2/models/kind_response_meta.rb +105 -0
  81. data/lib/datadog_api_client/v2/models/list_kind_catalog_response.rb +117 -0
  82. data/lib/datadog_api_client/v2/models/member_team.rb +144 -0
  83. data/lib/datadog_api_client/v2/models/member_team_type.rb +26 -0
  84. data/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb +11 -1
  85. data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb +1 -0
  86. data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb +1 -0
  87. data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +21 -1
  88. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb +21 -1
  89. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +21 -1
  90. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +21 -1
  91. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +11 -1
  92. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +21 -1
  93. data/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb +11 -1
  94. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb +15 -3
  95. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_samplings.rb +137 -0
  96. data/lib/datadog_api_client/v2/models/team_on_call_responders.rb +117 -0
  97. data/lib/datadog_api_client/v2/models/team_on_call_responders_data.rb +143 -0
  98. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships.rb +115 -0
  99. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations.rb +107 -0
  100. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations_data_items.rb +144 -0
  101. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations_data_items_type.rb +26 -0
  102. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders.rb +107 -0
  103. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders_data_items.rb +144 -0
  104. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders_data_items_type.rb +26 -0
  105. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_type.rb +26 -0
  106. data/lib/datadog_api_client/v2/models/team_on_call_responders_included.rb +63 -0
  107. data/lib/datadog_api_client/v2/models/upsert_catalog_kind_request.rb +63 -0
  108. data/lib/datadog_api_client/v2/models/upsert_catalog_kind_response.rb +117 -0
  109. data/lib/datadog_api_client/version.rb +1 -1
  110. data/repository.datadog.yaml +8 -0
  111. metadata +57 -7
@@ -0,0 +1,117 @@
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
+ # List kind response.
21
+ class ListKindCatalogResponse
22
+ include BaseGenericModel
23
+
24
+ # List of kind responses.
25
+ attr_accessor :data
26
+
27
+ # Kind response metadata.
28
+ attr_accessor :meta
29
+
30
+ attr_accessor :additional_properties
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ # @!visibility private
34
+ def self.attribute_map
35
+ {
36
+ :'data' => :'data',
37
+ :'meta' => :'meta'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ # @!visibility private
43
+ def self.openapi_types
44
+ {
45
+ :'data' => :'Array<KindData>',
46
+ :'meta' => :'KindResponseMeta'
47
+ }
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param attributes [Hash] Model attributes in the form of hash
52
+ # @!visibility private
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListKindCatalogResponse` initialize method"
56
+ end
57
+
58
+ self.additional_properties = {}
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!self.class.attribute_map.key?(k.to_sym))
62
+ self.additional_properties[k.to_sym] = v
63
+ else
64
+ h[k.to_sym] = v
65
+ end
66
+ }
67
+
68
+ if attributes.key?(:'data')
69
+ if (value = attributes[:'data']).is_a?(Array)
70
+ self.data = value
71
+ end
72
+ end
73
+
74
+ if attributes.key?(:'meta')
75
+ self.meta = attributes[:'meta']
76
+ end
77
+ end
78
+
79
+ # Returns the object in the form of hash, with additionalProperties support.
80
+ # @return [Hash] Returns the object in the form of hash
81
+ # @!visibility private
82
+ def to_hash
83
+ hash = {}
84
+ self.class.attribute_map.each_pair do |attr, param|
85
+ value = self.send(attr)
86
+ if value.nil?
87
+ is_nullable = self.class.openapi_nullable.include?(attr)
88
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
89
+ end
90
+
91
+ hash[param] = _to_hash(value)
92
+ end
93
+ self.additional_properties.each_pair do |attr, value|
94
+ hash[attr] = value
95
+ end
96
+ hash
97
+ end
98
+
99
+ # Checks equality by comparing each attribute.
100
+ # @param o [Object] Object to be compared
101
+ # @!visibility private
102
+ def ==(o)
103
+ return true if self.equal?(o)
104
+ self.class == o.class &&
105
+ data == o.data &&
106
+ meta == o.meta &&
107
+ additional_properties == o.additional_properties
108
+ end
109
+
110
+ # Calculates hash code according to all attributes.
111
+ # @return [Integer] Hash code
112
+ # @!visibility private
113
+ def hash
114
+ [data, meta, additional_properties].hash
115
+ end
116
+ end
117
+ end
@@ -0,0 +1,144 @@
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
+ # A member team
21
+ class MemberTeam
22
+ include BaseGenericModel
23
+
24
+ # The member team's identifier
25
+ attr_reader :id
26
+
27
+ # Member team type
28
+ attr_reader :type
29
+
30
+ attr_accessor :additional_properties
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ # @!visibility private
34
+ def self.attribute_map
35
+ {
36
+ :'id' => :'id',
37
+ :'type' => :'type'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ # @!visibility private
43
+ def self.openapi_types
44
+ {
45
+ :'id' => :'String',
46
+ :'type' => :'MemberTeamType'
47
+ }
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param attributes [Hash] Model attributes in the form of hash
52
+ # @!visibility private
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MemberTeam` initialize method"
56
+ end
57
+
58
+ self.additional_properties = {}
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!self.class.attribute_map.key?(k.to_sym))
62
+ self.additional_properties[k.to_sym] = v
63
+ else
64
+ h[k.to_sym] = v
65
+ end
66
+ }
67
+
68
+ if attributes.key?(:'id')
69
+ self.id = attributes[:'id']
70
+ end
71
+
72
+ if attributes.key?(:'type')
73
+ self.type = attributes[:'type']
74
+ end
75
+ end
76
+
77
+ # Check to see if the all the properties in the model are valid
78
+ # @return true if the model is valid
79
+ # @!visibility private
80
+ def valid?
81
+ return false if @id.nil?
82
+ return false if @type.nil?
83
+ true
84
+ end
85
+
86
+ # Custom attribute writer method with validation
87
+ # @param id [Object] Object to be assigned
88
+ # @!visibility private
89
+ def id=(id)
90
+ if id.nil?
91
+ fail ArgumentError, 'invalid value for "id", id cannot be nil.'
92
+ end
93
+ @id = id
94
+ end
95
+
96
+ # Custom attribute writer method with validation
97
+ # @param type [Object] Object to be assigned
98
+ # @!visibility private
99
+ def type=(type)
100
+ if type.nil?
101
+ fail ArgumentError, 'invalid value for "type", type cannot be nil.'
102
+ end
103
+ @type = type
104
+ end
105
+
106
+ # Returns the object in the form of hash, with additionalProperties support.
107
+ # @return [Hash] Returns the object in the form of hash
108
+ # @!visibility private
109
+ def to_hash
110
+ hash = {}
111
+ self.class.attribute_map.each_pair do |attr, param|
112
+ value = self.send(attr)
113
+ if value.nil?
114
+ is_nullable = self.class.openapi_nullable.include?(attr)
115
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
116
+ end
117
+
118
+ hash[param] = _to_hash(value)
119
+ end
120
+ self.additional_properties.each_pair do |attr, value|
121
+ hash[attr] = value
122
+ end
123
+ hash
124
+ end
125
+
126
+ # Checks equality by comparing each attribute.
127
+ # @param o [Object] Object to be compared
128
+ # @!visibility private
129
+ def ==(o)
130
+ return true if self.equal?(o)
131
+ self.class == o.class &&
132
+ id == o.id &&
133
+ type == o.type &&
134
+ additional_properties == o.additional_properties
135
+ end
136
+
137
+ # Calculates hash code according to all attributes.
138
+ # @return [Integer] Hash code
139
+ # @!visibility private
140
+ def hash
141
+ [id, type, additional_properties].hash
142
+ end
143
+ end
144
+ end
@@ -0,0 +1,26 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # Member team type
21
+ class MemberTeamType
22
+ include BaseEnumModel
23
+
24
+ MEMBER_TEAMS = "member_teams".freeze
25
+ end
26
+ end
@@ -28,6 +28,9 @@ module DatadogAPIClient::V2
28
28
  # based on the event counts in the previously defined queries.
29
29
  attr_accessor :condition
30
30
 
31
+ # Severity of the Security Signal.
32
+ attr_accessor :custom_status
33
+
31
34
  # Name of the case.
32
35
  attr_accessor :name
33
36
 
@@ -45,6 +48,7 @@ module DatadogAPIClient::V2
45
48
  {
46
49
  :'actions' => :'actions',
47
50
  :'condition' => :'condition',
51
+ :'custom_status' => :'customStatus',
48
52
  :'name' => :'name',
49
53
  :'notifications' => :'notifications',
50
54
  :'status' => :'status'
@@ -57,6 +61,7 @@ module DatadogAPIClient::V2
57
61
  {
58
62
  :'actions' => :'Array<SecurityMonitoringRuleCaseAction>',
59
63
  :'condition' => :'String',
64
+ :'custom_status' => :'SecurityMonitoringRuleSeverity',
60
65
  :'name' => :'String',
61
66
  :'notifications' => :'Array<String>',
62
67
  :'status' => :'SecurityMonitoringRuleSeverity'
@@ -91,6 +96,10 @@ module DatadogAPIClient::V2
91
96
  self.condition = attributes[:'condition']
92
97
  end
93
98
 
99
+ if attributes.key?(:'custom_status')
100
+ self.custom_status = attributes[:'custom_status']
101
+ end
102
+
94
103
  if attributes.key?(:'name')
95
104
  self.name = attributes[:'name']
96
105
  end
@@ -134,6 +143,7 @@ module DatadogAPIClient::V2
134
143
  self.class == o.class &&
135
144
  actions == o.actions &&
136
145
  condition == o.condition &&
146
+ custom_status == o.custom_status &&
137
147
  name == o.name &&
138
148
  notifications == o.notifications &&
139
149
  status == o.status &&
@@ -144,7 +154,7 @@ module DatadogAPIClient::V2
144
154
  # @return [Integer] Hash code
145
155
  # @!visibility private
146
156
  def hash
147
- [actions, condition, name, notifications, status, additional_properties].hash
157
+ [actions, condition, custom_status, name, notifications, status, additional_properties].hash
148
158
  end
149
159
  end
150
160
  end
@@ -21,6 +21,7 @@ module DatadogAPIClient::V2
21
21
  class SecurityMonitoringRuleTypeCreate
22
22
  include BaseEnumModel
23
23
 
24
+ API_SECURITY = "api_security".freeze
24
25
  APPLICATION_SECURITY = "application_security".freeze
25
26
  LOG_DETECTION = "log_detection".freeze
26
27
  WORKLOAD_SECURITY = "workload_security".freeze
@@ -26,5 +26,6 @@ module DatadogAPIClient::V2
26
26
  WORKLOAD_SECURITY = "workload_security".freeze
27
27
  CLOUD_CONFIGURATION = "cloud_configuration".freeze
28
28
  APPLICATION_SECURITY = "application_security".freeze
29
+ API_SECURITY = "api_security".freeze
29
30
  end
30
31
  end
@@ -27,6 +27,12 @@ module DatadogAPIClient::V2
27
27
  # How to generate compliance signals. Useful for cloud_configuration rules only.
28
28
  attr_accessor :compliance_signal_options
29
29
 
30
+ # Custom/Overridden Message for generated signals (used in case of Default rule update).
31
+ attr_accessor :custom_message
32
+
33
+ # Custom/Overridden name (used in case of Default rule update).
34
+ attr_accessor :custom_name
35
+
30
36
  # Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules.
31
37
  attr_accessor :filters
32
38
 
@@ -71,6 +77,8 @@ module DatadogAPIClient::V2
71
77
  {
72
78
  :'cases' => :'cases',
73
79
  :'compliance_signal_options' => :'complianceSignalOptions',
80
+ :'custom_message' => :'customMessage',
81
+ :'custom_name' => :'customName',
74
82
  :'filters' => :'filters',
75
83
  :'group_signals_by' => :'groupSignalsBy',
76
84
  :'has_extended_title' => :'hasExtendedTitle',
@@ -92,6 +100,8 @@ module DatadogAPIClient::V2
92
100
  {
93
101
  :'cases' => :'Array<SecurityMonitoringRuleCase>',
94
102
  :'compliance_signal_options' => :'CloudConfigurationRuleComplianceSignalOptions',
103
+ :'custom_message' => :'String',
104
+ :'custom_name' => :'String',
95
105
  :'filters' => :'Array<SecurityMonitoringFilter>',
96
106
  :'group_signals_by' => :'Array<String>',
97
107
  :'has_extended_title' => :'Boolean',
@@ -135,6 +145,14 @@ module DatadogAPIClient::V2
135
145
  self.compliance_signal_options = attributes[:'compliance_signal_options']
136
146
  end
137
147
 
148
+ if attributes.key?(:'custom_message')
149
+ self.custom_message = attributes[:'custom_message']
150
+ end
151
+
152
+ if attributes.key?(:'custom_name')
153
+ self.custom_name = attributes[:'custom_name']
154
+ end
155
+
138
156
  if attributes.key?(:'filters')
139
157
  if (value = attributes[:'filters']).is_a?(Array)
140
158
  self.filters = value
@@ -242,6 +260,8 @@ module DatadogAPIClient::V2
242
260
  self.class == o.class &&
243
261
  cases == o.cases &&
244
262
  compliance_signal_options == o.compliance_signal_options &&
263
+ custom_message == o.custom_message &&
264
+ custom_name == o.custom_name &&
245
265
  filters == o.filters &&
246
266
  group_signals_by == o.group_signals_by &&
247
267
  has_extended_title == o.has_extended_title &&
@@ -261,7 +281,7 @@ module DatadogAPIClient::V2
261
281
  # @return [Integer] Hash code
262
282
  # @!visibility private
263
283
  def hash
264
- [cases, compliance_signal_options, filters, group_signals_by, has_extended_title, is_enabled, message, name, options, queries, reference_tables, tags, third_party_cases, version, additional_properties].hash
284
+ [cases, compliance_signal_options, custom_message, custom_name, filters, group_signals_by, has_extended_title, is_enabled, message, name, options, queries, reference_tables, tags, third_party_cases, version, additional_properties].hash
265
285
  end
266
286
  end
267
287
  end
@@ -24,6 +24,12 @@ module DatadogAPIClient::V2
24
24
  # Cases for generating signals.
25
25
  attr_reader :cases
26
26
 
27
+ # Custom/Overridden message for generated signals (used in case of Default rule update).
28
+ attr_accessor :custom_message
29
+
30
+ # Custom/Overridden name of the rule (used in case of Default rule update).
31
+ attr_accessor :custom_name
32
+
27
33
  # Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules.
28
34
  attr_accessor :filters
29
35
 
@@ -58,6 +64,8 @@ module DatadogAPIClient::V2
58
64
  def self.attribute_map
59
65
  {
60
66
  :'cases' => :'cases',
67
+ :'custom_message' => :'customMessage',
68
+ :'custom_name' => :'customName',
61
69
  :'filters' => :'filters',
62
70
  :'has_extended_title' => :'hasExtendedTitle',
63
71
  :'is_enabled' => :'isEnabled',
@@ -75,6 +83,8 @@ module DatadogAPIClient::V2
75
83
  def self.openapi_types
76
84
  {
77
85
  :'cases' => :'Array<SecurityMonitoringRuleCaseCreate>',
86
+ :'custom_message' => :'String',
87
+ :'custom_name' => :'String',
78
88
  :'filters' => :'Array<SecurityMonitoringFilter>',
79
89
  :'has_extended_title' => :'Boolean',
80
90
  :'is_enabled' => :'Boolean',
@@ -111,6 +121,14 @@ module DatadogAPIClient::V2
111
121
  end
112
122
  end
113
123
 
124
+ if attributes.key?(:'custom_message')
125
+ self.custom_message = attributes[:'custom_message']
126
+ end
127
+
128
+ if attributes.key?(:'custom_name')
129
+ self.custom_name = attributes[:'custom_name']
130
+ end
131
+
114
132
  if attributes.key?(:'filters')
115
133
  if (value = attributes[:'filters']).is_a?(Array)
116
134
  self.filters = value
@@ -254,6 +272,8 @@ module DatadogAPIClient::V2
254
272
  return true if self.equal?(o)
255
273
  self.class == o.class &&
256
274
  cases == o.cases &&
275
+ custom_message == o.custom_message &&
276
+ custom_name == o.custom_name &&
257
277
  filters == o.filters &&
258
278
  has_extended_title == o.has_extended_title &&
259
279
  is_enabled == o.is_enabled &&
@@ -270,7 +290,7 @@ module DatadogAPIClient::V2
270
290
  # @return [Integer] Hash code
271
291
  # @!visibility private
272
292
  def hash
273
- [cases, filters, has_extended_title, is_enabled, message, name, options, queries, tags, type, additional_properties].hash
293
+ [cases, custom_message, custom_name, filters, has_extended_title, is_enabled, message, name, options, queries, tags, type, additional_properties].hash
274
294
  end
275
295
  end
276
296
  end
@@ -30,6 +30,12 @@ module DatadogAPIClient::V2
30
30
  # User ID of the user who created the rule.
31
31
  attr_accessor :creation_author_id
32
32
 
33
+ # Custom/Overridden message for generated signals (used in case of Default rule update).
34
+ attr_accessor :custom_message
35
+
36
+ # Custom/Overridden name of the rule (used in case of Default rule update).
37
+ attr_accessor :custom_name
38
+
33
39
  # When the rule will be deprecated, timestamp in milliseconds.
34
40
  attr_accessor :deprecation_date
35
41
 
@@ -84,6 +90,8 @@ module DatadogAPIClient::V2
84
90
  :'cases' => :'cases',
85
91
  :'created_at' => :'createdAt',
86
92
  :'creation_author_id' => :'creationAuthorId',
93
+ :'custom_message' => :'customMessage',
94
+ :'custom_name' => :'customName',
87
95
  :'deprecation_date' => :'deprecationDate',
88
96
  :'filters' => :'filters',
89
97
  :'has_extended_title' => :'hasExtendedTitle',
@@ -109,6 +117,8 @@ module DatadogAPIClient::V2
109
117
  :'cases' => :'Array<SecurityMonitoringRuleCase>',
110
118
  :'created_at' => :'Integer',
111
119
  :'creation_author_id' => :'Integer',
120
+ :'custom_message' => :'String',
121
+ :'custom_name' => :'String',
112
122
  :'deprecation_date' => :'Integer',
113
123
  :'filters' => :'Array<SecurityMonitoringFilter>',
114
124
  :'has_extended_title' => :'Boolean',
@@ -159,6 +169,14 @@ module DatadogAPIClient::V2
159
169
  self.creation_author_id = attributes[:'creation_author_id']
160
170
  end
161
171
 
172
+ if attributes.key?(:'custom_message')
173
+ self.custom_message = attributes[:'custom_message']
174
+ end
175
+
176
+ if attributes.key?(:'custom_name')
177
+ self.custom_name = attributes[:'custom_name']
178
+ end
179
+
162
180
  if attributes.key?(:'deprecation_date')
163
181
  self.deprecation_date = attributes[:'deprecation_date']
164
182
  end
@@ -255,6 +273,8 @@ module DatadogAPIClient::V2
255
273
  cases == o.cases &&
256
274
  created_at == o.created_at &&
257
275
  creation_author_id == o.creation_author_id &&
276
+ custom_message == o.custom_message &&
277
+ custom_name == o.custom_name &&
258
278
  deprecation_date == o.deprecation_date &&
259
279
  filters == o.filters &&
260
280
  has_extended_title == o.has_extended_title &&
@@ -277,7 +297,7 @@ module DatadogAPIClient::V2
277
297
  # @return [Integer] Hash code
278
298
  # @!visibility private
279
299
  def hash
280
- [cases, created_at, creation_author_id, deprecation_date, filters, has_extended_title, id, is_default, is_deleted, is_enabled, message, name, options, queries, tags, type, update_author_id, version, additional_properties].hash
300
+ [cases, created_at, creation_author_id, custom_message, custom_name, deprecation_date, filters, has_extended_title, id, is_default, is_deleted, is_enabled, message, name, options, queries, tags, type, update_author_id, version, additional_properties].hash
281
301
  end
282
302
  end
283
303
  end
@@ -24,6 +24,12 @@ module DatadogAPIClient::V2
24
24
  # Cases for generating signals.
25
25
  attr_reader :cases
26
26
 
27
+ # Custom/Overridden message for generated signals (used in case of Default rule update).
28
+ attr_accessor :custom_message
29
+
30
+ # Custom/Overridden name of the rule (used in case of Default rule update).
31
+ attr_accessor :custom_name
32
+
27
33
  # Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules.
28
34
  attr_accessor :filters
29
35
 
@@ -67,6 +73,8 @@ module DatadogAPIClient::V2
67
73
  def self.attribute_map
68
74
  {
69
75
  :'cases' => :'cases',
76
+ :'custom_message' => :'customMessage',
77
+ :'custom_name' => :'customName',
70
78
  :'filters' => :'filters',
71
79
  :'group_signals_by' => :'groupSignalsBy',
72
80
  :'has_extended_title' => :'hasExtendedTitle',
@@ -87,6 +95,8 @@ module DatadogAPIClient::V2
87
95
  def self.openapi_types
88
96
  {
89
97
  :'cases' => :'Array<SecurityMonitoringRuleCaseCreate>',
98
+ :'custom_message' => :'String',
99
+ :'custom_name' => :'String',
90
100
  :'filters' => :'Array<SecurityMonitoringFilter>',
91
101
  :'group_signals_by' => :'Array<String>',
92
102
  :'has_extended_title' => :'Boolean',
@@ -126,6 +136,14 @@ module DatadogAPIClient::V2
126
136
  end
127
137
  end
128
138
 
139
+ if attributes.key?(:'custom_message')
140
+ self.custom_message = attributes[:'custom_message']
141
+ end
142
+
143
+ if attributes.key?(:'custom_name')
144
+ self.custom_name = attributes[:'custom_name']
145
+ end
146
+
129
147
  if attributes.key?(:'filters')
130
148
  if (value = attributes[:'filters']).is_a?(Array)
131
149
  self.filters = value
@@ -287,6 +305,8 @@ module DatadogAPIClient::V2
287
305
  return true if self.equal?(o)
288
306
  self.class == o.class &&
289
307
  cases == o.cases &&
308
+ custom_message == o.custom_message &&
309
+ custom_name == o.custom_name &&
290
310
  filters == o.filters &&
291
311
  group_signals_by == o.group_signals_by &&
292
312
  has_extended_title == o.has_extended_title &&
@@ -306,7 +326,7 @@ module DatadogAPIClient::V2
306
326
  # @return [Integer] Hash code
307
327
  # @!visibility private
308
328
  def hash
309
- [cases, filters, group_signals_by, has_extended_title, is_enabled, message, name, options, queries, reference_tables, tags, third_party_cases, type, additional_properties].hash
329
+ [cases, custom_message, custom_name, filters, group_signals_by, has_extended_title, is_enabled, message, name, options, queries, reference_tables, tags, third_party_cases, type, additional_properties].hash
310
330
  end
311
331
  end
312
332
  end
@@ -24,6 +24,9 @@ module DatadogAPIClient::V2
24
24
  # The aggregation type.
25
25
  attr_accessor :aggregation
26
26
 
27
+ # Query extension to append to the logs query.
28
+ attr_accessor :custom_query_extension
29
+
27
30
  # Source of events, either logs, audit trail, or Datadog events.
28
31
  attr_accessor :data_source
29
32
 
@@ -56,6 +59,7 @@ module DatadogAPIClient::V2
56
59
  def self.attribute_map
57
60
  {
58
61
  :'aggregation' => :'aggregation',
62
+ :'custom_query_extension' => :'customQueryExtension',
59
63
  :'data_source' => :'dataSource',
60
64
  :'distinct_fields' => :'distinctFields',
61
65
  :'group_by_fields' => :'groupByFields',
@@ -72,6 +76,7 @@ module DatadogAPIClient::V2
72
76
  def self.openapi_types
73
77
  {
74
78
  :'aggregation' => :'SecurityMonitoringRuleQueryAggregation',
79
+ :'custom_query_extension' => :'String',
75
80
  :'data_source' => :'SecurityMonitoringStandardDataSource',
76
81
  :'distinct_fields' => :'Array<String>',
77
82
  :'group_by_fields' => :'Array<String>',
@@ -105,6 +110,10 @@ module DatadogAPIClient::V2
105
110
  self.aggregation = attributes[:'aggregation']
106
111
  end
107
112
 
113
+ if attributes.key?(:'custom_query_extension')
114
+ self.custom_query_extension = attributes[:'custom_query_extension']
115
+ end
116
+
108
117
  if attributes.key?(:'data_source')
109
118
  self.data_source = attributes[:'data_source']
110
119
  end
@@ -171,6 +180,7 @@ module DatadogAPIClient::V2
171
180
  return true if self.equal?(o)
172
181
  self.class == o.class &&
173
182
  aggregation == o.aggregation &&
183
+ custom_query_extension == o.custom_query_extension &&
174
184
  data_source == o.data_source &&
175
185
  distinct_fields == o.distinct_fields &&
176
186
  group_by_fields == o.group_by_fields &&
@@ -186,7 +196,7 @@ module DatadogAPIClient::V2
186
196
  # @return [Integer] Hash code
187
197
  # @!visibility private
188
198
  def hash
189
- [aggregation, data_source, distinct_fields, group_by_fields, has_optional_group_by_fields, metric, metrics, name, query, additional_properties].hash
199
+ [aggregation, custom_query_extension, data_source, distinct_fields, group_by_fields, has_optional_group_by_fields, metric, metrics, name, query, additional_properties].hash
190
200
  end
191
201
  end
192
202
  end