Skip to main content

WaitForKey

This Script is part of the xMatters Pack.#

Waits for a context value to appear in the incident or 10 loops and exits.

Script Data#


NameDescription
Script Typepython
Tagsutility

Dependencies#


This script uses the following commands and scripts.

  • sleep

Inputs#


Argument NameDescription
context_keyThe incident context key to check for value
iterationsThe maximum number of loops (and seconds) to wait before exiting if the context isn't found.

Outputs#


There are no outputs for this script.