Package com.qtsurfer.api.client.model
Class LiveRunStats
java.lang.Object
com.qtsurfer.api.client.model.LiveRunStats
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.24.0")
public class LiveRunStats
extends Object
What a run has been doing, as of its last snapshot. The platform refreshes it about once a minute while the run is being executed, so `opsPerSecond` is an average over that interval, not an instantaneous rate.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this LiveRunStats object is equal to o.Epoch milliseconds when these counters were last written.How many distinct instruments the run has received an update for.Updates accepted per second over the last refresh interval.Updates of instruments the run has accepted since it started executing.Epoch milliseconds of the last snapshot in which `processed` had grown.getStale()`true` when the run is meant to be running (`desired` is `RUNNING`) and its counters have not been refreshed for several refresh intervals: the platform has stopped updating them, which is worth checking against `state`.inthashCode()instrumentsSeen(Integer instrumentsSeen) opsPerSecond(BigDecimal opsPerSecond) progressedAtMs(Long progressedAtMs) voidvoidsetInstrumentsSeen(Integer instrumentsSeen) voidsetOpsPerSecond(BigDecimal opsPerSecond) voidsetProcessed(Long processed) voidsetProgressedAtMs(Long progressedAtMs) voidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_PROCESSED
- See Also:
-
JSON_PROPERTY_OPS_PER_SECOND
- See Also:
-
JSON_PROPERTY_INSTRUMENTS_SEEN
- See Also:
-
JSON_PROPERTY_AS_OF_MS
- See Also:
-
JSON_PROPERTY_PROGRESSED_AT_MS
- See Also:
-
JSON_PROPERTY_STALE
- See Also:
-
-
Constructor Details
-
LiveRunStats
public LiveRunStats()
-
-
Method Details
-
processed
-
getProcessed
Updates of instruments the run has accepted since it started executing. It can start again from zero if the run is restarted.- Returns:
- processed
-
setProcessed
-
opsPerSecond
-
getOpsPerSecond
Updates accepted per second over the last refresh interval. `0` when none arrived.- Returns:
- opsPerSecond
-
setOpsPerSecond
-
instrumentsSeen
-
getInstrumentsSeen
How many distinct instruments the run has received an update for.- Returns:
- instrumentsSeen
-
setInstrumentsSeen
-
asOfMs
-
getAsOfMs
Epoch milliseconds when these counters were last written.- Returns:
- asOfMs
-
setAsOfMs
-
progressedAtMs
-
getProgressedAtMs
Epoch milliseconds of the last snapshot in which `processed` had grown. Absent until the run has processed anything. A run fed by a source that updates rarely (a funding rate, for example) can stay flat for hours: that is how such a run behaves, not a fault.- Returns:
- progressedAtMs
-
setProgressedAtMs
-
stale
-
getStale
`true` when the run is meant to be running (`desired` is `RUNNING`) and its counters have not been refreshed for several refresh intervals: the platform has stopped updating them, which is worth checking against `state`. `false` otherwise. A run whose `processed` is flat is not stale; `progressedAtMs` is how to tell it apart.- Returns:
- stale
-
setStale
-
equals
Return true if this LiveRunStats 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
-