COLLAPSE ALL
  • Home
  • About Pixie
    • Pixie Overview
    • Data Sources
    • How Pixie uses eBPF
    • Roadmap
    • FAQ
    • Troubleshooting
  • Installing Pixie
    • Requirements
  • Using Pixie
    • Using the Live UI
    • Using the CLI
    • Using the API
  • Tutorials
  • Reference
    • Architecture
    • PxL
      • Compile Time Functions
        • px.days
        • px.equals_any
        • px.format_duration
        • px.hours
        • px.make_upid
        • px.microseconds
        • px.milliseconds
        • px.minutes
        • px.now
        • px.parse_duration
        • px.parse_time
        • px.script_reference
        • px.seconds
        • px.strptime
        • px.uint128

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.