Vai al contenuto principale
POST
/
api
/
v1
/
atb
/
{id}
/
store-window
Post ATB store window
curl --request POST \
  --url https://app.aegister.com/api/v1/atb/{id}/store-window/ \
  --header 'Content-Type: application/json' \
  --header 'X-Aegister-Token: <api-key>' \
  --data '
{
  "date": 123,
  "start_ts": 123,
  "end_ts": 123,
  "total_requests": 123,
  "malicious_requests": 123,
  "log_messages": [
    {}
  ]
}
'
{
  "error": 0,
  "messages": "<array>",
  "data": {
    "message": "<string>",
    "logs_processed": 123,
    "start_ts": 123,
    "end_ts": 123
  }
}

Autorizzazioni

X-Aegister-Token
string
header
obbligatorio

Parametri del percorso

id
integer
obbligatorio

Corpo

date
number<double>

Timestamp of the log batch.

start_ts
number<double>

Start timestamp of the window.

end_ts
number<double>

End timestamp of the window.

total_requests
integer

Total number of requests in this window.

malicious_requests
integer

Number of malicious requests detected.

log_messages
object[]

Array of traffic log entries with src_ip, dst_ip, action, timestamp, traffic_direction, src_port, dst_port, fw_rule, malicious fields.

Risposta

201 - application/json
error
integer

Any value different from 0 indicates an error.
More details can be found in messages.

Intervallo richiesto: 0 <= x <= 0
Esempio:

0

messages
array

If error is 1, contains zero or more details on the error.

Esempio:
[]
data
object