← All examples
3 / 100
Jev Incident or isolated issue Code Example
Spot support messages that belong to a larger outage.
Every teammate gets a 502.
Message Every teammate gets a 502.
Similar Reports 23
Window 5 minutes
Is this part of an incident?
0%
Link to incident.
Let the application link to incident.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"message": "Every teammate gets a 502.",
"similar_reports": 23,
"window": "5 minutes"
};
const decision = await evaluateDecision({
state,
question: "Is this part of an incident?",
options: ["Link to incident","Investigate locally","Request logs"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Link to incident"
&& decision.probability >= 0.85) {
linkIncident(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.