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
  }
}

Last updated