buildEventsScheme

fun buildEventsScheme(groups: Collection<EventLogGroup>, buildNumber: String? = null, recorderDefinitions: List<RecorderDefinition> = emptyList(), recorder: String? = null): EventsScheme

Constructs an events scheme by processing the provided event log groups and recorder definitions.

It's necessary to call the methods RegisteredLogDescriptionsProcessor.resetDescriptions and set RegisteredLogDescriptionsProcessor.descriptionRegistrationEnabled to true before initializing the EventLogGroup to fill in the descriptions of groups and events in the events scheme.

Return

the constructed EventsScheme.

Parameters

groups

the event log groups to include in the schema.

buildNumber

the IDE build number to associate with the schema, or null if not applicable.

recorderDefinitions

the list of recorder definitions that describe recorder-specific fields (IDs, client data, system data). Defaults to an empty list.

recorder

the recorder identifier to associate with each group descriptor, or null if not applicable.

Throws

if any group contains duplicated event IDs, any event contains duplicated fields, or the resulting scheme fails validation.