Class: Google::Apis::AlertcenterV1beta1::ActivityRule
- Inherits:
-
Object
- Object
- Google::Apis::AlertcenterV1beta1::ActivityRule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alertcenter_v1beta1/classes.rb,
lib/google/apis/alertcenter_v1beta1/representations.rb,
lib/google/apis/alertcenter_v1beta1/representations.rb
Overview
Alerts from Google Workspace Security Center rules service configured by an admin.
Instance Attribute Summary collapse
-
#action_names ⇒ Array<String>
List of action names associated with the rule threshold.
-
#create_time ⇒ String
Rule create timestamp.
-
#description ⇒ String
Description of the rule.
-
#display_name ⇒ String
Alert display name.
-
#name ⇒ String
Rule name.
-
#query ⇒ String
Query that is used to get the data from the associated source.
-
#superseded_alerts ⇒ Array<String>
List of alert IDs superseded by this alert.
-
#superseding_alert ⇒ String
Alert ID superseding this alert.
-
#threshold ⇒ String
Alert threshold is for example “COUNT > 5”.
-
#trigger_source ⇒ String
The trigger sources for this rule.
-
#update_time ⇒ String
The timestamp of the last update to the rule.
-
#window_size ⇒ String
Rule window size.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActivityRule
constructor
A new instance of ActivityRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ActivityRule
Returns a new instance of ActivityRule.
192 193 194 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 192 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action_names ⇒ Array<String>
List of action names associated with the rule threshold.
Corresponds to the JSON property actionNames
130 131 132 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 130 def action_names @action_names end |
#create_time ⇒ String
Rule create timestamp.
Corresponds to the JSON property createTime
135 136 137 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 135 def create_time @create_time end |
#description ⇒ String
Description of the rule.
Corresponds to the JSON property description
140 141 142 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 140 def description @description end |
#display_name ⇒ String
Alert display name.
Corresponds to the JSON property displayName
145 146 147 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 145 def display_name @display_name end |
#name ⇒ String
Rule name.
Corresponds to the JSON property name
150 151 152 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 150 def name @name end |
#query ⇒ String
Query that is used to get the data from the associated source.
Corresponds to the JSON property query
155 156 157 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 155 def query @query end |
#superseded_alerts ⇒ Array<String>
List of alert IDs superseded by this alert. It is used to indicate that this
alert is essentially extension of superseded alerts and we found the
relationship after creating these alerts.
Corresponds to the JSON property supersededAlerts
162 163 164 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 162 def superseded_alerts @superseded_alerts end |
#superseding_alert ⇒ String
Alert ID superseding this alert. It is used to indicate that superseding alert
is essentially extension of this alert and we found the relationship after
creating both alerts.
Corresponds to the JSON property supersedingAlert
169 170 171 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 169 def superseding_alert @superseding_alert end |
#threshold ⇒ String
Alert threshold is for example “COUNT > 5”.
Corresponds to the JSON property threshold
174 175 176 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 174 def threshold @threshold end |
#trigger_source ⇒ String
The trigger sources for this rule. * GMAIL_EVENTS * DEVICE_EVENTS *
USER_EVENTS
Corresponds to the JSON property triggerSource
180 181 182 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 180 def trigger_source @trigger_source end |
#update_time ⇒ String
The timestamp of the last update to the rule.
Corresponds to the JSON property updateTime
185 186 187 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 185 def update_time @update_time end |
#window_size ⇒ String
Rule window size. Possible values are 1 hour or 24 hours.
Corresponds to the JSON property windowSize
190 191 192 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 190 def window_size @window_size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
197 198 199 200 201 202 203 204 205 206 207 208 209 210 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 197 def update!(**args) @action_names = args[:action_names] if args.key?(:action_names) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @query = args[:query] if args.key?(:query) @superseded_alerts = args[:superseded_alerts] if args.key?(:superseded_alerts) @superseding_alert = args[:superseding_alert] if args.key?(:superseding_alert) @threshold = args[:threshold] if args.key?(:threshold) @trigger_source = args[:trigger_source] if args.key?(:trigger_source) @update_time = args[:update_time] if args.key?(:update_time) @window_size = args[:window_size] if args.key?(:window_size) end |