feat(policy): add system load average as checker input

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-04-28 15:44:12 -04:00
parent fd058964fa
commit b43df36f7d
5 changed files with 94 additions and 0 deletions

View File

@@ -28,6 +28,10 @@ func NewEnvironment() (*cel.Env, error) {
cel.Variable("query", cel.MapType(cel.StringType, cel.StringType)),
cel.Variable("headers", cel.MapType(cel.StringType, cel.StringType)),
cel.Variable("load_1m", cel.DoubleType),
cel.Variable("load_5m", cel.DoubleType),
cel.Variable("load_15m", cel.DoubleType),
// Functions exposed to CEL programs:
)
}