struct

Logarithm::CLI::Monitor::Flags

Inherits Struct < Value < Object

Extend the flags struct to include the flag

Constants

DESCRIPTIONS = {} of String => String
SPECS = {"__help__" => {kind: "bool", type: "Bool", default: "false", description: {"--help", "Displays help for the current command."}, short: "nil", long: "help", is_required: true}, "recursive" => {kind: "bool", type: "Bool", default: "false", description: {"--recursive, -r", "Recursively monitor directories for log files"}, short: "r", long: "recursive", is_required: true}, "journald" => {kind: "bool", type: "Bool", default: "false", description: {"--journald, -j", "Include systemd journal in monitoring"}, short: "j", long: "journald", is_required: true}, "since" => {kind: "nil", type: "String", default: "\"\"", description: {"--since, -s (default: \"\")", "Start journal from specific time (e.g., '1 hour ago', '2023-01-01 12:00')"}, short: "s", long: "since", is_required: true}, "data_dir" => {kind: "nil", type: "String", default: "\"\"", description: {"--data-dir, -D (default: \"\")", "Directory to load trained models from (overrides LOGARITHM_DATA_DIR)"}, short: "D", long: "data-dir", is_required: true}, "verbose" => {kind: "bool", type: "Bool", default: "false", description: {"--verbose, -v", "Enable verbose logging"}, short: "v", long: "verbose", is_required: true}, "config" => {kind: "nil", type: "String", default: "\"\"", description: {"--config, -c (default: \"\")", "Config file path"}, short: "c", long: "config", is_required: true}, "stdin" => {kind: "bool", type: "Bool", default: "false", description: {"--stdin, -i", "Read logs from stdin instead of files"}, short: "i", long: "stdin", is_required: true}, "output_format" => {kind: "nil", type: "String", default: "\"human\"", description: {"--output-format, -f (default: \"human\")", "Output format: human, json, csv"}, short: "f", long: "output-format", is_required: true}, "filter" => {kind: "nil", type: "String", default: "\"\"", description: {"--filter, -F (default: \"\")", "Filter logs containing this text"}, short: "F", long: "filter", is_required: true}, "threshold" => {kind: "nil", type: "Float64", default: "0.0", description: {"--threshold, -T (default: 0.0)", "Anomaly detection threshold (0.0 to 1.0)"}, short: "T", long: "threshold", is_required: true}, "log_level" => {kind: "nil", type: "String", default: "\"\"", description: {"--log-level, -L (default: \"\")", "Log level: DEBUG, INFO, WARN, ERROR, FATAL"}, short: "L", long: "log-level", is_required: true}, "encryption_key" => {kind: "nil", type: "String", default: "\"\"", description: {"--encryption-key, -K (default: \"\")", "Encryption key for model files"}, short: "K", long: "encryption-key", is_required: true}, "encryption_fingerprint" => {kind: "nil", type: "String", default: "\"\"", description: {"--encryption-fingerprint, -P (default: \"\")", "Encryption key fingerprint (e.g., SHA-256 hash of the key)"}, short: "P", long: "encryption-fingerprint", is_required: true}} of String => NamedTuple(kind: String, type: String, default: String, description: Tuple(String, String | ::Nil), short: String | ::Nil, long: String, is_required: Bool)

Constructors

new(command : Admiral::Command)

Instance methods

__help__
config
Source
data_dir
Source
encryption_fingerprint
Source
encryption_key
Source
filter
Source
inspect(io)
Source
journald
Source
log_level
Source
output_format
Source
recursive
Source
since
Source
stdin
Source
threshold
Source
validate!(command)
verbose
Source