diff --git a/apps/web/src/views/landing.ejs b/apps/web/src/views/landing.ejs index fd6cba7..30a75e7 100644 --- a/apps/web/src/views/landing.ejs +++ b/apps/web/src/views/landing.ejs @@ -552,6 +552,21 @@
$ curl -X POST https://pingql.com/api/register + +{ "key": "abcd-1234-efgh-5678" }+
$ curl -X POST https://pingql.com/api/monitors \ - -H "X-Key: XXXX-XXXX-XXXX-XXXX" \ + -H "X-Key: abcd-1234-efgh-5678" \ -d '{ + "name": "Production API", "url": "https://api.example.com/health", - "interval": 60, + "interval_s": 60, "query": { "status": { "$lt": 400 }, - "$json": { - "$.ok": { "$eq": true } - } + "$json": { "$.ok": { "$eq": true } } } }' -// → 201 Created -{ "id": "mon_a1b2c3", "status": "active" }-
$ curl https://pingql.com/api/monitors/mon_a1b2c3 \ - -H "X-Key: XXXX-XXXX-XXXX-XXXX" - { - "id": "mon_a1b2c3", + "id": "a1b2c3d4e5f67890", + "name": "Production API", "url": "https://api.example.com/health", - "status": "up", - "lastCheck": "2024-01-15T10:30:00Z", - "responseTime": 142, - "uptime30d": 99.97 + "enabled": true }