From 56ede8db6b1f90facbd3baa2599769f4e9f73013 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 20 Jan 2024 09:19:14 +0100 Subject: Json logs --- LibSystemdCli.Models/SystemdJournalLogItem.cs | 83 +++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 LibSystemdCli.Models/SystemdJournalLogItem.cs (limited to 'LibSystemdCli.Models') diff --git a/LibSystemdCli.Models/SystemdJournalLogItem.cs b/LibSystemdCli.Models/SystemdJournalLogItem.cs new file mode 100644 index 0000000..c829378 --- /dev/null +++ b/LibSystemdCli.Models/SystemdJournalLogItem.cs @@ -0,0 +1,83 @@ +using System.Text.Json.Serialization; + +namespace LibSystemdCli; + +public class SystemdJournalLogItem { + [JsonPropertyName("_BOOT_ID")] + public string BootId { get; set; } = null!; + + [JsonPropertyName("__CURSOR")] + public string Cursor { get; set; } = null!; + + [JsonPropertyName("_SYSTEMD_INVOCATION_ID")] + public string SystemdInvocationId { get; set; } = null!; + + [JsonPropertyName("_MACHINE_ID")] + public string MachineId { get; set; } = null!; + + [JsonPropertyName("__SEQNUM")] + public string SequenceNumber { get; set; } = null!; + + [JsonPropertyName("_RUNTIME_SCOPE")] + public string RuntimeScope { get; set; } = null!; + + [JsonPropertyName("__SEQNUM_ID")] + public string SequenceNumberId { get; set; } = null!; + + [JsonPropertyName("_HOSTNAME")] + public string Hostname { get; set; } = null!; + + [JsonPropertyName("SYSLOG_FACILITY")] + public string SyslogFacility { get; set; } = null!; + + [JsonPropertyName("_COMM")] + public string Comm { get; set; } = null!; + + [JsonPropertyName("SYSLOG_IDENTIFIER")] + public string SyslogIdentifier { get; set; } = null!; + + [JsonPropertyName("_TRANSPORT")] + public string Transport { get; set; } = null!; + + [JsonPropertyName("_GID")] + public string Gid { get; set; } = null!; + + [JsonPropertyName("__MONOTONIC_TIMESTAMP")] + public string MonotonicTimestamp { get; set; } = null!; + + [JsonPropertyName("PRIORITY")] + public string Priority { get; set; } = null!; + + [JsonPropertyName("_SYSTEMD_SLICE")] + public string SystemdSlice { get; set; } = null!; + + [JsonPropertyName("_SYSTEMD_UNIT")] + public string SystemdUnit { get; set; } = null!; + + [JsonPropertyName("_STREAM_ID")] + public string StreamId { get; set; } = null!; + + [JsonPropertyName("_CMDLINE")] + public string Cmdline { get; set; } = null!; + + [JsonPropertyName("__REALTIME_TIMESTAMP")] + public string RealtimeTimestamp { get; set; } = null!; + + [JsonPropertyName("_SYSTEMD_CGROUP")] + public string SystemdCgroup { get; set; } = null!; + + [JsonPropertyName("_PID")] + public string Pid { get; set; } = null!; + + [JsonPropertyName("MESSAGE")] + public string Message { get; set; } = null!; + + [JsonPropertyName("_UID")] + public string Uid { get; set; } = null!; + + [JsonPropertyName("_CAP_EFFECTIVE")] + public string CapEffective { get; set; } = null!; + + [JsonPropertyName("_EXE")] + public string Exe { get; set; } = null!; +} \ No newline at end of file -- cgit 1.4.1