|
@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 (host.value.Services) {
@for (service of host.value.Services | keyvalue: keepOrder; track service) {
|
@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') }}
}
}
|
}
}
}