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

site_metrics (nightly)

Fetch metrics at a site level (typically a floor), 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 Site_metrics(
  $limit: Int,
  $offset: Int,
  $order_by: [site_metrics_order_by!],
  $where: site_metrics_bool_exp
) {
  site_metrics(
    limit: $limit,
    offset: $offset,
    order_by: $order_by,
    where: $where
  ) {
    date_time_end
    date_time_start
    granularity
    group_id
    id
    metric_name
    metric_value
    site_id
  }
}
Previouszone_features (nightly)Nextsite_features (nightly)

Last updated 10 months ago

Was this helpful?