-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(*): Add usage metrics support for Lapi (#32)
* feat(origin): Keep origin as sent by CrowdSec * feat(config): Add bouncing_level config and use it to cap remediation * fix(duration): Fix parseDurationToSeconds method * feat(metrics): Add remediation to origins count cache item * feat(metrics): Store first LAPI call * style(*): Pass through code format tools * test(unit): Cover new methods * feat(metrics): Implement pushUsageMetrics method * feat(lapi): Change lapi-client version [skip ci] * docs(User guide): Add bouncing_level [skip ci] * comment(remediation): Update php docs [skip ci] * docs(changelog): Update 4.0.0 description * feat(log): Add log for metrics * feat(*): Change getIpRemediation return to return also origin * feat(metrics): Do not update origins count as it should be the bouncer responsibilty * test(*): Add test for metrics * docs(changelog): Prepare next release
- Loading branch information
1 parent
60cec12
commit 7fafa89
Showing
20 changed files
with
1,304 additions
and
378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.