{{ t('Host mapping rules') }}
{{ t('Service level Agreement: ') }} @if (this.PermissionsService.hasPermissionObservable(['slamodule', 'slas', 'edit'])|async) { @if (sla.allowEdit) { "{{ sla.name }}" } } @else { "{{ sla.name }}" }
{{ t('Please note: This in an one-time assignment. Hosts that will be created later on, are not automatically assigned to the given SLA. You would need to execute the rule manually to add new hosts.') }}
{{ t('It is recommended to assign the SLA via the host templates.') }}

{{ t('Host') }}
{{ t('Press return to separate tags') }}
{{ t('Press return to separate tags') }}
{{ t('Service') }}
{{ t('Press return to separate tags') }}
{{ t('Press return to separate tags') }}
{{ t('Show affected hosts') }}
{{ t('This host list is ONLY for previewing which hosts will be updated.') }} {{ t('Please note this list is paginated! Verify the hosts before running "Assign to hosts".') }}
@if (hosts.hosts) { @for (host of hosts.hosts; track host; let i = $index) { @if (host.services.length > 0) { @for (service of host.services; track service) { } } }
{{ t('Name') }} {{ t('Address') }} {{ t('Description') }} {{ t('Host tags') }} {{ t('Container') }} {{ t('SLA') }}
@if (this.PermissionsService.hasPermissionObservable(['hosts', 'browser'])|async) { {{ host.name }} } @else { {{ host.name }} } {{ host.address }} {{ host.hostdescription }} @for (tag of host.hosttags.split(','); track tag) { {{ tag }} } {{ host.primary_container }}
@if (( this.PermissionsService.hasPermissionObservable(['slamodule', 'slas', 'edit'])|async ) && host.sla !== null) { @if (sla.allowEdit) { {{ host.sla.name }} } {{ host.sla.name }} }
{{ t('Service') }} {{ t('Description') }} {{ t('Service tags') }} {{ t('Container') }} {{ t('SLA relevant') }}
@if (this.PermissionsService.hasPermissionObservable(['services', 'browser'])|async) { {{ service.servicename }} } @else { {{ service.servicename }} } {{ service.description }} @for (tag of service.servicetags.split(','); track tag) { {{ tag }} } [{{ t('Inherit from host') }}]
}
@if (hosts) { }
@if (this.PermissionsService.hasPermissionObservable(['slamodule', 'hostmappingrules', 'assignToHosts'])|async) {
}