WS metric/uptime

Historic uptime

Recording-, location-, or organisation-level uptime over a date range.

Returns historic uptime at recording, location, or organisation level over a date range. Use it for SLA reporting and reliability analysis.

For real-time device status, use Real-time status.

Body parameters

FieldTypeRequiredDescription
startstring (ISO 8601)yesInclusive start timestamp with timezone
endstring (ISO 8601)yesInclusive end timestamp with timezone
entitiesstring[]yesArray of location, organisation, or recording IDs (matching entityType)
entityType"recording" | "location" | "organisation"yesUptime accepts all three. "recording" returns per-camera-feed uptime; "location" and "organisation" aggregate up the tree
facetsstring[]yesWhat to include: segments, summary, aggregates
aggregationPeriodstringyesTime granularity — see aggregation period options
breakdownByDimensionsstring[]noSplit data by: entity
insideRecordingTimesbooleannotrue to restrict to opening hours only. Default false

Example request

{
  "action": "metric",
  "data": {
    "id": "req-up-001",
    "route": "uptime",
    "body": {
      "start": "2024-04-01T00:00:00.000Z",
      "end": "2024-04-30T23:59:59.000Z",
      "entities": ["64a1b2c3d4e5f6a7b8c9d0e4"],
      "entityType": "recording",
      "facets": ["segments", "summary"],
      "aggregationPeriod": "day"
    }
  }
}

Example response

req-up-001|0|0|{
  "segments": [
    { "index": "2024-04-01T00:00:00.000", "recording": "64a1b2c3d4e5f6a7b8c9d0e4", "uptime": 100.0 },
    { "index": "2024-04-02T00:00:00.000", "recording": "64a1b2c3d4e5f6a7b8c9d0e4", "uptime": 98.7 }
  ],
  "summary": [
    { "recording": "64a1b2c3d4e5f6a7b8c9d0e4", "uptime": 99.2 }
  ],
  "meta": {
    "units": {
      "uptime": "percentage"
    }
  }
}

Update frequency

Historic uptime follows the standard Metrics API metric cadence — recent data updates every ~10 minutes; older periods update overnight (see Entries for the schedule).