@@ -24,6 +24,9 @@ class HistoricalJobQuery
24
24
# The aggregation type.
25
25
attr_accessor :aggregation
26
26
27
+ # Source of events, either logs or audit trail.
28
+ attr_accessor :data_source
29
+
27
30
# Field for which the cardinality is measured. Sent as an array.
28
31
attr_accessor :distinct_fields
29
32
@@ -49,6 +52,7 @@ class HistoricalJobQuery
49
52
def self . attribute_map
50
53
{
51
54
:'aggregation' => :'aggregation' ,
55
+ :'data_source' => :'dataSource' ,
52
56
:'distinct_fields' => :'distinctFields' ,
53
57
:'group_by_fields' => :'groupByFields' ,
54
58
:'has_optional_group_by_fields' => :'hasOptionalGroupByFields' ,
@@ -63,6 +67,7 @@ def self.attribute_map
63
67
def self . openapi_types
64
68
{
65
69
:'aggregation' => :'SecurityMonitoringRuleQueryAggregation' ,
70
+ :'data_source' => :'SecurityMonitoringStandardDataSource' ,
66
71
:'distinct_fields' => :'Array<String>' ,
67
72
:'group_by_fields' => :'Array<String>' ,
68
73
:'has_optional_group_by_fields' => :'Boolean' ,
@@ -94,6 +99,10 @@ def initialize(attributes = {})
94
99
self . aggregation = attributes [ :'aggregation' ]
95
100
end
96
101
102
+ if attributes . key? ( :'data_source' )
103
+ self . data_source = attributes [ :'data_source' ]
104
+ end
105
+
97
106
if attributes . key? ( :'distinct_fields' )
98
107
if ( value = attributes [ :'distinct_fields' ] ) . is_a? ( Array )
99
108
self . distinct_fields = value
@@ -152,6 +161,7 @@ def ==(o)
152
161
return true if self . equal? ( o )
153
162
self . class == o . class &&
154
163
aggregation == o . aggregation &&
164
+ data_source == o . data_source &&
155
165
distinct_fields == o . distinct_fields &&
156
166
group_by_fields == o . group_by_fields &&
157
167
has_optional_group_by_fields == o . has_optional_group_by_fields &&
@@ -165,7 +175,7 @@ def ==(o)
165
175
# @return [Integer] Hash code
166
176
# @!visibility private
167
177
def hash
168
- [ aggregation , distinct_fields , group_by_fields , has_optional_group_by_fields , metrics , name , query , additional_properties ] . hash
178
+ [ aggregation , data_source , distinct_fields , group_by_fields , has_optional_group_by_fields , metrics , name , query , additional_properties ] . hash
169
179
end
170
180
end
171
181
end
0 commit comments