Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TaskEvent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

An event that occurred for a task. Note that TaskEvent is just a record of task's change. Hence, it's not a Cloud resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1TaskEvent

Returns a new instance of GoogleCloudAiplatformV1beta1TaskEvent.



53533
53534
53535
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53533

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

Instance Attribute Details

#create_timeString

Output only. The create time of the event. Corresponds to the JSON property createTime

Returns:

  • (String)


53519
53520
53521
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53519

def create_time
  @create_time
end

#event_dataGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TaskEventData

Data for a TaskEvent. Corresponds to the JSON property eventData



53524
53525
53526
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53524

def event_data
  @event_data
end

#event_sequence_numberFixnum

Required. The sequence number of the event. This is used to uniquely identify the event within the task and order events chronologically. This is a id generated by the SDK. Corresponds to the JSON property eventSequenceNumber

Returns:

  • (Fixnum)


53531
53532
53533
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53531

def event_sequence_number
  @event_sequence_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



53538
53539
53540
53541
53542
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53538

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @event_data = args[:event_data] if args.key?(:event_data)
  @event_sequence_number = args[:event_sequence_number] if args.key?(:event_sequence_number)
end