Get events data --- parameters: - in: path name: event_type schema: type: string required: true enum: - honeypot - network - credential - file - data - pca
(event_type)
| 419 | |
| 420 | @app.route("/api/events/explore/<event_type>", methods=["GET"]) |
| 421 | def get_events_data(event_type): |
| 422 | """ |
| 423 | Get events data |
| 424 | --- |
| 425 | parameters: |
| 426 | - in: path |
| 427 | name: event_type |
| 428 | schema: |
| 429 | type: string |
| 430 | required: true |
| 431 | enum: |
| 432 | - honeypot |
| 433 | - network |
| 434 | - credential |
| 435 | - file |
| 436 | - data |
| 437 | - pcap |
| 438 | - in: query |
| 439 | name: date |
| 440 | schema: |
| 441 | type: date |
| 442 | required: false |
| 443 | description: Date to filter records for particular day |
| 444 | - in: query |
| 445 | name: module_name |
| 446 | schema: |
| 447 | type: string |
| 448 | required: false |
| 449 | enum: |
| 450 | - ftp/strong_password |
| 451 | - ftp/weak_password |
| 452 | - http/basic_auth_strong_password |
| 453 | - http/basic_auth_weak_password |
| 454 | - ics/veeder_root_guardian_ast |
| 455 | - smtp/strong_password |
| 456 | - ssh/strong_password |
| 457 | - ssh/weak_password |
| 458 | description: one of the module names supported by the framework |
| 459 | - in: query |
| 460 | name: filter |
| 461 | schema: |
| 462 | type: string |
| 463 | example: ip_dest=192.16.1.1&ip_src=192.168.0.* |
| 464 | description: filter on serverside by query (regex) |
| 465 | required: false |
| 466 | - in: query |
| 467 | name: skip |
| 468 | schema: |
| 469 | type: number |
| 470 | example: 0 |
| 471 | description: skip the number of records from start |
| 472 | required: false |
| 473 | - in: query |
| 474 | name: limit |
| 475 | schema: |
| 476 | type: number |
| 477 | example: 100 |
| 478 | description: number of records to fetch |
nothing calls this directly
no test coverage detected