Count CrowdSec alerts per day
Returns how many alerts started on each of the last days days, today included, without the community blocklist pulls. An alert counts on the day of its first event, or of when the LAPI stored it when it has no first event. One LAPI request reads at most 2000 alerts. Answers 403 when the server has no CrowdSec machine credentials, CROWDSEC_MACHINE_ID and CROWDSEC_MACHINE_PASSWORD.
session<token>Session cookie authentication.
days?integerDays to count, from 1 to 31. Defaults to 7.
1 <= value <= 317tz?stringAn IANA timezone such as Europe/Oslo. Days start at midnight in it. An unknown zone gets a 400. Defaults to UTC.
"UTC"Request fulfilled, document follows
application/json- response
Alerts per day over the last days, oldest day first.
capped*booleanTrue when the LAPI returned more than 2000 alerts. The counts then cover the 2000 it stored last, and any day can count short, the oldest days most.
days*array<>total*integerThe sum of days.
curl -X GET 'https://geometrikks.example.com/api/v1/crowdsec/alerts/daily'{ "capped": true, "days": [ { "count": 0, "date": "string" } ], "total": 0}List CrowdSec alerts, newest first GET
Returns one page of the LAPI's alert history, newest first, without the community blocklist pulls. Pass the `nextCursor` of one page as `before` to get the next, older one. An IP source without a country from the LAPI gets its place from GeoMetrikks' own traffic, then from the GeoIP database. Answers 403 when the server has no CrowdSec machine credentials, CROWDSEC_MACHINE_ID and CROWDSEC_MACHINE_PASSWORD.
Count the scenarios among recent CrowdSec alerts GET
Returns the scenarios among the newest 500 alerts that match `since` and `kind`, with how many of those alerts each one has, the most first. Scenarios with the same count sort by name. Answers 403 when the server has no CrowdSec machine credentials, CROWDSEC_MACHINE_ID and CROWDSEC_MACHINE_PASSWORD.