Module: Legion::Gaia::Settings
- Defined in:
- lib/legion/gaia/settings.rb
Class Method Summary collapse
- .default ⇒ Object
- .default_channels ⇒ Object
- .default_notifications ⇒ Object
- .default_partner ⇒ Object
Class Method Details
.default ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/legion/gaia/settings.rb', line 8 def default { connected: false, enabled: true, heartbeat_interval: 1, shutdown: { heartbeat_wait_timeout: 30.0, heartbeat_wait_log_interval: 5.0 }, channels: default_channels, router: { mode: false, allowed_worker_ids: [] }, session: { persistence: 'auto', ttl: 86_400 }, output: { mobile_max_length: 500, suggest_channel_switch: true }, notifications: default_notifications, partner: default_partner } end |
.default_channels ⇒ Object
34 35 36 37 38 39 40 |
# File 'lib/legion/gaia/settings.rb', line 34 def default_channels { cli: { enabled: true }, teams: { enabled: false }, slack: { enabled: false } } end |
.default_notifications ⇒ Object
42 43 44 45 46 47 48 49 50 |
# File 'lib/legion/gaia/settings.rb', line 42 def default_notifications { enabled: true, quiet_hours: { enabled: false, schedule: [] }, priority_override: :urgent, delay_queue_max: 100, max_delay: 14_400 } end |
.default_partner ⇒ Object
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/legion/gaia/settings.rb', line 23 def default_partner { prior_strength: 0.5, r_amount: 0.1, direct_address_weight: 1.5, corroboration_weight: 1.3, partner_threshold: 0.6, identity_decay_rate: 0.002 } end |