Class: Google::Apis::AlertcenterV1beta1::ActivityRule

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/alertcenter_v1beta1/classes.rb,
generated/google/apis/alertcenter_v1beta1/representations.rb,
generated/google/apis/alertcenter_v1beta1/representations.rb

Overview

Alerts from G Suite Security Center rules service configured by admin.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ActivityRule

Returns a new instance of ActivityRule.


119
120
121
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 119

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#action_namesArray<String>

List of action names associated with the rule threshold. Corresponds to the JSON property actionNames

Returns:

  • (Array<String>)

57
58
59
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 57

def action_names
  @action_names
end

#create_timeString

Rule create timestamp. Corresponds to the JSON property createTime

Returns:

  • (String)

62
63
64
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 62

def create_time
  @create_time
end

#descriptionString

Description of the rule. Corresponds to the JSON property description

Returns:

  • (String)

67
68
69
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 67

def description
  @description
end

#display_nameString

Alert display name. Corresponds to the JSON property displayName

Returns:

  • (String)

72
73
74
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 72

def display_name
  @display_name
end

#nameString

Rule name. Corresponds to the JSON property name

Returns:

  • (String)

77
78
79
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 77

def name
  @name
end

#queryString

Query that is used to get the data from the associated source. Corresponds to the JSON property query

Returns:

  • (String)

82
83
84
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 82

def query
  @query
end

#superseded_alertsArray<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

Returns:

  • (Array<String>)

89
90
91
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 89

def superseded_alerts
  @superseded_alerts
end

#superseding_alertString

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

Returns:

  • (String)

96
97
98
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 96

def superseding_alert
  @superseding_alert
end

#thresholdString

Alert threshold is for example “COUNT > 5”. Corresponds to the JSON property threshold

Returns:

  • (String)

101
102
103
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 101

def threshold
  @threshold
end

#trigger_sourceString

The trigger sources for this rule. * GMAIL_EVENTS * DEVICE_EVENTS * USER_EVENTS Corresponds to the JSON property triggerSource

Returns:

  • (String)

107
108
109
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 107

def trigger_source
  @trigger_source
end

#update_timeString

The timestamp of the last update to the rule. Corresponds to the JSON property updateTime

Returns:

  • (String)

112
113
114
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 112

def update_time
  @update_time
end

#window_sizeString

Rule window size. Possible values are 1 hour or 24 hours. Corresponds to the JSON property windowSize

Returns:

  • (String)

117
118
119
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 117

def window_size
  @window_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 124

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