IcingaNotification: render service_name

fixes #2006
This commit is contained in:
Thomas Gelf 2019-10-31 15:24:52 +01:00
parent 0dfa6a7ba3
commit 3996efc3cf
2 changed files with 15 additions and 0 deletions

View File

@ -26,6 +26,9 @@ next (will be 1.8.0)
### DB Schema ### DB Schema
* FIX: Rolling out new installations on MySQL v5.6 fails (#1993) * FIX: Rolling out new installations on MySQL v5.6 fails (#1993)
### Icinga Configuration
* FIX: Render service\_name for Notifications (#2006)
1.7.1 1.7.1
----- -----

View File

@ -244,6 +244,18 @@ class IcingaNotification extends IcingaObject implements ExportInterface
return $this->renderRelationProperty('host', $this->get('host_id'), 'host_name'); return $this->renderRelationProperty('host', $this->get('host_id'), 'host_name');
} }
/**
* Render service_id as service_name
*
* @codingStandardsIgnoreStart
* @return string
*/
public function renderService_id()
{
// @codingStandardsIgnoreEnd
return $this->renderRelationProperty('service', $this->get('service_id'), 'service_name');
}
protected function setKey($key) protected function setKey($key)
{ {
if (is_int($key)) { if (is_int($key)) {