pynenc.conf.config_trigger¶
Module Contents¶
Classes¶
Configuration for the Trigger component. |
|
SQLite-specific configuration for the Trigger component. |
API¶
- class pynenc.conf.config_trigger.ConfigTrigger(config_values: dict[str, Any] | None = None, config_filepath: str | None = None)[source]¶
Bases:
pynenc.conf.config_base.ConfigPynencBaseConfiguration for the Trigger component.
- Variables:
scheduler_interval_seconds (ConfigField[int]) – Interval in seconds for the scheduler to check for time-based triggers. Default is 60 seconds (1 minute).
enable_scheduler (ConfigField[bool]) – Whether to enable the scheduler for time-based triggers. Default is True.
max_events_batch_size (ConfigField[int]) – Maximum number of events to process in a single batch. Default is 100.
event_retention_days (ConfigField[int]) – Number of days to retain event monitoring records. Used as the age threshold by
BaseTrigger.auto_purge_events. Default is 7 days.event_auto_purge_enabled (ConfigField[bool]) – Whether
BaseTrigger.auto_purge_eventsperforms deletions. When False, the wrapper short-circuits without calling the backend purge implementation. Default is True.event_max_records (ConfigField[int]) – Capacity-based retention for event monitoring records. When greater than zero, only the most recent N event records are kept across all codes.
0disables the capacity check. Default is 0.trigger_run_max_records (ConfigField[int]) – Capacity-based retention for trigger-run monitoring records.
0disables the capacity check. Default is 0.
Initialization
- scheduler_interval_seconds¶
‘ConfigField(…)’
- enable_scheduler¶
‘ConfigField(…)’
- max_events_batch_size¶
‘ConfigField(…)’
- event_retention_days¶
‘ConfigField(…)’
- event_auto_purge_enabled¶
‘ConfigField(…)’
- event_max_records¶
‘ConfigField(…)’
- trigger_run_max_records¶
‘ConfigField(…)’
- class pynenc.conf.config_trigger.ConfigTriggerSQLite(config_values: dict[str, Any] | None = None, config_filepath: str | None = None)[source]¶
Bases:
pynenc.conf.config_trigger.ConfigTrigger,pynenc.conf.config_sqlite.ConfigSQLiteSQLite-specific configuration for the Trigger component.
Initialization