InnerSpace API
  • Overview
  • Metrics and Features
  • Groups
  • Authentication
  • Granularity
  • API Reference
    • zone_occupancy (realtime)
    • zone_metrics (nightly)
    • zone_features (nightly)
    • site_metrics (nightly)
    • site_features (nightly)
    • building_metrics (nightly)
    • building_features (nightly)
    • zone_occupancy (nightly)
    • groups (nightly) (TBD)
    • buildings (nightly) (TBD)
    • sites (nightly) (TBD)
    • zones (nightly) (TBD)
Powered by GitBook
On this page

Was this helpful?

  1. API Reference

zone_occupancy (realtime)

Realtime zone occupancy

InnerSpace publishes occupancy of a zone in near realtime, typically with a latency of 30s-5mins. Latency is most strongly influenced by the frequency by which the WIFI Infrastructure pushes data to InnerSpace for processing.

Example

// query
query zone_metrics(
  $limit: Int,
  $offset: Int,
  $order_by: [zone_occupancy_order_by!],
  $where: zone_occupancy_bool_exp
) {
  zone_occupancy(
    limit: $limit,
    offset: $offset,
    order_by: $order_by,
    where: $where
  ) {
    site_id
    zone_id
    date_time
    granularity
    occupancy
  }
}

PreviousAPI ReferenceNextzone_metrics (nightly)

Last updated 10 months ago

Was this helpful?