Storage control

Control storage of the system

Common objects

fs_entry: * format: json object * fields: * key: hash: string or null * path: path to pcap on filesystem: string * file_size: size of the pcap file in bytes: 64-bit unsigned * start_ts: epoch (nanoseconds) to first packet in the pcap file: 64-bit unsigned or null

Paging response: * format: json object * fields: * page: current page * page_count: number of pages * total_count: total number of results * data: array of fs_entry object * query arguments * page: selects the page * results_per_page: sets the maximum number of entries displayed per page, default: 5000

API

Get size of metadata partition on the disk (/data partition) * path: /storage/metadata * method: GET * data: json { "capacity_bytes": 2343242, "occupied_bytes:": 3243 } * capacity_bytes - size of the partition * occupied_bytes - how much of the partition is occupied

Display storage information * path: /storage/data * method: GET * data * format: json object * fields: * disk_usage * used: used space in bytes * total: total space in bytes * cleanup_in_progress: true if automatic cleanup is in progress * enable_metadata_cleanup: if set to true, metadata will be cleaned up together with the files as part of the automatic cleanup process; if false, only files are getting removed * age_cleanup: change parameters of automatic files/meta cleanup * mode: files, meta, both, disabled * max_age_hours: files/meta older than max_age_hours are selected for the deletion * constraint: 5 < max_age_hours < 260000 * check_interval_hours: how often age of files/meta is checked against the max_age_hours * constraint: 0 < check_interval_hours < 86400 * example: json { "disk_space": { "total": 17056493568, "used": 15184343040 }, "cleanup_in_progress": false, "enable_automatic_metadata_cleanup": true, "age_cleanup": { "mode": "both", "max_age_hours": 7620, "check_interval_hours": 6 } }

Back to Index