Skip to content
Proud to collaborate with Microsoft for Startups

agents.session-heartbeat-rate ​

Compute heartbeat age and emit a health metric for a running agent session

Compute a rolling heartbeat-health metric for a running session.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-agents
Version1.0

Triggers ​

SourceEndpoint / EventDescription
INTERNALinternal.invocationInternal — called by agents.session-watch when a runner exits

Input Schema ​

FieldTypeRequiredDefaultDescription
session_uuidstringYes——
organization_uuidstringYes——
window_secondsintegerNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
errorstringNo——
error_typestringNo——
failed_atstringNo——
failed_at_statestringNo——
failed_layerjsonNo——
failed_stepstringNo——
failure_reasonstringNo——
healthyjsonNo——
heartbeat_age_secondsjsonNo——
session_uuidjsonNo——
organization_uuidjsonNo——
window_secondsjsonNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—run—
runNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrun—
runcompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "agents.session-heartbeat-rate",
  "initial_data": {
    "session_uuid": "value",
    "organization_uuid": "value"
  }
}