Module: Legion::Gaia::Settings
- Defined in:
- lib/legion/gaia/settings.rb
Class Method Summary collapse
- .default ⇒ Object
- .default_anticipation ⇒ Object
- .default_channels ⇒ Object
- .default_gut ⇒ 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 22 23 |
# 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, gut: default_gut, anticipation: default_anticipation } end |
.default_anticipation ⇒ Object
52 53 54 55 56 |
# File 'lib/legion/gaia/settings.rb', line 52 def default_anticipation { actionable_threshold: 0.65 } end |
.default_channels ⇒ Object
36 37 38 39 40 41 42 |
# File 'lib/legion/gaia/settings.rb', line 36 def default_channels { cli: { enabled: true }, teams: { enabled: false }, slack: { enabled: false } } end |
.default_gut ⇒ Object
44 45 46 47 48 49 50 |
# File 'lib/legion/gaia/settings.rb', line 44 def default_gut { latency_budget_ms: 50.0, correction_min_strength: 0.6, correction_trace_limit: 20 } end |
.default_notifications ⇒ Object
58 59 60 61 62 63 64 65 66 |
# File 'lib/legion/gaia/settings.rb', line 58 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
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/legion/gaia/settings.rb', line 25 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 |