gemhome / fnordmetric

(possible new home for) FnordMetric is a redis/ruby-based realtime Event-Tracking app
0 stars 1 forks source link

Wrong example in Full DSL documentation #67

Open bf4 opened 10 years ago

bf4 commented 10 years ago

Issue by JangoSteve Monday Aug 19, 2013 at 06:03 GMT Originally opened as https://github.com/paulasmuth/fnordmetric/issues/160


The Classic Full DSL example includes the following gauges and widget:

  gauge :age_distribution_female_monthly,
    :tick => 1.month.to_i,
    :three_dimensional => true,
    :title => "Age Distribution (female) monthly"

  gauge :age_distribution_male_monthly,
    :tick => 1.month.to_i,
    :three_dimensional => true,
    :title => "Age Distribution (male) monthly"

  gauge :age_distribution_female_daily,
    :tick => 1.day.to_i,
    :three_dimensional => true,
    :title => "Age Distribution (female) daily"

[clipped]

  widget 'Demography', {
    :title => "Age Distribution: Female Users",
    :type => :toplist,
    :width => 50,
    :autoupdate => 5,
    :gauges => [ :age_distribution_female_monthly, :age_distribution_female_daily ]
  }

But that widget I believe would error out, because it includes gauges with different ticks, which is not allowed.