add: customize csv and display fmt from profile #165

This commit is contained in:
DastInDark
2022-07-24 19:34:02 +09:00
parent 830644acee
commit b7264082e8
5 changed files with 51 additions and 123 deletions

View File

@@ -20,6 +20,8 @@ use std::path::Path;
use std::sync::Mutex;
use termcolor::{BufferWriter, ColorChoice};
use super::utils::format_time;
#[derive(Debug, Clone)]
pub struct DetectInfo {
pub filepath: String,
@@ -33,6 +35,7 @@ pub struct DetectInfo {
pub tag_info: String,
pub record_information: Option<String>,
pub record_id: Option<String>,
pub ext_field: LinkedHashMap<String, String>,
}
pub struct AlertMessage {}