EXPAND ALL
  • Home

px.script_reference

Create a reference to a PxL script.

Create a reference to a PxL script with specified script arguments. These values are displayed in the UI as a clickable link to execute that PxL script.

Arguments

NameTypeDescription
labelstringA value containing the label text for the output deep link.
scriptstringThe script ID to execute, such as 'px/namespace'.
argsdictionaryA dictionary containing the script argument values.

Returns

string: A stringified JSON representing the script, shown in the UI as a link.

Examples

df.script = px.script_reference(df.namespace, 'px/namespace', {'namespace': df.namespace, 'start_time': '-5m'})

This site uses cookies to provide you with a better user experience. By using Pixie, you consent to our use of cookies.