Checks

Get metric guards for a check

Returns the metric guards configured for the check. Returns an empty guards array when none are set — the overwhelmingly common case, and one that adds no cost to processing a ping.

See the MetricGuard schema for how a guard is evaluated and why a tripped guard opens a runaway incident rather than introducing a new cause.

get/api/v1/checks/{id}/guards

Request

  • Base URL: https://app.lastping.dev
  • URL: https://app.lastping.dev/api/v1/checks/{id}/guards
  • Auth: API key in header X-Api-Key

Response

Current metric guards for this check (may be an empty array).

Example response

{
  "guards": [
    {
      "name": "daily spend",
      "path": "cost.usd",
      "window_s": 86400,
      "ceiling": 50
    }
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.