J.
41 / 100

Log cluster assignment

ECONNREFUSED postgres:5432

Which cluster matches this failure?

Database connection88%
Invalid input8%
New cluster4%
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "log": "ECONNREFUSED postgres:5432",
  "clusters": "database connection, invalid input, auth"
};

const decision = await evaluateDecision({
  state,
  question: "Which cluster matches this failure?",
  options: ["Database connection","Invalid input","New cluster"],
});

// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Database connection"
    && decision.probability >= 0.85) {
  assignLogCluster(decision);
} else {
  queueForReview(decision);
}

Let the application database connection.