update kapacitor transform

Uniform  'get_vitarge_type'  type, remove method type warning

Change-Id: I3e406806421d7452afe8a378ec752b6678c4e222
This commit is contained in:
Q.hongtao 2020-09-19 01:01:17 +08:00 committed by Q.hongtao
parent d47e8400ce
commit fa1d0fbbbe

View File

@ -55,8 +55,7 @@ class KapacitorTransformer(AlarmTransformerBase):
resource_name, resource_name,
alarm_id)) alarm_id))
@staticmethod def get_vitrage_type(self):
def get_vitrage_type():
return KAPACITOR_DATASOURCE return KAPACITOR_DATASOURCE
def _create_vertex(self, entity_event): def _create_vertex(self, entity_event):