timeplus.slack
slack
This module defines slack sink class
:copyright: (c) 2022 by Timeplus
:license: Apache2, see LICENSE for more details.
View Source
0""" 1slack 2 3This module defines slack sink class 4:copyright: (c) 2022 by Timeplus 5:license: Apache2, see LICENSE for more details. 6""" 7 8from timeplus.sink import Sink 9from timeplus.base import Base 10 11 12class SlackSink(Sink): 13 """ 14 SlackSink class defines slack sink 15 """ 16 17 def __init__(self): 18 Sink.__init__(self) 19 self.type("slack") 20 21 22class SlackSinkProperty(Base): 23 """ 24 SlackSinkProperty class defines slack sink property 25 """ 26 27 def __init__(self): 28 Base.__init__(self) 29 30 def url(self, *args): 31 return self.prop("url", *args) 32 33 def message(self, *args): 34 return self.prop("template", *args)
View Source
SlackSink class defines slack sink
Inherited Members
View Source
SlackSinkProperty class defines slack sink property