fix: docs

This commit is contained in:
2026-04-09 22:00:46 +04:00
parent 79ba63d86b
commit 7877b14f85
2 changed files with 18 additions and 7 deletions
+11 -2
View File
@@ -187,8 +187,17 @@
<p class="endpoint-desc">Enable or disable a monitor without deleting it.</p>
<h3>Ping History</h3>
<div class="endpoint"><span class="method get">GET</span><span class="path">/monitors/:id/pings?limit=100</span></div>
<p class="endpoint-desc">Returns recent ping results for a monitor. Max 1000. Each ping carries an <code>important</code> boolean - true on status transitions and resend ticks (the beats that triggered notifications).</p>
<div class="endpoint"><span class="method get">GET</span><span class="path">/monitors/:id/pings</span></div>
<p class="endpoint-desc">Returns recent ping results for a monitor. Each ping carries an <code>important</code> boolean - true on status transitions and resend ticks (the beats that triggered notifications).</p>
<table>
<thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead>
<tbody>
<tr><td>limit</td><td>number</td><td>Results per page (default 100, max 1000).</td></tr>
<tr><td>skip</td><td>number</td><td>Number of results to skip. Use with <code>limit</code> for pagination.</td></tr>
<tr><td>filter</td><td>string</td><td><code>up</code>, <code>down</code>, or <code>events</code> (state transitions only). Omit for all pings.</td></tr>
<tr><td>before</td><td>number</td><td>Unix timestamp in seconds. Only returns pings older than this.</td></tr>
</tbody>
</table>
</div>
<!-- Notifications -->