@if (!reportWasGenerated) {
{{ t('Generate auto report') }}
} @if (reportWasGenerated) {
{{ report.autoreport.name }} {{ report.autoreport_data.evaluation_time.start_human }} - {{ report.autoreport_data.evaluation_time.end_human }}
} {{ t('Configuration') }} @if (reportWasGenerated) { {{ t('Report') }} }
@if (tabName === 'reportConfig') {
@if (report_error) { {{ report_error.message }} @if (report_error.objects.length > 0) {
    @for (errorObject of report_error.objects; track errorObject) {
  • {{ errorObject.name }} @if (errorObject.services) {
      @for (servicename of errorObject.services; track servicename) {
    • {{ servicename }}
    • }
    }
  • }
} }
} @if (tabName === 'showReport') {

{{ t('Evaluated time period') }}

@if (this.PermissionsService.hasPermissionObservable(['timeperiods', 'edit'])|async) { {{ report.autoreport.timeperiod.name }} } @else { {{ report.autoreport.timeperiod.name }} } @for (timerange of report.autoreport.timeperiod.timeperiod_timeranges; track timerange) { {{ timerange.weekday }} {{ timerange.start }} - {{ timerange.end }} }
logo
@if (hasBitValue(report.autoreport_data.settings.configuration_option, report.autoreport_data.defaultSettings.AUTOREPORTS_SHOW_SUMMARY_STATISTICS.value) && report.autoreport.min_availability) {

{{ t('Availability overview') }}

{{ t('Maximum allowed outage duration') }} {{ t('Measured outage duration ') }}
{{ t('Percentage') }} {{ report.autoreport_data.max_outages_time_in_percent | number: '1.3-3' }} % {{ report.autoreport_data.total_outage_time_percentage | number: '1.3-3' }} % @if (report.autoreport_data.total_outage_time_percentage <= report.autoreport_data.max_outages_time_in_percent) { {{ t('PASSED') }} } @if (report.autoreport_data.total_outage_time_percentage > report.autoreport_data.max_outages_time_in_percent) { {{ t('FAILED') }} }
{{ t('Minutes') }} {{ report.autoreport_data.max_outages_time_in_seconds_human }} {{ report.autoreport_data.total_outage_time_human }} @if (report.autoreport_data.total_outage_time_percentage <= report.autoreport_data.max_outages_time_in_percent) { {{ t('PASSED') }} } @if (report.autoreport_data.total_outage_time_percentage > report.autoreport_data.max_outages_time_in_percent) { {{ t('FAILED') }} }
} @if (hasBitValue(report.autoreport_data.settings.configuration_option, report.autoreport_data.defaultSettings.AUTOREPORTS_SHOW_SUMMARY_STATISTICS.value) && report.autoreport.max_number_of_outages) {

{{ t('Outages overview') }}

{{ t('Maximum allowed number of outages') }} {{ t('Measured number of outages') }}
{{ report.autoreport.max_number_of_outages }} {{ report.autoreport_data.total_outage_count }} @if (report.autoreport_data.total_outage_count <= report.autoreport.max_number_of_outages) { {{ t('PASSED') }} } @if (report.autoreport_data.total_outage_count > report.autoreport.max_number_of_outages) { {{ t('FAILED') }} }
}

{{ t('Evaluated host and services') }}

@for (host of report.autoreport_data.hosts | keyvalue: keepOrder; track host) { @if (host.value.Services) { @for (service of host.value.Services | keyvalue: keepOrder; track service) { } } }
{{ t('Name') }} @if (hasBitValue(report.autoreport_data.settings.configuration_option, report.autoreport_data.defaultSettings.AUTOREPORTS_EXTENDED_HOST_DESC.value) || hasBitValue(report.autoreport_data.settings.configuration_option, report.autoreport_data.defaultSettings.AUTOREPORTS_EXTENDED_SERV_DESC.value)) { {{ t('Availability ') }} }
@if (this.PermissionsService.hasPermissionObservable(['hosts', 'browser'])|async) { {{ host.value.Host.name }} } @else { {{ host.value.Host.name }} } @if (host.value.Host.state_overview) {
@if (hasBitValue(report.autoreport_data.settings.configuration_option, report.autoreport_data.defaultSettings.AUTOREPORTS_EXTENDED_HOST_DESC.value)) { {{ host.value.Host.state_overview.percent_availability | number: '1.3-3' }} % }
} @if (!host.value.Host.state_overview && checkIfHostInReport(host.value.Host.id)) { {{ t('No historical data available ') }} }
@if (( host.value.Host.state_overview && hasBitValue(report.autoreport_data.settings.configuration_option, report.autoreport_data.defaultSettings.AUTOREPORTS_EXTENDED_HOST_DESC.value) ) && ( 100 - report.autoreport_data.max_outages_time_in_percent ) <= host.value.Host.state_overview.percent_availability) { {{ t('PASSED') }} } @if (( host.value.Host.state_overview && hasBitValue(report.autoreport_data.settings.configuration_option, report.autoreport_data.defaultSettings.AUTOREPORTS_EXTENDED_HOST_DESC.value) ) && ( 100 - report.autoreport_data.max_outages_time_in_percent ) > host.value.Host.state_overview.percent_availability) { {{ t('FAILED') }} }
@if (this.PermissionsService.hasPermissionObservable(['services', 'browser'])|async) { {{ service.value.Service.name }} } @else { {{ service.value.Service.name }} } @if (service.value.Service.state_overview) {
@if (hasBitValue(report.autoreport_data.settings.configuration_option, report.autoreport_data.defaultSettings.AUTOREPORTS_EXTENDED_SERV_DESC.value)) { {{ service.value.Service.state_overview.percent_availability | number: '1.3-3' }} % }
} @if (!service.value.Service.state_overview) { {{ t('No historical data available ') }} }
@if (service.value.Service.state_overview) {
@if (( hasBitValue(report.autoreport_data.settings.configuration_option, report.autoreport_data.defaultSettings.AUTOREPORTS_EXTENDED_SERV_DESC.value) ) && ( 100 - report.autoreport_data.max_outages_time_in_percent ) <= service.value.Service.state_overview.percent_availability) { {{ t('PASSED') }} } @if (hasBitValue(report.autoreport_data.settings.configuration_option, report.autoreport_data.defaultSettings.AUTOREPORTS_EXTENDED_SERV_DESC.value) && ( 100 - report.autoreport_data.max_outages_time_in_percent ) > service.value.Service.state_overview.percent_availability) { {{ t('FAILED') }} }
}
@if (report.autoreport_data.sla_graph_path) {

{{ t('SLA overview') }}

}

{{ t('Host and service details') }}

@for (host of report.autoreport_data.hosts | keyvalue: keepOrder; track host) { @if (this.PermissionsService.hasPermissionObservable(['hosts', 'browser'])|async) { {{ host.value.Host.name }} } @else { {{ host.value.Host.name }} } @if (hasBitValue(host.value.Host.configuration_option, 4) && host.value.Host.description !== null) {   - {{ host.value.Host.description }} } @if (host.value.Host.state_overview) { @if (hasBitValue(host.value.Host.configuration_option, 1)) { {{ host.value.Host.state_overview.percent_up | number: '1.3-3' }} % } @if (hasBitValue(host.value.Host.configuration_option, 2)) { {{ host.value.Host.state_overview.human_up }} } } @if (host.value.Host.state_overview) { @if (hasBitValue(host.value.Host.configuration_option, 1)) { {{ host.value.Host.state_overview.percent_down | number: '1.3-3' }} % } @if (hasBitValue(host.value.Host.configuration_option, 2)) { {{ host.value.Host.state_overview.human_down }} } } @if (host.value.Host.state_overview) { @if (hasBitValue(host.value.Host.configuration_option, 1)) { {{ host.value.Host.state_overview.percent_unreachable | number: '1.3-3' }} % } @if (hasBitValue(host.value.Host.configuration_option, 2)) { {{ host.value.Host.state_overview.human_unreachable }} } } @if (host.value.Host.frontend && host.value.Host.frontend.show_outages) { {{ t('Outages of at least {0} min', { '0': host.value.Host.outage_duration }) }} @if (host.value.Host.outage_duration !== null) { {{ t('Outage time exceeding the permitted limit ({0} min)', { '0': host.value.Host.outage_duration }) }} } @for (outage of host.value.Host.frontend.outages; track outage) { {{ outage.start }} - {{ outage.end }} {{ outage.duration_str }} } } @if (hasBitValue(report.autoreport_data.settings.configuration_option, report.autoreport_data.defaultSettings.AUTOREPORTS_SHOW_OUTAGES_IN_DOWNTIME.value) && host.value.Host.frontend.outages_summarized_in_downtime.length > 0) { @if (host.value.Host.outage_duration !== null) { {{ t('Outage time exceeding the permitted limit ({0} min)', { '0': host.value.Host.outage_duration }) }} } @if (host.value.Host.outage_duration === null) { {{ t('Host outage in downtime') }} } @for (outage of host.value.Host.frontend.outages_summarized_in_downtime; track outage) { {{ outage.start }} - {{ outage.end }} {{ outage.duration_str }} } } @if (hasBitValue(report.autoreport_data.settings.configuration_option, report.autoreport_data.defaultSettings.AUTOREPORTS_SHOW_DOWNTIMES.value) && host.value.Host.frontend.downtimes && host.value.Host.frontend.downtimes.length > 0) { {{ t('Host downtimes') }} @for (downtime of host.value.Host.frontend.downtimes; track downtime) { {{ downtime.start }} - {{ downtime.end }} {{ downtime.duration_str }} {{ downtime.comment_data }} } } @if (host.value.Services) { @for (service of host.value.Services | keyvalue: keepOrder; track service) { @if (service.value.Service.state_overview) { @if (this.PermissionsService.hasPermissionObservable(['services', 'browser'])|async) { {{ service.value.Service.name }} } @else { {{ service.value.Service.name }} } @if (hasBitValue(service.value.Service.configuration_option, 1)) { {{ service.value.Service.state_overview.percent_ok | number: '1.3-3' }} % } @if (hasBitValue(service.value.Service.configuration_option, 2)) { {{ service.value.Service.state_overview.human_ok }} } @if (hasBitValue(service.value.Service.configuration_option, 1)) { {{ service.value.Service.state_overview.percent_warning | number: '1.3-3' }} % } @if (hasBitValue(service.value.Service.configuration_option, 2)) { {{ service.value.Service.state_overview.human_warning }} } @if (hasBitValue(service.value.Service.configuration_option, 1)) { {{ service.value.Service.state_overview.percent_critical | number: '1.3-3' }} % } @if (hasBitValue(service.value.Service.configuration_option, 2)) { {{ service.value.Service.state_overview.human_critical }} } @if (hasBitValue(service.value.Service.configuration_option, 1)) { {{ service.value.Service.state_overview.percent_unknown | number: '1.3-3' }} % } @if (hasBitValue(service.value.Service.configuration_option, 2)) { {{ service.value.Service.state_overview.human_unknown }} } } @if (hasGraph(host.value.Host.uuid, service.value.Service.uuid) && service.value.Service.state_overview) { @for (graphBlobs of report.GraphImageBlobs[host.value.Host.uuid] | keyvalue; track graphBlobs) { @if (graphBlobs.key === service.value.Service.uuid) {
@for (graph of graphBlobs.value; track graph) {
Missing chart image
}
}
}
} @if (service.value.Service.frontend && service.value.Service.frontend.outages && service.value.Service.frontend.outages.length > 0) { @if (service.value.Service.frontend.show_outages) { {{ t('Outages of at least {0} min', { '0': service.value.Service.outage_duration }) }} @if (service.value.Service.outage_duration !== null) { {{ t('Outage time exceeding the permitted limit ({0} min)', { '0': service.value.Service.outage_duration }) }} } } @if (service.value.Service.frontend && service.value.Service.frontend.show_outages) { @for (outage of service.value.Service.frontend.outages; track outage) { {{ outage.start }} - {{ outage.end }} {{ outage.duration_str }} } } } @if (service.value.Service.frontend && service.value.Service.frontend.outages_summarized_in_downtime && service.value.Service.frontend.outages_summarized_in_downtime.length > 0 && hasBitValue(report.autoreport_data.settings.configuration_option, report.autoreport_data.defaultSettings.AUTOREPORTS_SHOW_OUTAGES_IN_DOWNTIME.value) && service.value.Service.frontend.outages_summarized_in_downtime) { @if (service.value.Service.outage_duration !== null) { {{ t('Service outage in downtime exceeding the permitted limit') }} {{ service.value.Service.outage_duration }} {{ t('min') }} } @if (service.value.Service.outage_duration === null) { {{ t('Service outage in downtime') }} }
@for (outage of service.value.Service.frontend.outages_summarized_in_downtime; track outage) {
{{ outage.start }} - {{ outage.end }}
{{ outage.duration_str }}
}
} @if (hasBitValue(report.autoreport_data.settings.configuration_option, report.autoreport_data.defaultSettings.AUTOREPORTS_SHOW_DOWNTIMES.value) && service.value.Service.frontend && service.value.Service.frontend.downtimes && service.value.Service.frontend.downtimes.length > 0) { {{ t('Service downtimes') }} @for (downtime of service.value.Service.frontend.downtimes; track downtime) { {{ downtime.start }} - {{ downtime.end }} {{ downtime.duration_str }} {{ downtime.comment_data }} } }
} } }
}
@if (tabName === 'reportConfig') { }