@@ -24,6 +24,9 @@ class HistoricalJobQuery
2424 # The aggregation type.
2525 attr_accessor :aggregation
2626
27+ # Source of events, either logs or audit trail.
28+ attr_accessor :data_source
29+
2730 # Field for which the cardinality is measured. Sent as an array.
2831 attr_accessor :distinct_fields
2932
@@ -49,6 +52,7 @@ class HistoricalJobQuery
4952 def self . attribute_map
5053 {
5154 :'aggregation' => :'aggregation' ,
55+ :'data_source' => :'dataSource' ,
5256 :'distinct_fields' => :'distinctFields' ,
5357 :'group_by_fields' => :'groupByFields' ,
5458 :'has_optional_group_by_fields' => :'hasOptionalGroupByFields' ,
@@ -63,6 +67,7 @@ def self.attribute_map
6367 def self . openapi_types
6468 {
6569 :'aggregation' => :'SecurityMonitoringRuleQueryAggregation' ,
70+ :'data_source' => :'SecurityMonitoringStandardDataSource' ,
6671 :'distinct_fields' => :'Array<String>' ,
6772 :'group_by_fields' => :'Array<String>' ,
6873 :'has_optional_group_by_fields' => :'Boolean' ,
@@ -94,6 +99,10 @@ def initialize(attributes = {})
9499 self . aggregation = attributes [ :'aggregation' ]
95100 end
96101
102+ if attributes . key? ( :'data_source' )
103+ self . data_source = attributes [ :'data_source' ]
104+ end
105+
97106 if attributes . key? ( :'distinct_fields' )
98107 if ( value = attributes [ :'distinct_fields' ] ) . is_a? ( Array )
99108 self . distinct_fields = value
@@ -152,6 +161,7 @@ def ==(o)
152161 return true if self . equal? ( o )
153162 self . class == o . class &&
154163 aggregation == o . aggregation &&
164+ data_source == o . data_source &&
155165 distinct_fields == o . distinct_fields &&
156166 group_by_fields == o . group_by_fields &&
157167 has_optional_group_by_fields == o . has_optional_group_by_fields &&
@@ -165,7 +175,7 @@ def ==(o)
165175 # @return [Integer] Hash code
166176 # @!visibility private
167177 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
169179 end
170180 end
171181end
0 commit comments