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)
#   class SlackSink(timeplus.sink.Sink):
View Source
13class SlackSink(Sink):
14    """
15    SlackSink class defines slack sink
16    """
17
18    def __init__(self):
19        Sink.__init__(self)
20        self.type("slack")

SlackSink class defines slack sink

#   SlackSink()
View Source
18    def __init__(self):
19        Sink.__init__(self)
20        self.type("slack")
#   class SlackSinkProperty(timeplus.base.Base):
View Source
23class SlackSinkProperty(Base):
24    """
25    SlackSinkProperty class defines slack sink property
26    """
27
28    def __init__(self):
29        Base.__init__(self)
30
31    def url(self, *args):
32        return self.prop("url", *args)
33
34    def message(self, *args):
35        return self.prop("template", *args)

SlackSinkProperty class defines slack sink property

#   SlackSinkProperty()
View Source
28    def __init__(self):
29        Base.__init__(self)
#   def url(self, *args):
View Source
31    def url(self, *args):
32        return self.prop("url", *args)
#   def message(self, *args):
View Source
34    def message(self, *args):
35        return self.prop("template", *args)
Inherited Members
timeplus.base.Base
prop
data
id