Commit graph

9 commits

Author SHA1 Message Date
1f9be057b6
fix(pkg): fix using ~ as the lower bound for RangeMinMax 2024-07-20 20:33:15 +02:00
ee05d6f004
feat(pkg): add status check method to PerfData 2024-07-20 19:12:59 +02:00
7209591e08
feat(pkg): add Range.Contains() method 2024-07-20 18:42:18 +02:00
6d44df6216
fix(pkg): range parser supports single numbers
These are `[0:X]` ranges, according to the Nagios doc.
2024-07-20 18:17:53 +02:00
7c8c624b17
fix(pkg): fix type issue for rps* constants in perfdata 2024-07-20 18:12:01 +02:00
1a35167eab
feat(pkg): thresholds on perfdata can be cleared using Set...(nil) 2024-07-20 18:11:06 +02:00
14c7a0e5e8
feat(pkg): add parser for perf data ranges 2024-07-20 16:22:22 +02:00
78af496fe9 refactor: make internals easier to test and add unit tests (#2)
All checks were successful
Run tests and linters / test (push) Successful in 44s
Run tests and linters / build (push) Successful in 47s
Run tests and linters / lint (push) Successful in 1m20s
This PR refactors most of the internals to make them easier to test (and also because the names didn't make sense). It adds unit tests for all internal components.

Reviewed-on: #2
Co-authored-by: Emmanuel BENOÎT <tseeker@nocternity.net>
Co-committed-by: Emmanuel BENOÎT <tseeker@nocternity.net>
2024-07-20 10:01:05 +02:00
2fa0e37900 refactor: reorganize project in order to include automation (#1)
All checks were successful
Run tests and linters / test (push) Successful in 43s
Run tests and linters / build (push) Successful in 41s
Run tests and linters / lint (push) Successful in 1m22s
Reviewed-on: #1
Co-authored-by: Emmanuel BENOÎT <tseeker@nocternity.net>
Co-committed-by: Emmanuel BENOÎT <tseeker@nocternity.net>
2024-07-19 22:01:34 +02:00