|
|
|
@ -19,7 +19,7 @@ def get_resource():
|
|
|
|
|
io_percent = io_usage.get_io_percent()
|
|
|
|
|
memory_percent = memory_usage.get_memory_percent()
|
|
|
|
|
status = 0
|
|
|
|
|
if cpu_percent >= 80 or memory_percent >= 80 or io_percent >= 97.5:
|
|
|
|
|
if cpu_percent >= 80 or memory_percent >= 80 or io_percent >= 50:
|
|
|
|
|
status = 1
|
|
|
|
|
|
|
|
|
|
return jsonify({
|
|
|
|
|