J.

Jev Log cluster assignment Code Example

Group noisy logs into distinct failure patterns.

ECONNREFUSED postgres:5432

Log ECONNREFUSED postgres:5432
Clusters database connection, invalid input, auth

Which cluster matches this failure?

0% Database connection.
Database connection 88%
Invalid input 8%
New cluster 4%

Let the application database connection.

Code
Conceptual pseudocode — not official Jev SDK syntax
// 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);
}

This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.