Class: ContextDev::Models::BatchCancelResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ContextDev::Models::BatchCancelResponse
- Defined in:
- lib/context_dev/models/batch_cancel_response.rb,
sig/context_dev/models/batch_cancel_response.rbs
Overview
Defined Under Namespace
Modules: Format, Mode, Status Classes: Credits, KeyMetadata, Progress, Timing
Instance Attribute Summary collapse
-
#crawl ⇒ ContextDev::Models::CrawlControls?
The crawl controls as submitted, so the limits requested can be compared against what the crawl reached.
-
#credits ⇒ ContextDev::Models::BatchCancelResponse::Credits
What this batch cost so far.
-
#format_ ⇒ Symbol, ContextDev::Models::BatchCancelResponse::Format
What each page is returned as.
-
#id ⇒ String
Batch ID.
-
#input ⇒ ContextDev::Models::Intake
What submission took in, and what it charged for.
-
#key_metadata ⇒ ContextDev::Models::BatchCancelResponse::KeyMetadata?
API key usage for this request.
-
#mode ⇒ Symbol, ContextDev::Models::BatchCancelResponse::Mode
How pages were selected.
-
#page_errors ⇒ Array<ContextDev::Models::PageErrorCount>
Page failures so far, grouped by error code and sorted by count.
-
#progress ⇒ ContextDev::Models::BatchCancelResponse::Progress
How far the batch got before cancellation.
-
#status ⇒ Symbol, ContextDev::Models::BatchCancelResponse::Status
Always
cancelling. -
#tags ⇒ Array<String>
Tags stored on the batch at submission.
-
#timing ⇒ ContextDev::Models::BatchCancelResponse::Timing
There is no finish time yet — the batch is still winding down.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(created_at:, started_at:) ⇒ Object
constructor
There is no finish time yet — the batch is still winding down.
- #to_hash ⇒ {
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(created_at:, started_at:) ⇒ Object
There is no finish time yet — the batch is still winding down.
|
|
# File 'lib/context_dev/models/batch_cancel_response.rb', line 81
|
Instance Attribute Details
#crawl ⇒ ContextDev::Models::CrawlControls?
The crawl controls as submitted, so the limits requested can be compared against what the crawl reached.
18 |
# File 'lib/context_dev/models/batch_cancel_response.rb', line 18 required :crawl, -> { ContextDev::CrawlControls }, nil?: true |
#credits ⇒ ContextDev::Models::BatchCancelResponse::Credits
What this batch cost so far.
24 |
# File 'lib/context_dev/models/batch_cancel_response.rb', line 24 required :credits, -> { ContextDev::Models::BatchCancelResponse::Credits } |
#format_ ⇒ Symbol, ContextDev::Models::BatchCancelResponse::Format
What each page is returned as.
30 |
# File 'lib/context_dev/models/batch_cancel_response.rb', line 30 required :format_, enum: -> { ContextDev::Models::BatchCancelResponse::Format }, api_name: :format |
#id ⇒ String
Batch ID.
11 |
# File 'lib/context_dev/models/batch_cancel_response.rb', line 11 required :id, String |
#input ⇒ ContextDev::Models::Intake
What submission took in, and what it charged for.
36 |
# File 'lib/context_dev/models/batch_cancel_response.rb', line 36 required :input, -> { ContextDev::Intake } |
#key_metadata ⇒ ContextDev::Models::BatchCancelResponse::KeyMetadata?
API key usage for this request.
79 |
# File 'lib/context_dev/models/batch_cancel_response.rb', line 79 optional :key_metadata, -> { ContextDev::Models::BatchCancelResponse::KeyMetadata } |
#mode ⇒ Symbol, ContextDev::Models::BatchCancelResponse::Mode
How pages were selected.
42 |
# File 'lib/context_dev/models/batch_cancel_response.rb', line 42 required :mode, enum: -> { ContextDev::Models::BatchCancelResponse::Mode } |
#page_errors ⇒ Array<ContextDev::Models::PageErrorCount>
Page failures so far, grouped by error code and sorted by count.
48 |
# File 'lib/context_dev/models/batch_cancel_response.rb', line 48 required :page_errors, -> { ContextDev::Internal::Type::ArrayOf[ContextDev::PageErrorCount] } |
#progress ⇒ ContextDev::Models::BatchCancelResponse::Progress
How far the batch got before cancellation.
54 |
# File 'lib/context_dev/models/batch_cancel_response.rb', line 54 required :progress, -> { ContextDev::Models::BatchCancelResponse::Progress } |
#status ⇒ Symbol, ContextDev::Models::BatchCancelResponse::Status
Always cancelling. Work already in flight finishes; the batch reaches
cancelled shortly after.
61 |
# File 'lib/context_dev/models/batch_cancel_response.rb', line 61 required :status, enum: -> { ContextDev::Models::BatchCancelResponse::Status } |
#tags ⇒ Array<String>
Tags stored on the batch at submission.
67 |
# File 'lib/context_dev/models/batch_cancel_response.rb', line 67 required :tags, ContextDev::Internal::Type::ArrayOf[String] |
#timing ⇒ ContextDev::Models::BatchCancelResponse::Timing
There is no finish time yet — the batch is still winding down.
73 |
# File 'lib/context_dev/models/batch_cancel_response.rb', line 73 required :timing, -> { ContextDev::Models::BatchCancelResponse::Timing } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/context_dev/models/batch_cancel_response.rb', line 136
|
Instance Method Details
#to_hash ⇒ {
63 |
# File 'sig/context_dev/models/batch_cancel_response.rbs', line 63
def to_hash: -> {
|