Class: Flightdeck::Metrics::Series::Window

Inherits:
Struct
  • Object
show all
Defined in:
app/models/flightdeck/metrics/series.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bucket_secondsObject

Returns the value of attribute bucket_seconds

Returns:

  • (Object)

    the current value of bucket_seconds



12
13
14
# File 'app/models/flightdeck/metrics/series.rb', line 12

def bucket_seconds
  @bucket_seconds
end

#durationObject

Returns the value of attribute duration

Returns:

  • (Object)

    the current value of duration



12
13
14
# File 'app/models/flightdeck/metrics/series.rb', line 12

def duration
  @duration
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



12
13
14
# File 'app/models/flightdeck/metrics/series.rb', line 12

def key
  @key
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



12
13
14
# File 'app/models/flightdeck/metrics/series.rb', line 12

def label
  @label
end

#subtitleObject

Returns the value of attribute subtitle

Returns:

  • (Object)

    the current value of subtitle



12
13
14
# File 'app/models/flightdeck/metrics/series.rb', line 12

def subtitle
  @subtitle
end

#tick_everyObject

Returns the value of attribute tick_every

Returns:

  • (Object)

    the current value of tick_every



12
13
14
# File 'app/models/flightdeck/metrics/series.rb', line 12

def tick_every
  @tick_every
end

#tick_formatObject

Returns the value of attribute tick_format

Returns:

  • (Object)

    the current value of tick_format



12
13
14
# File 'app/models/flightdeck/metrics/series.rb', line 12

def tick_format
  @tick_format
end

Instance Method Details

#bucket_countObject



14
# File 'app/models/flightdeck/metrics/series.rb', line 14

def bucket_count = (duration / bucket_seconds).to_i