Support & information center

rtcSetCustomEventsExpectation()

Indicate expected outcome for the specific probe execution. This is used to decide if a test has successfully passed or failed.

Unlike .rtcSetTestExpectation(), this script command enables you to create your own calculation as an asset. Your function will be called at the end of the test run, letting you decide what to do with the metrics collected and determine if the test should pass or fail.

Where .rtcSetCustomExpectation() is used to calculate custom expectations on the whole data series, this command is used to limit the calculation to the timespan between events created using .rtcEvent(). You can also check other assertions and expectation commands available in testRTC.

Arguments

NameTypeDescription
asset-namestringThe name of the asset holding the expectation calculation
start-eventstringStarting point in time for the metrics used for the calculation
end-eventstringStarting point in time for the metrics used for the calculation

Notes

See .rtcSetCustomExpectation() for details and examples.

Was this article helpful?

Related Articles