Class: Tasker::Types::TaskRequest

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/tasker/types/task_request.rb

Overview

TaskRequest represents a request to perform a task within the system

It contains all the necessary information to identify, track, and execute a task including context data, metadata, and configuration for the task execution.

Instance Attribute Summary collapse

Instance Attribute Details

#bypass_stepsArray<String> (readonly)



53
# File 'lib/tasker/types/task_request.rb', line 53

attribute :bypass_steps, Types::Array.of(Types::String).default([].freeze)

#completeBoolean (readonly)



45
# File 'lib/tasker/types/task_request.rb', line 45

attribute :complete, Types::Bool.default(false)

#contextHash (readonly)



25
# File 'lib/tasker/types/task_request.rb', line 25

attribute :context, Types::Hash

#initiatorString (readonly)



33
# File 'lib/tasker/types/task_request.rb', line 33

attribute :initiator, Types::String.default(Constants::UNKNOWN)

#nameString (readonly)



13
# File 'lib/tasker/types/task_request.rb', line 13

attribute :name, Types::Strict::String

#namespaceString (readonly)



17
# File 'lib/tasker/types/task_request.rb', line 17

attribute :namespace, Types::Strict::String.default('default')

#reasonString (readonly)



41
# File 'lib/tasker/types/task_request.rb', line 41

attribute :reason, Types::String.default(Constants::UNKNOWN)

#requested_atTime (readonly)



57
# File 'lib/tasker/types/task_request.rb', line 57

attribute(:requested_at, Types::JSON::Time.default { Time.zone.now })

#source_systemString (readonly)



37
# File 'lib/tasker/types/task_request.rb', line 37

attribute :source_system, Types::String.default(Constants::UNKNOWN)

#statusString (readonly)



29
# File 'lib/tasker/types/task_request.rb', line 29

attribute :status, Types::String.default(Constants::TaskStatuses::PENDING)

#tagsArray<String> (readonly)



49
# File 'lib/tasker/types/task_request.rb', line 49

attribute :tags, Types::Array.of(Types::String).default([].freeze)

#versionString (readonly)



21
# File 'lib/tasker/types/task_request.rb', line 21

attribute :version, Types::Strict::String.default('0.1.0')