Class: Cadenya::Models::ObjectiveEvent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/objective_event.rb,
sig/cadenya/models/objective_event.rbs

Overview

See Also:

  • Cadenya::Resources::Objectives#continue

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(data:, metadata:, context_window_id: nil, duration: nil, info: nil, started_at: nil) ⇒ Object

Some parameter documentations has been truncated, see Cadenya::Models::ObjectiveEvent for more details.



# File 'lib/cadenya/models/objective_event.rb', line 49

Instance Attribute Details

#context_window_idString?

Parameters:

  • (String)

Returns:

  • (String, nil)


22
# File 'lib/cadenya/models/objective_event.rb', line 22

optional :context_window_id, String, api_name: :contextWindowId

#durationString? (readonly)

Returns the value of attribute duration.

Returns:

  • (String, nil)


26
27
28
# File 'sig/cadenya/models/objective_event.rbs', line 26

def duration
  @duration
end

#infoCadenya::Models::ObjectiveEventInfo?



27
# File 'lib/cadenya/models/objective_event.rb', line 27

optional :info, -> { Cadenya::ObjectiveEventInfo }

#metadataCadenya::Models::OperationMetadata

Metadata for ephemeral operations and activities (e.g., objectives, executions, runs)



17
# File 'lib/cadenya/models/objective_event.rb', line 17

required :metadata, -> { Cadenya::OperationMetadata }

#started_atTime? (readonly)

Returns the value of attribute started_at.

Returns:

  • (Time, nil)


30
31
32
# File 'sig/cadenya/models/objective_event.rbs', line 30

def started_at
  @started_at
end

Instance Method Details

#duration=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


28
# File 'sig/cadenya/models/objective_event.rbs', line 28

def duration=: (String) -> String

#started_at=Time (readonly)

Parameters:

  • (Time)

Returns:

  • (Time)


32
# File 'sig/cadenya/models/objective_event.rbs', line 32

def started_at=: (Time) -> Time

#to_hash{

Returns:

  • ({)


43
# File 'sig/cadenya/models/objective_event.rbs', line 43

def to_hash: -> {