building_metrics (nightly)

Fetch metrics at a building 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 Building_metrics(
  $limit: Int,
  $offset: Int,
  $order_by: [building_metrics_order_by!],
  $where: building_metrics_bool_exp
) {
  building_metrics(
    limit: $limit,
    offset: $offset,
    order_by: $order_by,
    where: $where
  ) {
    building_id
    date_time_end
    date_time_start
    granularity
    group_id
    id
    metric_name
    metric_value
    version
  }
}

Last updated