← Integration Academy

Production Pulse · 1 / 8

Start with a heartbeat

Begin Production Pulse with a document, an actor and a heartbeat timer, composed across three small files. Each later lesson extends this same integration.

YOUR TASK

Make this happen

4 steps
  1. Keep the integration identity com.academy.monitor, version 1.0.0 and SDK 2.0.

  2. Add integration_actor_timer.heartbeat to the timers list in actor.cococo.

  3. Add integration_actor_timer.heartbeat with name heartbeat, schedule { every = "5m" } and source "return { alive = true }".

  4. Choose Check solution and pass all local model-schema checks.

Read the starter files

main.cococo

integration_document "monitor" {
  integrationId = "com.academy.monitor"
  sdkVersion = "2.0"
  version = "1.0.0"
  description = "A small heartbeat integration"
  actor = integration_actor.monitor
}

actor.cococo

integration_actor "monitor" {
  timers = []
}

timer.cococo

integration_actor_timer "heartbeat" {
  name = "heartbeat"
  # TODO: add schedule — see the task above.
  # TODO: add source — see the task above.
}
Supplied scripts and pinned contracts (read-only)

These fixtures explain the runtime behaviour being composed. They are included in validation but are not executed. The generated API definition is supplied, not an XML authoring task.

scripts/heartbeat.lua

return { alive = true }