Fastly · Example Payload

Fastly Observability Alert Definition Example

CDNEdge CloudEdge ComputeWebAssemblySecurityAIObservabilityAsyncAPIStreamingWebhooksLogging

Fastly Observability Alert Definition Example is an example object payload from Fastly, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "POST",
    "url": "https://api.fastly.com/alerts/definitions",
    "headers": {
      "Fastly-Key": "FASTLY_API_KEY",
      "Content-Type": "application/json"
    },
    "body": {
      "name": "Origin 5xx Spike",
      "service_id": "SU1Z0isxPaozGVKXdv0eY",
      "type": "stats",
      "metric": "origin_status_5xx",
      "evaluation_strategy": {
        "type": "above_threshold",
        "threshold": 100,
        "period": 300,
        "ignore_below": 10
      },
      "integration_ids": ["int-slack-edge-team", "int-pagerduty-oncall"]
    }
  },
  "response": {
    "status": 201,
    "body": {
      "id": "alert-def-N9hL0",
      "name": "Origin 5xx Spike",
      "service_id": "SU1Z0isxPaozGVKXdv0eY",
      "type": "stats",
      "metric": "origin_status_5xx",
      "evaluation_strategy": {
        "type": "above_threshold",
        "threshold": 100,
        "period": 300,
        "ignore_below": 10
      },
      "integration_ids": ["int-slack-edge-team", "int-pagerduty-oncall"],
      "created_at": "2026-05-22T15:30:00Z",
      "updated_at": "2026-05-22T15:30:00Z"
    }
  }
}