Package org.mockserver.slo
Class SloWindow
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.slo.SloWindow
The time window over which an
SloCriteria is evaluated. Two mutually
exclusive forms are supported (v1):
SloWindow.Type.EXPLICIT— an absolute[fromEpochMillis, toEpochMillis]range. Both bounds are required.SloWindow.Type.LOOKBACK— a trailing window oflookbackMillisending at evaluation time (now - lookbackMillisup tonow), resolved by theSloEvaluatoragainst the controllable clock.
The window is always already-elapsed: the evaluator never blocks waiting for the window to close. An EXPERIMENT-relative window is intentionally deferred.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SloWindowexplicit(long fromEpochMillis, long toEpochMillis) getType()static SloWindowlookback(long lookbackMillis) withFromEpochMillis(Long fromEpochMillis) withLookbackMillis(Long lookbackMillis) withToEpochMillis(Long toEpochMillis) withType(SloWindow.Type type) Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode
-
Constructor Details
-
SloWindow
public SloWindow()
-
-
Method Details
-
explicit
-
lookback
-
getType
-
withType
-
getFromEpochMillis
-
withFromEpochMillis
-
getToEpochMillis
-
withToEpochMillis
-
getLookbackMillis
-
withLookbackMillis
-