Class: Google::Apis::AlertcenterV1beta1::Alert
- Inherits:
-
Object
- Object
- Google::Apis::AlertcenterV1beta1::Alert
- 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
An alert affecting a customer. All fields are read-only once created.
Instance Attribute Summary collapse
-
#alert_id ⇒ String
Output only.
-
#create_time ⇒ String
Output only.
-
#customer_id ⇒ String
Output only.
-
#data ⇒ Hash<String,Object>
Optional.
-
#deleted ⇒ Boolean
(also: #deleted?)
Output only.
-
#end_time ⇒ String
Optional.
-
#security_investigation_tool_link ⇒ String
Output only.
-
#source ⇒ String
Required.
-
#start_time ⇒ String
Required.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Alert
constructor
A new instance of Alert.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Alert
Returns a new instance of Alert
138 139 140 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 138 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alert_id ⇒ String
Output only. The unique identifier for the alert.
Corresponds to the JSON property alertId
58 59 60 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 58 def alert_id @alert_id end |
#create_time ⇒ String
Output only. The time this alert was created. Assigned by the server.
Corresponds to the JSON property createTime
63 64 65 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 63 def create_time @create_time end |
#customer_id ⇒ String
Output only. The unique identifier of the Google account of the customer.
Corresponds to the JSON property customerId
68 69 70 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 68 def customer_id @customer_id end |
#data ⇒ Hash<String,Object>
Optional. Specific data associated with this alert.
e.g. google.apps.alertcenter.type.DeviceCompromised.
Corresponds to the JSON property data
74 75 76 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 74 def data @data end |
#deleted ⇒ Boolean Also known as: deleted?
Output only. Whether this alert has been marked for deletion.
Corresponds to the JSON property deleted
79 80 81 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 79 def deleted @deleted end |
#end_time ⇒ String
Optional. The time this alert was no longer active. If provided, the
end time must not be earlier than the start time. If not provided, the end
time will default to the start time.
Corresponds to the JSON property endTime
87 88 89 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 87 def end_time @end_time end |
#security_investigation_tool_link ⇒ String
Output only. An optional Security Investigation Tool query for this
alert.
Corresponds to the JSON property securityInvestigationToolLink
93 94 95 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 93 def security_investigation_tool_link @security_investigation_tool_link end |
#source ⇒ String
Required. A unique identifier for the system that is reported the alert. Supported sources are any of the following:
- "Google Operations"
- "Mobile device management"
- "Gmail phishing"
- "Domain wide takeout"
- "Government attack warning"
- "Google identity"
Corresponds to the JSON property
source
105 106 107 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 105 def source @source end |
#start_time ⇒ String
Required. The time this alert became active.
Corresponds to the JSON property startTime
110 111 112 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 110 def start_time @start_time end |
#type ⇒ String
Required. The type of the alert. Supported types are any of the following:
- "Google Operations"
- "Device compromised"
- "Suspicious activity"
- "User reported phishing"
- "Misconfigured whitelist"
- "Customer takeout initiated"
- "Government attack warning"
- "User reported spam spike"
- "Suspicious message reported"
- "Phishing reclassification"
- "Malware reclassification" LINT.IfChange
- "Suspicious login"
- "Suspicious login (less secure app)"
- "User suspended"
- "Leaked password"
- "User suspended (suspicious activity)"
- "User suspended (spam)"
- "User suspended (spam through relay)"
LINT.ThenChange(//depot/google3/apps/albert/data/albert_enums.proto)
Corresponds to the JSON property
type
136 137 138 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 136 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
143 144 145 146 147 148 149 150 151 152 153 154 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 143 def update!(**args) @alert_id = args[:alert_id] if args.key?(:alert_id) @create_time = args[:create_time] if args.key?(:create_time) @customer_id = args[:customer_id] if args.key?(:customer_id) @data = args[:data] if args.key?(:data) @deleted = args[:deleted] if args.key?(:deleted) @end_time = args[:end_time] if args.key?(:end_time) @security_investigation_tool_link = args[:security_investigation_tool_link] if args.key?(:security_investigation_tool_link) @source = args[:source] if args.key?(:source) @start_time = args[:start_time] if args.key?(:start_time) @type = args[:type] if args.key?(:type) end |