|
|
|
@ -24,7 +24,7 @@ def get_resource():
|
|
|
|
|
memory_percent = memory_usage.get_memory_percent()
|
|
|
|
|
online = login_info.get_online_size()
|
|
|
|
|
status = 0
|
|
|
|
|
if cpu_percent >= cpu_alarm_threshold or memory_percent >= memory_alarm_threshold or io_percent >= io_alarm_threshold:
|
|
|
|
|
if cpu_percent > cpu_alarm_threshold or memory_percent > memory_alarm_threshold or io_percent > io_alarm_threshold:
|
|
|
|
|
status = 1
|
|
|
|
|
|
|
|
|
|
return jsonify({
|
|
|
|
|