omni::telemetry::kOldEventThresholdSettingLeaf

Defined in omni/structuredlog/Telemetry.h

constexpr const char *const omni::telemetry::kOldEventThresholdSettingLeaf = "oldEventThreshold"

This setting is an optional member of the kTransmitterSetting object.

The number of days before the current time where events in a log start to be considered old. When set to 0 (and this setting isn’t overridden on a per-schema or per-event level), all events are processed as normal and no events are considered old. When set to a non-zero value, any events that are found to be older than this number of days will be processed differently depending on the flags specified globally (kIgnoreOldEventsSettingLeaf and kPseudonymizeOldEventsSettingLeaf), at the schema level (fSchemaFlagIgnoreOldEvents and fSchemaFlagPseudonymizeOldEvents), and at the event level (fEventFlagIgnoreOldEvents and fEventFlagPseudonymizeOldEvents). If no special flags are given, the default behavior is to anonymize old events before transmitting them. This will only override the old events threshold given at the schema (#/oldEventsThreshold) or event (#/events/<eventName>/oldEventsThreshold) if it is a smaller non-zero value than the values given at the lower levels. This defaults to 0 days (ie: disables checking for ‘old’ events).