Class: Google::Apis::AlertcenterV1beta1::RuleViolationInfo

Inherits:
Object
  • Object
show all
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

Common alert information about violated rules that are configured by Google Workspace administrators.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RuleViolationInfo

Returns a new instance of RuleViolationInfo.



1878
1879
1880
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1878

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

Instance Attribute Details

#data_sourceString

Source of the data. Corresponds to the JSON property dataSource

Returns:

  • (String)


1821
1822
1823
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1821

def data_source
  @data_source
end

#event_typeString

Event associated with this alert after applying the rule. Corresponds to the JSON property eventType

Returns:

  • (String)


1826
1827
1828
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1826

def event_type
  @event_type
end

#match_infoArray<Google::Apis::AlertcenterV1beta1::MatchInfo>

List of matches that were found in the resource content. Corresponds to the JSON property matchInfo



1831
1832
1833
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1831

def match_info
  @match_info
end

#recipientsArray<String>

Resource recipients. For Drive, they are grantees that the Drive file was shared with at the time of rule triggering. Valid values include user emails, group emails, domains, or 'anyone' if the file was publicly accessible. If the file was private the recipients list will be empty. For Gmail, they are emails of the users or groups that the Gmail message was sent to. Corresponds to the JSON property recipients

Returns:

  • (Array<String>)


1840
1841
1842
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1840

def recipients
  @recipients
end

#resource_infoGoogle::Apis::AlertcenterV1beta1::ResourceInfo

Proto that contains resource information. Corresponds to the JSON property resourceInfo



1845
1846
1847
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1845

def resource_info
  @resource_info
end

#rule_infoGoogle::Apis::AlertcenterV1beta1::RuleInfo

Proto that contains rule information. Corresponds to the JSON property ruleInfo



1850
1851
1852
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1850

def rule_info
  @rule_info
end

#suppressed_action_typesArray<String>

Actions suppressed due to other actions with higher priority. Corresponds to the JSON property suppressedActionTypes

Returns:

  • (Array<String>)


1855
1856
1857
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1855

def suppressed_action_types
  @suppressed_action_types
end

#triggerString

Trigger of the rule. Corresponds to the JSON property trigger

Returns:

  • (String)


1860
1861
1862
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1860

def trigger
  @trigger
end

#triggered_action_infoArray<Google::Apis::AlertcenterV1beta1::ActionInfo>

Metadata related to the triggered actions. Corresponds to the JSON property triggeredActionInfo



1865
1866
1867
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1865

def triggered_action_info
  @triggered_action_info
end

#triggered_action_typesArray<String>

Actions applied as a consequence of the rule being triggered. Corresponds to the JSON property triggeredActionTypes

Returns:

  • (Array<String>)


1870
1871
1872
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1870

def triggered_action_types
  @triggered_action_types
end

#triggering_user_emailString

Email of the user who caused the violation. Value could be empty if not applicable, for example, a violation found by drive continuous scan. Corresponds to the JSON property triggeringUserEmail

Returns:

  • (String)


1876
1877
1878
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1876

def triggering_user_email
  @triggering_user_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1883

def update!(**args)
  @data_source = args[:data_source] if args.key?(:data_source)
  @event_type = args[:event_type] if args.key?(:event_type)
  @match_info = args[:match_info] if args.key?(:match_info)
  @recipients = args[:recipients] if args.key?(:recipients)
  @resource_info = args[:resource_info] if args.key?(:resource_info)
  @rule_info = args[:rule_info] if args.key?(:rule_info)
  @suppressed_action_types = args[:suppressed_action_types] if args.key?(:suppressed_action_types)
  @trigger = args[:trigger] if args.key?(:trigger)
  @triggered_action_info = args[:triggered_action_info] if args.key?(:triggered_action_info)
  @triggered_action_types = args[:triggered_action_types] if args.key?(:triggered_action_types)
  @triggering_user_email = args[:triggering_user_email] if args.key?(:triggering_user_email)
end