Skip to content

Probes

Probes are hooks that manipulate infrastructure before or after Sessions run. They are typically used for setup and cleanup tasks such as creating queues, flushing caches, scaling pods, truncating tables, or deleting data.

The QaaS.Common.Probes NuGet package ships the built-in probe library. You can author custom probes by implementing BaseProbe<TConfig> from QaaS.Framework.SDK.

Package QaaS.Common.Probes
Source QaaS.Common.Probes
Depends on QaaS.Framework.SDK

Installation

<PackageReference Include="QaaS.Common.Probes" Version="x.x.x" />

Writing Custom Probes

See Write Hooks for the pattern.

Available Hooks

The built-in hooks below are grouped by usage area so it is easier to shortlist the right hook before drilling into configuration details.

RabbitMQ administration

Redis maintenance

  • ExecuteRedisCommand: Executes one Redis command with optional arguments against the selected Redis database, optionally storing the result for later redisResults placeholder reuse.
  • ExecuteRedisCommands: Executes multiple Redis commands sequentially against the selected Redis database, allowing later commands to reuse earlier results through redisResults placeholders and optional looping.
  • EmptyRedisByChunks: Concrete Redis chunk-deletion probe that uses the standard Redis batch probe configuration.
  • FlushAllRedis: Runs Redis FLUSHALL against the configured server to remove keys from every database.
  • FlushDbRedis: Runs Redis FLUSHDB against the selected Redis database.

Databases

SQL maintenance

Cluster orchestration