mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 00:46:27 +02:00
Pass quota limit as a console method
This commit is contained in:
parent
120f56fad7
commit
cb38447feb
10 changed files with 148 additions and 164 deletions
|
@ -170,4 +170,14 @@ namespace controllers\internals;
|
|||
echo ($success === false ? '[KO]' : '[OK]') . ' - ' . $media['path'] . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Do alerting for quota limits
|
||||
*/
|
||||
public function quota_limit_alerting()
|
||||
{
|
||||
$bdd = \descartes\Model::_connect(DATABASE_HOST, DATABASE_NAME, DATABASE_USER, DATABASE_PASSWORD, 'UTF8');
|
||||
$internal_quota = new \controllers\internals\Quota($bdd);
|
||||
$internal_quota->alerting_for_limit_close_and_reached();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue