create_gas_monitor_config_from_env
Documentation for eth_defi.gmx.gas_monitor.create_gas_monitor_config_from_env function.
- create_gas_monitor_config_from_env()
Create GasMonitorConfig from environment variables.
Environment variables: - GMX_GAS_WARNING_THRESHOLD_USD: Warning threshold in USD (default: 10.0) - GMX_GAS_CRITICAL_THRESHOLD_USD: Critical threshold in USD (default: 2.0) - GMX_GAS_MONITOR_ENABLED: Whether monitoring is enabled (default: true) - GMX_GAS_ESTIMATE_BUFFER: Gas estimate buffer multiplier (default: 1.2) - GMX_GAS_RAISE_ON_CRITICAL: Whether to raise on critical (default: true)
- Returns
Configured GasMonitorConfig instance
- Return type