#[non_exhaustive]pub enum Coercion {
String,
Integer,
Timestamp,
UnixSeconds,
Ip,
UtcTimestamp,
}Expand description
A conversion of a source value to an OCSF type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
String
Text; a number becomes its decimal text.
Integer
A whole number, from a number, its decimal text, or its hexadecimal
text after 0x, as Windows writes process and logon identifiers.
Timestamp
An RFC 3339 time, such as 2025-12-25T14:30:27.369114Z, as the
milliseconds since the Unix epoch OCSF stores.
UnixSeconds
Seconds since the Unix epoch, with a fraction if any, such as
auditd’s 1727251200.123, as milliseconds.
Ip
An IP address, v4 or v6, kept as written. Text that is not one, such
as the service name AWS writes where a service made a call, is
reported and kept under unmapped, never written as an address.
UtcTimestamp
An RFC 3339 time written without an offset, such as Microsoft 365’s
2026-09-28T12:00:01, taken as UTC, as milliseconds. A time with an
offset is read with it.