Skip to main content
Skip table of contents

CodeBundles

For specific codebundle documentation, please visit the RunWhen Public Codecollection section

At the moment we're using three types of CodeBundles in Runwhen:

  • SLI CodeBundles written in Python/Robot Framework which run on regular intervals (like a cron job), typically every 30-60 seconds to scrape a monitoring system, run a synthetic test or perform some other measurement. Each SLI CodeBundle run ends in a metric that is pushed to the RunWhen metrics cache.

  • SLO CodeBundles written as Prometheus query fragments embedded in YAML files are composed into Prometheus recording and alerting rules. These are run continuously against the metrics stored in the RunWhen metrics cache. SLO query execution outputs remaining error budgets and SLO violation alerts.

  • TaskSet CodeBundles written as Python/Robot Framework which run on demand in response to SLO alerts, REST API calls or Web UI / CLI user interactions. Each CodeBundle runs a series of tasks and outputs a “Run Report” with its results.

Custom Code Bundle Repositories

In addition to a public repository of CodeBundles for many common platforms, you have the ability to create custom CodeBundles (referred to as a CodeCollection). At the moment, these repositories need to be registered with the RunWhen Platform team.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.