Package com.qtsurfer.api.client.model
Class LiveRun
java.lang.Object
com.qtsurfer.api.client.model.LiveRun
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.14.0")
public class LiveRun
extends Object
A live run's full state, as returned by starting, reading, or stopping it through its strategy.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhat you last asked for.static enumA new run always starts `SANDBOX` — a trial run compared against a second execution for agreement — and moves to `LIVE` once it passes.static enumGets or Sets visibility -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSourcesItem(LiveSource sourcesItem) description(String description) desired(LiveRun.DesiredEnum desired) booleanReturn true if this LiveRun object is equal to o.Get descriptionWhat you last asked for.getGate()The sandbox trial's promotion verdict, once one exists.getName()Get nameGet paramsIncrements on every accepted `PUT .../params` call, including one that resends the current values.Present only when the run stopped because it exceeded its resource allowance.getRelay()Whether this run's signals are being relayed over the WebSocket channel described in the \"Live execution\" guide, right now.getRunId()This run's own id — its canonical identity for `PATCH`/`PUT .../params` and for `GET /live/public`.Get sourcesgetStage()A new run always starts `SANDBOX` — a trial run compared against a second execution for agreement — and moves to `LIVE` once it passes.Epoch milliseconds.getState()`STARTING` until first observed running; otherwise the runner's own reported state (e.g.Unique identifier for a compiled strategy, derived from the source itself: the same code always yields the same id, for every caller.Get visibilityinthashCode()paramsVersion(Integer paramsVersion) voidsetDescription(String description) voidsetDesired(LiveRun.DesiredEnum desired) voidvoidvoidvoidsetParamsVersion(Integer paramsVersion) voidvoidvoidvoidsetSources(List<LiveSource> sources) voidsetStage(LiveRun.StageEnum stage) voidsetStartedAtMs(Long startedAtMs) voidvoidsetStrategyId(String strategyId) voidsetVisibility(LiveRun.VisibilityEnum visibility) sources(List<LiveSource> sources) stage(LiveRun.StageEnum stage) startedAtMs(Long startedAtMs) strategyId(String strategyId) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.visibility(LiveRun.VisibilityEnum visibility)
-
Field Details
-
JSON_PROPERTY_STRATEGY_ID
- See Also:
-
JSON_PROPERTY_RUN_ID
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_VISIBILITY
- See Also:
-
JSON_PROPERTY_STAGE
- See Also:
-
JSON_PROPERTY_STATE
- See Also:
-
JSON_PROPERTY_DESIRED
- See Also:
-
JSON_PROPERTY_REASON
- See Also:
-
JSON_PROPERTY_SOURCES
- See Also:
-
JSON_PROPERTY_PARAMS
- See Also:
-
JSON_PROPERTY_PARAMS_VERSION
- See Also:
-
JSON_PROPERTY_RELAY
- See Also:
-
JSON_PROPERTY_STARTED_AT_MS
- See Also:
-
JSON_PROPERTY_GATE
- See Also:
-
-
Constructor Details
-
LiveRun
public LiveRun()
-
-
Method Details
-
strategyId
-
getStrategyId
Unique identifier for a compiled strategy, derived from the source itself: the same code always yields the same id, for every caller. How much formatting the id ignores depends on the language — see `POST /strategy` for exactly which rewrites preserve it and which do not.- Returns:
- strategyId
-
setStrategyId
-
runId
-
getRunId
This run's own id — its canonical identity for `PATCH`/`PUT .../params` and for `GET /live/public`.- Returns:
- runId
-
setRunId
-
name
-
getName
Get name- Returns:
- name
-
setName
-
description
-
getDescription
Get description- Returns:
- description
-
setDescription
-
visibility
-
getVisibility
Get visibility- Returns:
- visibility
-
setVisibility
-
stage
-
getStage
A new run always starts `SANDBOX` — a trial run compared against a second execution for agreement — and moves to `LIVE` once it passes.- Returns:
- stage
-
setStage
-
state
-
getState
`STARTING` until first observed running; otherwise the runner's own reported state (e.g. `RUNNING`).- Returns:
- state
-
setState
-
desired
-
getDesired
What you last asked for. `state` can lag this briefly after `DELETE`.- Returns:
- desired
-
setDesired
-
reason
-
getReason
Present only when the run stopped because it exceeded its resource allowance.- Returns:
- reason
-
setReason
-
sources
-
addSourcesItem
-
getSources
Get sources- Returns:
- sources
-
setSources
-
params
-
getParams
Get params- Returns:
- params
-
setParams
-
paramsVersion
-
getParamsVersion
Increments on every accepted `PUT .../params` call, including one that resends the current values.- Returns:
- paramsVersion
-
setParamsVersion
-
relay
-
getRelay
Whether this run's signals are being relayed over the WebSocket channel described in the \"Live execution\" guide, right now. This is the effective value — `false` on a `sandbox` run regardless of what was requested at start; matches the requested value once `stage` reaches `live`.- Returns:
- relay
-
setRelay
-
startedAtMs
-
getStartedAtMs
Epoch milliseconds.- Returns:
- startedAtMs
-
setStartedAtMs
-
gate
-
getGate
The sandbox trial's promotion verdict, once one exists. Shape is not yet stabilized as public API — treat as opaque diagnostics.- Returns:
- gate
-
setGate
-
equals
Return true if this LiveRun 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
-