Commit graph

15 commits

Author SHA1 Message Date
Augusto Dwenger J. bf8304f02c Move transformation of rules T array to Analyser interface func
Go does not allow the usage of an interface on a typed array. To
resolve this issue we manually create a new array with the interface type
and add all items to it. This no happens inside the rules sturct
instead of being a single standalone function inside the main package.
2020-11-17 15:05:33 +01:00
Augusto Dwenger c2c7b49334 Fix toml test with wrong fild name for the interval option 2020-11-14 18:44:30 +01:00
Augusto Dwenger af1f189c7b Implement ram rules 2020-11-12 14:27:36 +01:00
Augusto Dwenger b46c001c01 Implement disk rules 2020-11-12 14:27:29 +01:00
Augusto Dwenger 6d93943bf3 Add rate configuration
Ability to configure time between pulling for data.
2020-11-10 16:59:48 +01:00
Augusto Dwenger 138a4f339a Add cpu rule toml parsing 2020-11-10 14:12:29 +01:00
Augusto Dwenger 968bed2c84 Rename config loading parts
This is to have no naming conflicts introducing rule loading.
2020-11-10 12:41:50 +01:00
Augusto Dwenger 7b36460c4c Update toml loader
Refactored the tests.
2020-11-10 12:08:18 +01:00
Augusto Dwenger J. bf2b501a0a Refactor the toml loading function 2020-10-29 18:08:36 +01:00
Augusto Dwenger J. 4c0ad27087 Remove all references to a file loader
It is now a toml loader that reads the input from a reader.
2020-10-29 17:55:03 +01:00
Augusto Dwenger 9d107104cc Add validateion for the Stats and Gotify config 2020-10-29 11:06:48 +01:00
Augusto Dwenger 8580dcbc59 Remove unneeded test files
These files where no longer used because the test implements a reader
that returns as some mock content.
2020-10-29 09:57:05 +01:00
Augusto Dwenger J. ce0cba07ab Simplify the config reading 2020-10-29 09:45:30 +01:00
Augusto Dwenger 28de60a43a Extract the toml file loader to own file with tests 2020-10-26 15:12:18 +01:00
Augusto Dwenger b639319961 Implement a toml configuration file loader 2020-10-26 15:12:17 +01:00