← All examples
54 / 100
Jev Incident severity Code Example
Triage service impact before an incident commander reviews it.
Every checkout payment has failed for the last eight minutes.
Service Checkout
Impact All payments fail
Duration Minutes 8
Which severity review should be opened?
0%
Critical.
Let the application critical.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"service": "Checkout",
"impact": "All payments fail",
"duration_minutes": 8
};
const decision = await evaluateDecision({
state,
question: "Which severity review should be opened?",
options: ["Critical","Major","Minor"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Critical"
&& decision.probability >= 0.85) {
pageIncidentCommander(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.