Class: Google::Apis::GenomicsV2alpha1::TimestampedEvent
- Inherits:
-
Object
- Object
- Google::Apis::GenomicsV2alpha1::TimestampedEvent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/genomics_v2alpha1/classes.rb,
generated/google/apis/genomics_v2alpha1/representations.rb,
generated/google/apis/genomics_v2alpha1/representations.rb
Overview
An event that occured in the operation assigned to the worker and the time of occurance.
Instance Attribute Summary collapse
-
#data ⇒ Hash<String,Object>
The event data.
-
#timestamp ⇒ String
The time when the event happened.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimestampedEvent
constructor
A new instance of TimestampedEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TimestampedEvent
Returns a new instance of TimestampedEvent.
1283 1284 1285 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1283 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data ⇒ Hash<String,Object>
The event data.
Corresponds to the JSON property data
1276 1277 1278 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1276 def data @data end |
#timestamp ⇒ String
The time when the event happened.
Corresponds to the JSON property timestamp
1281 1282 1283 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1281 def @timestamp end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1288 1289 1290 1291 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1288 def update!(**args) @data = args[:data] if args.key?(:data) @timestamp = args[:timestamp] if args.key?(:timestamp) end |