{
  "openapi": "3.0.1",
  "info": {
    "title": "Status Page SLA Monitor: Uptime & Incidents",
    "description": "Uptime, incidents and a monthly SLA table from the public status pages of SaaS vendors (Atlassian Statuspage, incident.io, Better Stack, Instatus). Impact-weighted availability per component, MTTR and changes since the last run. Computed from vendor-published incidents, not independent monitoring.",
    "version": "1.0",
    "x-build-id": "jbukCbhYEsA13g4kt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/offerastudio~status-page-sla-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-offerastudio-status-page-sla-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/offerastudio~status-page-sla-monitor/runs": {
      "post": {
        "operationId": "runs-sync-offerastudio-status-page-sla-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/offerastudio~status-page-sla-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-offerastudio-status-page-sla-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "pages"
        ],
        "properties": {
          "pages": {
            "title": "Status pages or vendor domains",
            "maxItems": 300,
            "type": "array",
            "description": "Up to 300 entries. Each is a status page URL (https://www.githubstatus.com), a status host (status.openai.com) or a vendor domain (github.com). For a domain the Actor tries status.<domain> and the status links on the vendor's home page (footer first). Supported: Atlassian Statuspage, incident.io, Better Stack and Instatus pages.",
            "items": {
              "type": "string"
            }
          },
          "lookbackDays": {
            "title": "Look-back window",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Incidents and availability are computed for this many days up to now (1 to 90). A page that lists only its latest incidents (Atlassian: 50, incident.io: 25) may not reach back that far; the row says so (windowCoverage, coverageNote) and the figures cover the days it does reach.",
            "default": 30
          },
          "componentFilter": {
            "title": "Component filter (optional)",
            "type": "array",
            "description": "Only report on components whose name or group contains one of these words (case-insensitive), for example API or Actions. Incidents that name no affected component are left out when a filter is set.",
            "items": {
              "type": "string"
            }
          },
          "weightMajorOutage": {
            "title": "Downtime weight: major outage",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Share of the time that counts as downtime during a major outage (0 to 1).",
            "default": 1
          },
          "weightPartialOutage": {
            "title": "Downtime weight: partial outage",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Share of the time that counts as downtime during a partial outage (0 to 1).",
            "default": 0.5
          },
          "weightDegraded": {
            "title": "Downtime weight: degraded performance",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Share of the time that counts as downtime during degraded performance (0 to 1).",
            "default": 0
          },
          "mode": {
            "title": "Output",
            "enum": [
              "report",
              "changes"
            ],
            "type": "string",
            "description": "Full report: one row per page with everything, plus a changes section when an earlier snapshot exists. Changes only: a row only for pages where something changed since the last run (and the first snapshot of each page).",
            "default": "report"
          },
          "includeUnchanged": {
            "title": "Include unchanged pages (changes mode)",
            "type": "boolean",
            "description": "In \"changes only\" mode, also add a row for pages with no changes. Off by default so alerts only fire on changes. It is switched on in the example input only so a first try shows a row for every page.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "pattern": "^[A-Za-z0-9 _-]{0,48}$",
            "type": "string",
            "description": "Name of this monitor's snapshot store (letters, digits, spaces, - and _). Runs with the same name share snapshots. Leave empty to derive it from the page list; then adding or removing a page starts a new monitor."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}