Class: Google::Apis::AlertcenterV1beta1::AbuseDetected

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

A generic alert for abusive user activity occurring with a customer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AbuseDetected

Returns a new instance of AbuseDetected.



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

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

Instance Attribute Details

#additional_detailsGoogle::Apis::AlertcenterV1beta1::EntityList

EntityList stores entities in a format that can be translated to a table in the Alert Center UI. Corresponds to the JSON property additionalDetails



33
34
35
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 33

def additional_details
  @additional_details
end

#alert_descriptorString

Displayed after Customer abuse detected - alert_descriptor. If missing, alert name will be displayed as Customer abuse detected. Corresponds to the JSON property alertDescriptor

Returns:

  • (String)


39
40
41
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 39

def alert_descriptor
  @alert_descriptor
end

#productString

Product that the abuse is originating from. Corresponds to the JSON property product

Returns:

  • (String)


44
45
46
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 44

def product
  @product
end

#sub_alert_idString

Unique identifier of each alert that is onboarded. Corresponds to the JSON property subAlertId

Returns:

  • (String)


49
50
51
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 49

def sub_alert_id
  @sub_alert_id
end

#summaryString

Customizable text to display in the summary section of the alert. Will be parsed as HTML to allow new paragraphs and hyperlinks. Corresponds to the JSON property summary

Returns:

  • (String)


55
56
57
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 55

def summary
  @summary
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



62
63
64
65
66
67
68
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 62

def update!(**args)
  @additional_details = args[:additional_details] if args.key?(:additional_details)
  @alert_descriptor = args[:alert_descriptor] if args.key?(:alert_descriptor)
  @product = args[:product] if args.key?(:product)
  @sub_alert_id = args[:sub_alert_id] if args.key?(:sub_alert_id)
  @summary = args[:summary] if args.key?(:summary)
end