Class: Google::Apis::AlertcenterV1beta1::Alert

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

An alert affecting a customer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Alert

Returns a new instance of Alert.



354
355
356
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 354

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

Instance Attribute Details

#alert_idString

Output only. The unique identifier for the alert. Corresponds to the JSON property alertId

Returns:

  • (String)


273
274
275
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 273

def alert_id
  @alert_id
end

#create_timeString

Output only. The time this alert was created. Corresponds to the JSON property createTime

Returns:

  • (String)


278
279
280
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 278

def create_time
  @create_time
end

#customer_idString

Output only. The unique identifier of the Google account of the customer. Corresponds to the JSON property customerId

Returns:

  • (String)


283
284
285
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 283

def customer_id
  @customer_id
end

#dataHash<String,Object>

Optional. The data associated with this alert, for example google.apps. alertcenter.type.DeviceCompromised. Corresponds to the JSON property data

Returns:

  • (Hash<String,Object>)


289
290
291
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 289

def data
  @data
end

#deletedBoolean Also known as: deleted?

Output only. True if this alert is marked for deletion. Corresponds to the JSON property deleted

Returns:

  • (Boolean)


294
295
296
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 294

def deleted
  @deleted
end

#end_timeString

Optional. The time the event that caused this alert ceased being active. If provided, the end time must not be earlier than the start time. If not provided, it indicates an ongoing alert. Corresponds to the JSON property endTime

Returns:

  • (String)


302
303
304
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 302

def end_time
  @end_time
end

#etagString

Optional. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of an alert from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify- write cycle to perform alert updates in order to avoid race conditions: An etag is returned in the response which contains alerts, and systems are expected to put that etag in the request to update alert to ensure that their change will be applied to the same version of the alert. If no etag is provided in the call to update alert, then the existing alert is overwritten blindly. Corresponds to the JSON property etag

Returns:

  • (String)


315
316
317
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 315

def etag
  @etag
end

#metadataGoogle::Apis::AlertcenterV1beta1::AlertMetadata

An alert metadata. Corresponds to the JSON property metadata



320
321
322
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 320

def 
  @metadata
end

Output only. An optional Security Investigation Tool query for this alert. Corresponds to the JSON property securityInvestigationToolLink

Returns:

  • (String)


326
327
328
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 326

def security_investigation_tool_link
  @security_investigation_tool_link
end

#sourceString

Required. A unique identifier for the system that reported the alert. This is output only after alert is created. Supported sources are any of the following:

  • Google Operations * Mobile device management * Gmail phishing * Data Loss Prevention * Domain wide takeout * State sponsored attack * Google identity * Apps outage Corresponds to the JSON property source

Returns:

  • (String)


335
336
337
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 335

def source
  @source
end

#start_timeString

Required. The time the event that caused this alert was started or detected. Corresponds to the JSON property startTime

Returns:

  • (String)


340
341
342
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 340

def start_time
  @start_time
end

#typeString

Required. The type of the alert. This is output only after alert is created. For a list of available alert types see Google Workspace Alert types. Corresponds to the JSON property type

Returns:

  • (String)


347
348
349
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 347

def type
  @type
end

#update_timeString

Output only. The time this alert was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


352
353
354
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 352

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 359

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)
  @etag = args[:etag] if args.key?(:etag)
  @metadata = args[:metadata] if args.key?(:metadata)
  @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)
  @update_time = args[:update_time] if args.key?(:update_time)
end