- Require Ruby 2.4+
-
[Fixes #41] Fix query building with empty arrays in
where
clause (@dimiii)BREAKING:
where.not
now returns non-empty result for an empty array. -
Support of year alias in queries (@dimiii)
-
[Fixes #40] Avoid adding precision suffix to write queries. (@palkan)
-
[Fixes #35] Support time duration suffix and handle
's'
and'ms'
precisions. (@palkan)BREAKING:
Time
-like value are only typecasted fortime
key.
- Support exclusive ranges as
where
arguments. (@MPursche)
# range including the end
where(a: 1..4)
#=> ... WHERE a >= 1 AND a <= 4
#range excluding the end
where(a: 1...4)
#=> ... WHERE a >= 1 AND a < 4
-
[Fixes #31] Fix bug with empty arrays in
where
clause -
Introduce
Relation#none
method
- Add ability to specify per-metrics retention-policy, precision and database
Now you can override default configuration for a specific metrics class:
class CustomMetrics < Influxer::Metrics
set_database "custom_db"
set_retention_policy :yearly
set_precision "ms"
end
- [Fixes #30] Fix writing points with custom retention policy
- Update Rubocop configuration and add Rubocop Rake task to defaults
- Fix missing
#delegate
in ActiveRecord 3.2
- Add
set_retention_policy
method
- Fix
where.not
with ranges typo
- Fix bug with query logging
- Fix whitespace around operators
- Add
Relation#from
method to redefine series - Handle nil values for tags in #where clause
- Update
timestamp
support - Add
epoch
method
- Rename default
time
attribute totimestamp
- Parse fanout queries points to handle fanouted values
- Add Rubocop config and cleanup code style
- Add anyway_config
- Add
empty?
method
- Add logs
- Add
foreign_key
param tohas_metrics
options
- Fix
Relation#to_a
(now returns array of points correctrly) - Fix fanout queries with array args (now use
merge(Regexp)
)
- Add
time
method to Relation to group by time with constants (:hour
,:day
, etc) and fill support - Series names now properly quoted with double-quotes
- Using regexps, ranges and arrays within
where
clause where.not(...)
support- Add
past
andsince
methods - Add
merge
method and support for regexp series - Add
delete_all
support - Add cache support (using
Rails.cache
) - Scopes (default and named)
- Support for fanout series