{{ t('Service Level Agreements') }} {{ t('Affected hosts') }}
@if (this.PermissionsService.hasPermissionObservable(['slamodule', 'slas', 'edit'])|async) { @if (slaAndHosts && slaAndHosts.sla.allowEdit) { {{ t('Go to "SLA configuration"') }} } }
{{ t('Service level Agreement: ') }} @if (this.PermissionsService.hasPermissionObservable(['slamodule', 'slas', 'edit'])|async) { @if (slaAndHosts && slaAndHosts.sla.allowEdit) { "{{ slaAndHosts.sla.name }}" } } @else { "{{ slaAndHosts?.sla?.name }}" }
{{ t('Overview of all affected hosts. Please refresh your configuration after configuration changes!') }}

{{ t('Filter') }}
@if (!slaAndHosts) { } @if (slaAndHosts) { @for (host of slaAndHosts.hosts; track host; let i = $index) { @if (host.services.length > 0) { @for (service of host.services; track service) { } } }
{{ t('Host') }} {{ t('Address') }} {{ t('Container') }} {{ t('Direct assignment or via the host template') }}
@if (this.PermissionsService.hasPermissionObservable(['hosts', 'browser'])|async) { {{ host.name }} } @else { {{ host.name }} } {{ host.address }} {{ host.primary_container }} @if (this.PermissionsService.hasPermissionObservable(['hosts', 'edit'])|async) { {{ host.name }} {{ host.name }} } @else { {{ host.name }} } @if (this.PermissionsService.hasPermissionObservable(['hosttemplates', 'edit'])|async) { {{ host.hosttemplate.name }} {{ host.hosttemplate.name }} } @else { {{ host.hosttemplate.name }} }
{{ t('Service') }} {{ t('SLA relevant') }} {{ t('SLA relevance is defined in service or service template') }}
@if (this.PermissionsService.hasPermissionObservable(['services', 'edit'])|async) { {{ service.servicename }} {{ service.servicename }} } @else { {{ service.servicename }} } @if (this.PermissionsService.hasPermissionObservable(['services', 'edit'])|async) { {{ service.servicename }} {{ service.servicename }} } @else { {{ service.servicename }} } @if (service.servicetemplate) { @if (this.PermissionsService.hasPermissionObservable(['servicetemplates', 'edit'])|async) { {{ service.servicetemplate.template_name }} {{ service.servicetemplate.template_name }} } @else { {{ service.servicetemplate.template_name }} } }
} @if (slaAndHosts && slaAndHosts.hosts && slaAndHosts.hosts.length === 0) { } @if (slaAndHosts) { }