mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
SlaReport: Breakdown into an hour view showing only downtimes
This commit is contained in:
parent
e1deb4209f
commit
ec71e3640d
1 changed files with 7 additions and 0 deletions
|
|
@ -71,6 +71,12 @@ abstract class SlaReport extends ReportHook
|
|||
|
||||
if (isset($config['breakdown']) && $config['breakdown'] !== 'none') {
|
||||
switch ($config['breakdown']) {
|
||||
case 'hour':
|
||||
$interval = new DateInterval('PT1H');
|
||||
$format = 'H:i:s';
|
||||
$boundary = '+1 hour';
|
||||
|
||||
break;
|
||||
case 'day':
|
||||
$interval = new DateInterval('P1D');
|
||||
$format = 'Y-m-d';
|
||||
|
|
@ -168,6 +174,7 @@ abstract class SlaReport extends ReportHook
|
|||
'label' => t('Breakdown'),
|
||||
'options' => [
|
||||
'none' => t('None', 'SLA Report Breakdown'),
|
||||
'hour' => t('Hour'),
|
||||
'day' => t('Day'),
|
||||
'week' => t('Week'),
|
||||
'month' => t('Month')
|
||||
|
|
|
|||
Loading…
Reference in a new issue