OMNI_STRUCTURED_LOG_EVENT_ID
Defined in omni/structuredlog/StructuredLogCommon.h
-
OMNI_STRUCTURED_LOG_EVENT_ID(schemaName, eventName, schemaVersion, parserVersion)
Helper macro to piece together a unique event name to generate an ID from.
- Parameters
schemaName – The name of the schema that the event belongs to. This should be the name from the schema’s “#/schemaMeta/clientName” property. This value must be a string literal.
eventName – The full name of the event that the ID is being generated for. This should be the name of one of the objects in the “#/definitions/events/” listing. This value must be a string literal.
schemaVersion – The version of the schema the event belongs to. This should be the value from the schema’s “#/schemaMeta/schemaVersion” property. This value must be a string literal.
parserVersion – The version of the object parser that this event ID is being built for. This should be the value of kParserVersion expressed as a string. This value must be a string literal.
- Returns
A string representing the full name of an event. This string is suitable for passing to OMNI_STRUCTURED_LOG_EVENT_ID() to generate a unique event ID from.