Skip to content

Commit b1bf697

Browse files
committed
Added support for anomaly detection and forecasting
1 parent 4eff903 commit b1bf697

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ gem "restforce"
2929
gem "sqlite3"
3030
# gem "tiny_tds"
3131
# gem "activerecord-sqlserver-adapter"
32+
33+
# anomaly detection and forecasting
34+
gem "trend"
35+
# gem "prophet-rb"

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ GEM
257257
thread_safe (0.3.6)
258258
thrift (0.15.0)
259259
trailblazer-option (0.1.2)
260+
trend (0.1.2)
260261
typhoeus (1.4.0)
261262
ethon (>= 0.9.0)
262263
tzinfo (1.2.9)
@@ -294,6 +295,7 @@ DEPENDENCIES
294295
rails (~> 6.0.0)
295296
restforce
296297
sqlite3
298+
trend
297299
tzinfo-data
298300

299301
BUNDLED WITH

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,22 @@ check_schedules:
118118
- "1 hour"
119119
- "5 minutes"
120120

121+
# enable anomaly detection
122+
# note: with trend, time series are sent to https://trendapi.org
123+
# anomaly_checks: trend
124+
125+
# enable forecasting
126+
# note: with trend, time series are sent to https://trendapi.org
127+
# forecasting: trend
128+
121129
# enable map
122130
# mapbox_access_token: <%= ENV["MAPBOX_ACCESS_TOKEN"] %>
131+
132+
# enable uploads
133+
# uploads:
134+
# url: <%= ENV["BLAZER_UPLOADS_URL"] %>
135+
# schema: uploads
136+
# data_source: main
123137
```
124138

125139
Create a `Dockerfile` with:

0 commit comments

Comments
 (0)