Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
linkslice committed Apr 26, 2023
1 parent 57fa825 commit 723a274
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/EventsRouter_createHeartbeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
import sys
from pprint import pprint


def heartbeats(api):
data = {
'summary': 'Hearbeat',
'device': 'bryantest',
'device': 'mydevicename',
'component': '',
'severity': 5,
'evclass': '/Heartbeat',
'evclasskey': 'none',
'evclasskey': '',
'message': 'test',
'monitor': 'AustinCollectorPool',
'timeout': 120
'timeout': 300 #time in seconds before creating the heartbeat event
}
rsp = api.callMethod('add_event', **data)
if rsp.get('result', {}).get('success', False) == False:
Expand Down

0 comments on commit 723a274

Please sign in to comment.