From 4a14c82d9e72d47a9a71b1b023007fc9c136a253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serge=20H=C3=A4nni?= Date: Thu, 27 Aug 2026 08:11:14 +0200 Subject: [PATCH] Add more attributes to aggregations and buckets --- .../operator/reporting/report_aggregation.rb | 4 +++ .../reporting/report_aggregation_bucket.rb | 34 +++++++++++++++++-- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/lib/ioki/model/operator/reporting/report_aggregation.rb b/lib/ioki/model/operator/reporting/report_aggregation.rb index 669dde32..5825ba55 100644 --- a/lib/ioki/model/operator/reporting/report_aggregation.rb +++ b/lib/ioki/model/operator/reporting/report_aggregation.rb @@ -17,6 +17,10 @@ class ReportAggregation < Base on: :read, type: :string + attribute :localized_reference_timestamp, + on: :read, + type: :string + attribute :visualization, on: :read, type: :string diff --git a/lib/ioki/model/operator/reporting/report_aggregation_bucket.rb b/lib/ioki/model/operator/reporting/report_aggregation_bucket.rb index 7151567b..5bade254 100644 --- a/lib/ioki/model/operator/reporting/report_aggregation_bucket.rb +++ b/lib/ioki/model/operator/reporting/report_aggregation_bucket.rb @@ -9,23 +9,51 @@ class ReportAggregationBucket < Base on: :read, type: :string + attribute :col, + on: :read, + type: :string + + attribute :default_preset, + on: :read, + type: :string + attribute :granularities, on: :read, type: :array + attribute :localized_col, + on: :read, + type: :string + attribute :localized_granularities, on: :read, type: :array - attribute :presets, + attribute :localized_on, on: :read, - type: :array + type: :string attribute :localized_presets, on: :read, type: :array - attribute :default_preset, + attribute :localized_row, + on: :read, + type: :string + + attribute :on, + on: :read, + type: :string + + attribute :periodic, + on: :read, + type: :boolean + + attribute :presets, + on: :read, + type: :array + + attribute :row, on: :read, type: :string end