Functions
findAttribute
- findAttribute(logs: readonly Log[], eventType: string, attrKey: string): Attribute
Parameters
logs: readonly Log[]
eventType: string
attrKey: string
parseEvent
- parseEvent(input: unknown): Event
parseLog
- parseLog(input: unknown): Log
parseLogs
- parseLogs(input: unknown): readonly Log[]
Parameters
Returns readonly Log[]
parseRawLog
- parseRawLog(input?: string): readonly Log[]
Parameters
Returns readonly Log[]
Searches in logs for the first event of the given event type and in that event for the first first attribute with the given attribute key.
Throws if the attribute was not found.