Incident Exposure Minutes

Union overlapping incident windows per service segment and calculate affected seat-minutes without double-counting concurrent reports.

Custom requests cost 0.04 USDC on Base.

Download example JSON · OpenAPI · Source and usage

Pay with a browser wallet · Open example in checkout

POST a JSON request to /incident-exposure-minutes/v1/check with an x402 V2 client.

Worked example

Request

{
  "segments": [
    {
      "id": "north",
      "seats": 20
    },
    {
      "id": "south",
      "seats": 3
    }
  ],
  "intervals": [
    {
      "segment": "north",
      "start_minute": 15,
      "end_minute": 25
    },
    {
      "segment": "north",
      "start_minute": 10,
      "end_minute": 20
    },
    {
      "segment": "south",
      "start_minute": 12,
      "end_minute": 13
    }
  ]
}

Result

{
  "total_seat_minutes": 303,
  "segments": [
    {
      "id": "north",
      "affected_minutes": 15,
      "seat_minutes": 300
    },
    {
      "id": "south",
      "affected_minutes": 1,
      "seat_minutes": 3
    }
  ]
}

Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter