Skip to content
logmast

Developer documentation

Heartbeats, jobs, and verification

Receive application-owned signals and detect missing completions.

API v1 · Updated 2026-11-10View MarkdownSource manifest

A check expects a signal from one service and environment. Logmast receives the signal and evaluates its freshness. Your application owns the work and the assertion.

Choose the smallest useful signal

Preset Send a pass when Failure means
Heartbeat The application’s reporting loop reaches the intended point. No expected signal arrived, or the application explicitly reported failure.
Job completion The scheduled job completed successfully. Completion is missing or the job failed. Starting a job is not completion.
Named verification Your application checked a concrete condition. The assertion failed, or an expected periodic result is missing.

Useful assertions include a successful backup restore, invoice reconciliation, or read/write roundtrip. Logmast does not execute these tests.

Configure the expectation

Open Checks → Add a check. Choose service, environment, name, and preset. Periodic checks use an interval plus grace; the interval is 60 seconds to seven days. Grace is zero to seven days. Verification can also be ad hoc, with no continuing health claim.

The first deadline begins when the check is created. Changing its schedule or resuming it starts a new observation window and requires a fresh signal. Pause a check before archiving it in the console.

The same configuration is available through the management API:

{
  "action": "check",
  "change": {
    "operation": "create",
    "definition": {
      "id": "019a14a0-0000-7000-8000-000000000005",
      "service_id": "019a14a0-0000-7000-8000-000000000002",
      "name": "Invoice reconciliation",
      "environment": "production",
      "kind": "verification",
      "interval_seconds": 3600,
      "grace_seconds": 300
    }
  }
}

POST this command to /api/v1/workspaces/{workspace}/control with management authority. Configuration writes are not generally idempotent: inspect the existing check after an uncertain result before resubmitting. Updates, pause/resume, and archive require the current revision.

Submit a result

POST to /api/v1/ingest/check-ins with the service’s ingest credential. Persist a new run_id and observation time before sending, and reuse them unchanged on retry.

{
  "check_id": "019a14a0-0000-7000-8000-000000000005",
  "run_id": "019a14a0-0000-7000-8000-000000000006",
  "observed_at": "2026-10-06T12:00:00Z",
  "outcome": "pass",
  "release": "2026.10.06",
  "duration_ms": 125,
  "correlation_id": "example-operation",
  "occurrence_id": null
}
curl --fail-with-body --config /private/logmast/ingest.curl \
  -H 'Content-Type: application/json' --data-binary @check-in.json \
  https://app.logmast.com/api/v1/ingest/check-ins

Replace illustrative IDs and timestamps with your own. New observations must be within the past 24 hours, allowing at most 60 seconds of future clock skew. Bodies are bounded to 8 KiB. Optional occurrence links must identify retained evidence from the same service and environment.

The response contains receipt_id, duplicate, and applied. A valid durable receipt with applied: false means the report did not advance current state—for example, it was old, delayed beyond its deadline, or received while paused. Reusing an identity with changed content is a conflict. Identity tombstones last 90 days.

Read status honestly

Checks distinguish waiting for a fresh signal, current, overdue, reported failure, paused, monitoring unavailable, and expired evidence. Read the list at /api/v1/workspaces/{workspace}/checks and retained transition/attention history at /api/v1/workspaces/{workspace}/checks/{check}.

An overdue signal is evidence of a missing report, not proof that a customer-facing service is down. Older observations and duplicate retries cannot refresh a check or overwrite newer results. A fresh pass ends a failure episode. Acknowledgment, pause, or an empty error stream does not prove recovery.

Bound attention and cost

One continuous failure creates one attention episode. Service/environment mutes, the 15-minute opening cooldown, and the shared hourly email budget apply. A fresh pass can queue one recovery email for recipients of the opening notification. Muted or suppressed episodes do not release a historical backlog.

Defaults include 20 checks and 50,000 distinct check-ins per UTC day, separately from event allowances. Check ingestion also has a 20-per-second workspace limit. Duplicates are free. Read the catalog and workspace allowance for authoritative limits.

Exhausting the error-event allowance leaves checks available. Expired coverage or exhausted check allowance makes monitoring unavailable; it must not be interpreted as simultaneous service failures. When collection resumes, checks without fresh results start a new observation window.

Search documentation

Search guides, contracts, and agent playbooks.

Search runs in your browser over public documentation.