Example #1
0
def on_open(ws):
    pagerduty_event(event_type='resolve',
                    incident_key='tutum-stream',
                    description='Tutum Stream connection open.')
    print "Connected"
Example #2
0
def on_open(ws):
    pagerduty_event(event_type='resolve', incident_key='tutum-stream', description='Tutum Stream connection open.')
    print "Connected"
Example #3
0
def on_close(ws):
    pagerduty_event(event_type='trigger',
                    incident_key='tutum-stream',
                    description='Tutum Stream connection closed.')
    print "### closed ###"
Example #4
0
def on_close(ws):
    pagerduty_event(event_type='trigger', incident_key='tutum-stream', description='Tutum Stream connection closed.')
    print "### closed ###"