github.com/crowdsecurity/crowdsec@v1.6.1/pkg/apiserver/tests/alert_sample.json (about)

     1  [
     2      {
     3          "id": 42,
     4          "machine_id": "test",
     5          "capacity": 1,
     6          "created_at": "2020-10-09T10:00:10Z",
     7          "decisions": [
     8              {
     9                  "id": 1,
    10                  "duration": "1h",
    11                  "origin": "test",
    12                  "scenario": "crowdsecurity/test",
    13                  "scope": "Ip",
    14                  "value": "127.0.0.1",
    15                  "type": "ban"
    16              },
    17              {
    18                  "id": 2,
    19                  "duration": "2h",
    20                  "origin": "test",
    21                  "scenario": "crowdsecurity/test",
    22                  "scope": "Ip",
    23                  "value": "127.0.0.1",
    24                  "type": "ban"
    25              },
    26              {
    27                  "id": 3,
    28                  "duration": "3h",
    29                  "origin": "test",
    30                  "scenario": "crowdsecurity/test",
    31                  "scope": "Ip",
    32                  "value": "127.0.0.1",
    33                  "type": "ban"
    34              }
    35          ],
    36          "Events": [
    37              {
    38                  "meta": [
    39                      {
    40                          "key": "test",
    41                          "value": "test"
    42                      }
    43                  ],
    44                  "timestamp": "2020-10-09T10:00:01Z"
    45              }
    46          ],
    47          "events_count": 1,
    48          "labels": [
    49              "test"
    50          ],
    51          "leakspeed": "0.5s",
    52          "message": "test",
    53          "meta": [
    54              {
    55                  "key": "test",
    56                  "value": "test"
    57              }
    58          ],
    59          "scenario": "crowdsecurity/test",
    60          "scenario_hash": "hashtest",
    61          "scenario_version": "v1",
    62          "simulated": false,
    63          "source": {
    64              "as_name": "test",
    65              "as_number": "0123456",
    66              "cn": "france",
    67              "ip": "127.0.0.1",
    68              "latitude": 46.227638,
    69              "logitude": 2.213749,
    70              "range": "127.0.0.1/32",
    71              "scope": "ip",
    72              "value": "127.0.0.1"
    73          },
    74          "start_at": "2020-10-09T10:00:01Z",
    75          "stop_at": "2020-10-09T10:00:05Z"
    76      }
    77  ]