Remove unicode from datasource
Change-Id: Ie8426b50595b87539bef42520c78a138db32ac7f
This commit is contained in:
parent
aa3524f7a3
commit
9047c458bc
@ -305,8 +305,8 @@ class PrometheusDriver(AlarmDriverBase):
|
|||||||
":rtype: dict
|
":rtype: dict
|
||||||
|
|
||||||
For the example above. The function returns:
|
For the example above. The function returns:
|
||||||
{u'instance_name': 'instance-00000004',
|
{'instance_name': 'instance-00000004',
|
||||||
u'host_id': 'my-host-name'}
|
'host_id': 'my-host-name'}
|
||||||
"""
|
"""
|
||||||
resource_labels = self._get_conf_resource(alert)
|
resource_labels = self._get_conf_resource(alert)
|
||||||
vitrage_entity_unique_props = {}
|
vitrage_entity_unique_props = {}
|
||||||
@ -362,7 +362,7 @@ class PrometheusDriver(AlarmDriverBase):
|
|||||||
"""Get values of the alert labels from alert's resource in config file.
|
"""Get values of the alert labels from alert's resource in config file.
|
||||||
|
|
||||||
For the example above. The function returns:
|
For the example above. The function returns:
|
||||||
{u'instance': u'1.1.1.1:9999', u'domain': u'instance-00000004'}
|
{'instance': '1.1.1.1:9999', 'domain': 'instance-00000004'}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
resource_alert_labels = self._get_conf_resource(alert).values()
|
resource_alert_labels = self._get_conf_resource(alert).values()
|
||||||
@ -387,7 +387,7 @@ class PrometheusDriver(AlarmDriverBase):
|
|||||||
and its values are the corresponding alert labels.
|
and its values are the corresponding alert labels.
|
||||||
|
|
||||||
For the example above. The function returns:
|
For the example above. The function returns:
|
||||||
{u'instance_name': u'domain', u'host_id': u'instance'}
|
{'instance_name': 'domain', 'host_id': 'instance'}
|
||||||
"""
|
"""
|
||||||
if self.conf_map:
|
if self.conf_map:
|
||||||
for conf_alert in self.conf_map:
|
for conf_alert in self.conf_map:
|
||||||
|
Loading…
Reference in New Issue
Block a user