Syndai Docs

Schedule a cron check-in

PUT
/api/v1/external/coding/customers/{customer_id}/projects/{project_id}/alerts/monitors/{name}

How often a repo app's check-in (POST https://signals.syndai.ai/v1/checkin/<name> with the server credential, or a span with syndai.monitor=<name>) should arrive: every_s (60 s to 31 days; null stops watching) and grace_s (default half the period, at least 5 minutes). A run late past both, or failed and not retried within 5 minutes, fires missed_cron. A hosted app's jobs are watched from its build.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

customer_id*string
Formatuuid
project_id*string
Formatuuid
name*string

Request Body

application/json
  1. body
every_s?integer|null
grace_s?integer|null

Response Body

Request fulfilled, document follows

application/json
  1. response
incidents*array<>
monitors?array<>
rules*array<>
site_id?|null
Example Request
curl -X PUT 'https://api.syndai.ai/api/v1/external/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/alerts/monitors/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "incidents": [    {      "acked_at": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "metric": "string",      "opened_at": "string",      "resolved_at": "string",      "rule_key": "string",      "snapshot": {},      "state": "string",      "summary": "string",      "timeline": [        {}      ],      "title": "string",      "trusted": true    }  ],  "monitors": [    {      "every_s": 0,      "grace_s": 0,      "last_fail_at": "string",      "last_ok_at": "string",      "name": "string"    }  ],  "rules": [    {      "fire_at": 0,      "firing": true,      "key": "string",      "kind": "string",      "last_value": 0,      "metric": "string",      "muted": true,      "params": {},      "title": "string"    }  ],  "site_id": "72771e6a-6f5e-4de4-a5b9-1266c4197811"}
Was this page helpful?