← All examples
56 / 100
Jev Runbook selection Code Example
Choose a response guide from a compact incident snapshot.
Queue age increasing; workers healthy; upstream throttled.
Symptom Queue age increasing; workers healthy; upstream throttled.
Runbooks backpressure, restart workers, database recovery
Which runbook should the operator inspect first?
0%
Backpressure.
Let the application backpressure.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"symptom": "Queue age increasing; workers healthy; upstream throttled.",
"runbooks": "backpressure, restart workers, database recovery"
};
const decision = await evaluateDecision({
state,
question: "Which runbook should the operator inspect first?",
options: ["Backpressure","Restart workers","Database recovery"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Backpressure"
&& decision.probability >= 0.85) {
suggestRunbook(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.