Class: Handinger::Models::Workers::WebhookExecution
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Handinger::Models::Workers::WebhookExecution
- Defined in:
- lib/handinger/models/workers/webhook_execution.rb
Defined Under Namespace
Modules: RequestStatus
Instance Attribute Summary collapse
- #created_at ⇒ Time
-
#duration_ms ⇒ Integer
Wall-clock time spent on the delivery attempt.
-
#error_message ⇒ String?
Failure reason when ‘requestStatus` is `error`.
- #id ⇒ String
-
#request_status ⇒ Symbol, Handinger::Models::Workers::WebhookExecution::RequestStatus
‘success` when the endpoint returned a 2xx response, `error` otherwise.
-
#response_status ⇒ Integer?
HTTP status returned by the endpoint, when reachable.
-
#task_id ⇒ String?
Task that triggered the delivery, when available.
-
#task_title ⇒ String?
Title of the originating task, when available.
-
#url ⇒ String
Endpoint Handinger attempted to deliver to.
- #worker_id ⇒ String
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(id:, created_at:, duration_ms:, error_message:, request_status:, response_status:, task_id:, task_title:, url:, worker_id:) ⇒ Object
|
|
# File 'lib/handinger/models/workers/webhook_execution.rb', line 66
|
Instance Attribute Details
#created_at ⇒ Time
15 |
# File 'lib/handinger/models/workers/webhook_execution.rb', line 15 required :created_at, Time, api_name: :createdAt |
#duration_ms ⇒ Integer
Wall-clock time spent on the delivery attempt.
21 |
# File 'lib/handinger/models/workers/webhook_execution.rb', line 21 required :duration_ms, Integer, api_name: :durationMs |
#error_message ⇒ String?
Failure reason when ‘requestStatus` is `error`.
27 |
# File 'lib/handinger/models/workers/webhook_execution.rb', line 27 required :error_message, String, api_name: :errorMessage, nil?: true |
#id ⇒ String
10 |
# File 'lib/handinger/models/workers/webhook_execution.rb', line 10 required :id, String |
#request_status ⇒ Symbol, Handinger::Models::Workers::WebhookExecution::RequestStatus
‘success` when the endpoint returned a 2xx response, `error` otherwise.
33 34 35 |
# File 'lib/handinger/models/workers/webhook_execution.rb', line 33 required :request_status, enum: -> { Handinger::Workers::WebhookExecution::RequestStatus }, api_name: :requestStatus |
#response_status ⇒ Integer?
HTTP status returned by the endpoint, when reachable.
41 |
# File 'lib/handinger/models/workers/webhook_execution.rb', line 41 required :response_status, Integer, api_name: :responseStatus, nil?: true |
#task_id ⇒ String?
Task that triggered the delivery, when available.
47 |
# File 'lib/handinger/models/workers/webhook_execution.rb', line 47 required :task_id, String, api_name: :taskId, nil?: true |
#task_title ⇒ String?
Title of the originating task, when available.
53 |
# File 'lib/handinger/models/workers/webhook_execution.rb', line 53 required :task_title, String, api_name: :taskTitle, nil?: true |
#url ⇒ String
Endpoint Handinger attempted to deliver to.
59 |
# File 'lib/handinger/models/workers/webhook_execution.rb', line 59 required :url, String |
#worker_id ⇒ String
64 |
# File 'lib/handinger/models/workers/webhook_execution.rb', line 64 required :worker_id, String, api_name: :workerId |