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_metrics (nightly)

Fetch metrics at a zone level, where a metric is a measurement or insight with a single result.

metric_name should be set to one of the metrics outlined in Metrics and Features

metric_value is the result.

// query
query zone_metrics(
  $limit: Int,
  $offset: Int,
  $order_by: [zone_metrics_order_by!],
  $where: zone_metrics_bool_exp
) {
  zone_metrics(
    limit: $limit,
    offset: $offset,
    order_by: $order_by,
    where: $where
  ) {
    id
    site_id
    zone_id
    group_id
    date_time_end
    date_time_start
    granularity
    metric_name
    metric_value
  }
}
Previouszone_occupancy (realtime)Nextzone_features (nightly)

Last updated 10 months ago

Was this helpful?