Package com.qtsurfer.api.client.model
Class PrepareJobState
java.lang.Object
com.qtsurfer.api.client.model.PrepareJobState
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.14.0")
public class PrepareJobState
extends Object
State of a single-instrument prepare job — the `JobState` shape plus a per-hour data-coverage summary. A single-instrument prepare is always terminal (`status: Completed`): the client decides what to do from `coverageRatio` (e.g. execute if it is at or above a chosen threshold) rather than polling for missing hours that may never arrive — a missing hour for one instrument usually means low activity, not missing data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCurrent status of the job. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHoursWithoutDataItem(PrepareJobStateAllOfHoursWithoutData hoursWithoutDataItem) coverageRatio(Double coverageRatio) dataFrom(OffsetDateTime dataFrom) dataTo(OffsetDateTime dataTo) endTime(OffsetDateTime endTime) booleanReturn true if this PrepareJobState object is equal to o.The amount of data processed so farOpaque context identifier for the job`hoursWithData / totalHours` in `[0,1]` (`1.0` when `totalHours` is 0) — the fraction of hours in the requested range that have served data.Start of the available data range for the prepared instrument.End of the available data range for the prepared instrument.Timestamp for when the preparation finishedNumber of hours in the range that have data.One entry per hour in the range that has no data, with a rationale.getSize()Total size of the data being preparedTimestamp for when the preparation startedCurrent status of the job.Detailed status information, if availableNumber of whole hours in the requested prepare range.inthashCode()hoursWithData(Integer hoursWithData) hoursWithoutData(List<PrepareJobStateAllOfHoursWithoutData> hoursWithoutData) voidsetCompleted(Integer completed) voidsetContextId(String contextId) voidsetCoverageRatio(Double coverageRatio) voidsetDataFrom(OffsetDateTime dataFrom) voidsetDataTo(OffsetDateTime dataTo) voidsetEndTime(OffsetDateTime endTime) voidsetHoursWithData(Integer hoursWithData) voidsetHoursWithoutData(List<PrepareJobStateAllOfHoursWithoutData> hoursWithoutData) voidvoidsetStartTime(OffsetDateTime startTime) voidsetStatus(PrepareJobState.StatusEnum status) voidsetStatusDetail(String statusDetail) voidsetTotalHours(Integer totalHours) startTime(OffsetDateTime startTime) status(PrepareJobState.StatusEnum status) statusDetail(String statusDetail) toString()totalHours(Integer totalHours) Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_CONTEXT_ID
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_STATUS_DETAIL
- See Also:
-
JSON_PROPERTY_SIZE
- See Also:
-
JSON_PROPERTY_COMPLETED
- See Also:
-
JSON_PROPERTY_START_TIME
- See Also:
-
JSON_PROPERTY_END_TIME
- See Also:
-
JSON_PROPERTY_DATA_FROM
- See Also:
-
JSON_PROPERTY_DATA_TO
- See Also:
-
JSON_PROPERTY_COVERAGE_RATIO
- See Also:
-
JSON_PROPERTY_TOTAL_HOURS
- See Also:
-
JSON_PROPERTY_HOURS_WITH_DATA
- See Also:
-
JSON_PROPERTY_HOURS_WITHOUT_DATA
- See Also:
-
-
Constructor Details
-
PrepareJobState
public PrepareJobState()
-
-
Method Details
-
contextId
-
getContextId
Opaque context identifier for the job- Returns:
- contextId
-
setContextId
-
status
-
getStatus
Current status of the job. Treat `Completed | Aborted | Failed` as terminal; `New | Started` mean keep polling. A single-instrument prepare is always terminal (`Completed`) — decide from `PrepareJobState.coverageRatio`, not by polling.- Returns:
- status
-
setStatus
-
statusDetail
-
getStatusDetail
Detailed status information, if available- Returns:
- statusDetail
-
setStatusDetail
-
size
-
getSize
Total size of the data being prepared- Returns:
- size
-
setSize
-
completed
-
getCompleted
The amount of data processed so far- Returns:
- completed
-
setCompleted
-
startTime
-
getStartTime
Timestamp for when the preparation started- Returns:
- startTime
-
setStartTime
-
endTime
-
getEndTime
Timestamp for when the preparation finished- Returns:
- endTime
-
setEndTime
-
dataFrom
-
getDataFrom
Start of the available data range for the prepared instrument.- Returns:
- dataFrom
-
setDataFrom
-
dataTo
-
getDataTo
End of the available data range for the prepared instrument.- Returns:
- dataTo
-
setDataTo
-
coverageRatio
-
getCoverageRatio
`hoursWithData / totalHours` in `[0,1]` (`1.0` when `totalHours` is 0) — the fraction of hours in the requested range that have served data. minimum: 0 maximum: 1- Returns:
- coverageRatio
-
setCoverageRatio
-
totalHours
-
getTotalHours
Number of whole hours in the requested prepare range.- Returns:
- totalHours
-
setTotalHours
-
hoursWithData
-
getHoursWithData
Number of hours in the range that have data.- Returns:
- hoursWithData
-
setHoursWithData
-
hoursWithoutData
public PrepareJobState hoursWithoutData(@Nullable List<PrepareJobStateAllOfHoursWithoutData> hoursWithoutData) -
addHoursWithoutDataItem
public PrepareJobState addHoursWithoutDataItem(PrepareJobStateAllOfHoursWithoutData hoursWithoutDataItem) -
getHoursWithoutData
One entry per hour in the range that has no data, with a rationale.- Returns:
- hoursWithoutData
-
setHoursWithoutData
public void setHoursWithoutData(@Nullable List<PrepareJobStateAllOfHoursWithoutData> hoursWithoutData) -
equals
Return true if this PrepareJobState object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-