Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fabriziosalmi/proxmox-lxc-autoscale
/ endpoints
Endpoints
109 in github.com/fabriziosalmi/proxmox-lxc-autoscale
⨍
Functions
603
◇
Types & classes
139
↳
Endpoints
109
Route
get_full_log
app.route('/get_full_log')
lxc_autoscale/ui/lxc_autoscale_ui.py:None
Route
get_scaling_log
app.route('/get_scaling_log')
lxc_autoscale/ui/lxc_autoscale_ui.py:None
Route
index
app.route('/')
lxc_autoscale/ui/lxc_autoscale_ui.py:None
Route
test_aggressive
patch('scaling_manager._current_hour', return_value=14)
tests/test_scaling_manager.py:None
Route
test_all_methods_fail
patch('lxc_utils._read_cgroup_memory', new_callable=AsyncMock, return_value=None)
tests/test_coverage_boost.py:None
Route
test_applies_cpu_pinning
patch.object(sm, 'run_command', new_callable=AsyncMock, return_value="")
tests/test_scaling_full.py:None
Route
test_boost_applied_on_saturation
patch('scaling_manager.run_command', new_callable=AsyncMock, return_value="OK")
tests/test_boost.py:None
Route
test_boost_revert_on_expiry
patch('scaling_manager.run_command', new_callable=AsyncMock, return_value="OK")
tests/test_boost.py:None
Route
test_builds_message
patch('scaling_manager.log_json_event', new_callable=AsyncMock)
tests/test_scaling_manager.py:None
Route
test_clone
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backends.py:None
Route
test_clone_error
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Route
test_collects_data_successfully
patch.object(lxc_utils, 'get_memory_usage', new_callable=AsyncMock, return_value=55.0)
tests/test_resource_manager.py:None
Route
test_conservative
patch('scaling_manager._current_hour', return_value=14)
tests/test_scaling_manager.py:None
Route
test_decrease_memory
patch('scaling_manager.run_command', new_callable=AsyncMock)
tests/test_scaling_manager.py:None
Route
test_detect_non_hybrid
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Route
test_empty_containers
patch.object(lxc_utils, 'get_containers', new_callable=AsyncMock, return_value=[])
tests/test_resource_manager.py:None
Route
test_empty_output
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Route
test_energy_mode_reduces
patch.object(sm, 'is_off_peak', return_value=True)
tests/test_scaling_full.py:None
Route
test_error_event_sends_notification
patch('scaling_manager.log_json_event', new_callable=AsyncMock)
tests/test_scaling_manager.py:None
Route
test_error_handling
patch('backends.api.ProxmoxAPI')
tests/test_coverage_boost.py:None
Route
test_explicit_range
patch.object(lxc_utils, 'detect_cpu_topology', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Route
test_failed_command_returns_none
patch('lxc_utils.asyncio.create_subprocess_exec')
tests/test_lxc_utils.py:None
Route
test_filters_invalid_ids
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Route
test_gathers_all_containers
patch.object(resource_manager, 'collect_data_for_container', new_callable=AsyncMock)
tests/test_resource_manager.py:None
Route
test_get_config_empty
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backend_factory.py:None
Route
test_get_container_config
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backends.py:None
Route
test_get_container_config_error
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Route
test_get_node_cached
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Route
test_get_status
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backend_factory.py:None
Route
test_get_status
patch('backends.api.ProxmoxAPI')
tests/test_coverage_boost.py:None
Route
test_get_status_error
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Route
test_get_total_cores
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Route
test_get_total_memory
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Route
test_get_total_memory_none
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Route
test_handles_exceptions_gracefully
patch.object(resource_manager, 'collect_data_for_container', new_callable=AsyncMock)
tests/test_resource_manager.py:None
Route
test_handles_missing_config
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock, return_value=None)
tests/test_resource_manager.py:None
Route
test_handles_missing_cores
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_resource_manager.py:None
Route
test_increase_memory
patch('scaling_manager.run_command', new_callable=AsyncMock)
tests/test_scaling_manager.py:None
Route
test_info_event
patch('scaling_manager.log_json_event', new_callable=AsyncMock)
tests/test_scaling_manager.py:None
Route
test_insufficient_memory
patch('scaling_manager.run_command', new_callable=AsyncMock)
tests/test_scaling_manager.py:None
Route
test_invalid_value
patch.object(lxc_utils, 'detect_cpu_topology', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Route
test_is_running
patch('backends.api.ProxmoxAPI')
tests/test_coverage_boost.py:None
Route
test_is_running_error
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Route
test_is_running_false
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backends.py:None
Route
test_is_running_true
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backends.py:None
Route
test_list_cmd_uses_shell_false
patch('lxc_utils.asyncio.create_subprocess_exec')
tests/test_security.py:None
Route
test_list_containers
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backends.py:None
Route
test_list_containers
patch('backends.api.ProxmoxAPI')
tests/test_coverage_boost.py:None
Route
test_list_containers_empty
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backends.py:None
Route
test_manual_change_adopted
patch('scaling_manager.run_command', new_callable=AsyncMock, return_value="OK")
tests/test_boost.py:None
Route
test_no_boost_below_threshold
patch('scaling_manager.run_command', new_callable=AsyncMock, return_value="OK")
tests/test_boost.py:None
Route
test_no_change_in_range
patch('scaling_manager.run_command', new_callable=AsyncMock)
tests/test_scaling_manager.py:None
Route
test_no_config_returns_zeroed_data
patch('lxc_utils.is_container_running', new_callable=AsyncMock, return_value=True)
tests/test_coverage_boost.py:None
Route
test_no_scale_in_range
patch.object(sm, 'run_command', new_callable=AsyncMock, return_value="")
tests/test_scaling_full.py:None
Route
test_none_output
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Route
test_normal_offpeak_hours
patch('scaling_manager._current_hour', return_value=23)
tests/test_scaling_manager.py:None
Route
test_normal_peak_hours
patch('scaling_manager._current_hour', return_value=14)
tests/test_scaling_manager.py:None
Route
test_off_peak_early_morning
patch('scaling_manager._current_hour')
tests/test_scaling.py:None
Route
test_off_peak_night
patch('scaling_manager._current_hour')
tests/test_scaling.py:None
Route
test_off_peak_start_boundary
patch('scaling_manager._current_hour')
tests/test_scaling.py:None
Route
test_p_cores
patch.object(lxc_utils, 'detect_cpu_topology', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Route
test_parse_v1
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Route
test_parse_v2
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Route
test_parse_v2_missing
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Route
test_parses_pct_list
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Route
test_pct_exec_fallback
patch('lxc_utils._read_cgroup_memory', new_callable=AsyncMock, return_value=None)
tests/test_coverage_boost.py:None
Route
test_peak_afternoon
patch('scaling_manager._current_hour')
tests/test_scaling.py:None
Route
test_peak_boundary
patch('scaling_manager._current_hour')
tests/test_scaling.py:None
Route
test_prefers_pvesh_method_when_available
patch.object(lxc_utils, 'pvesh_stat_method', new_callable=AsyncMock, return_value=12.5)
tests/test_lxc_utils.py:None
Route
test_remote_already_set
patch('lxc_utils.run_command', new_callable=AsyncMock)
tests/test_coverage_boost.py:None
Route
test_remote_append_via_tee
patch('lxc_utils.asyncio.create_subprocess_exec')
tests/test_coverage_boost.py:None
Route
test_remote_read_fails
patch('lxc_utils.run_command', new_callable=AsyncMock, return_value=None)
tests/test_coverage_boost.py:None
Route
test_rollback_calls_pct_set
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Route
test_run_raw_logs_warning
patch('backends.api.ProxmoxAPI')
tests/test_coverage_boost.py:None
Route
test_running
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Route
test_scale_down_cpu
patch.object(sm, 'run_command', new_callable=AsyncMock, return_value="")
tests/test_scaling_full.py:None
Route
test_scale_in_at_min
patch.object(sm, 'run_command', new_callable=AsyncMock, return_value="")
tests/test_scaling_full.py:None
Route
test_scale_in_stops_last
patch.object(sm, 'run_command', new_callable=AsyncMock, return_value="")
tests/test_scaling_full.py:None
Route
test_scale_out_clones
patch.object(sm, 'run_command', new_callable=AsyncMock, return_value="OK")
tests/test_scaling_full.py:None
Route
test_scale_out_max_reached
patch.object(sm, 'run_command', new_callable=AsyncMock, return_value="")
tests/test_scaling_full.py:None
Route
test_scale_out_snapshot_fail
patch('scaling_manager.run_command', new_callable=AsyncMock, return_value="OK")
tests/test_coverage_final.py:None
Route
test_scale_out_static_ip
patch('scaling_manager.run_command', new_callable=AsyncMock, return_value="OK")
tests/test_coverage_final.py:None
Route
test_scale_up_cpu
patch.object(sm, 'run_command', new_callable=AsyncMock, return_value="")
tests/test_scaling_full.py:None
Route
test_set_cores
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backends.py:None
Route
test_set_cores
patch('backends.api.ProxmoxAPI')
tests/test_coverage_boost.py:None
Route
test_set_cores_error
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Route
test_set_memory
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backends.py:None
Route
test_set_memory
patch('backends.api.ProxmoxAPI')
tests/test_coverage_boost.py:None
Route
test_set_memory_error
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Route
test_set_network
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backend_factory.py:None
Route
test_set_network_error
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Route
test_skips_empty_groups
patch.object(sm, 'log_scaling_event', new_callable=AsyncMock)
tests/test_scaling_full.py:None
Route
test_skips_stopped_container
patch.object(lxc_utils, 'is_container_running', new_callable=AsyncMock, return_value=False)
tests/test_resource_manager.py:None
Route
test_snapshot
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backends.py:None
Route
test_snapshot_clone
patch('backends.api.ProxmoxAPI')
tests/test_coverage_boost.py:None
Route
test_snapshot_error
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Route
test_start_container
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backend_factory.py:None
Route
test_start_error
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Route
test_start_stop
patch('backends.api.ProxmoxAPI')
tests/test_coverage_boost.py:None
Route
test_stop_container
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backend_factory.py:None
next →
1–100 of 109, ranked by callers