MCPcopy
hub / github.com/YelpArchive/elastalert / ts_now

Function ts_now

elastalert/util.py:185–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183
184
185def ts_now():
186 return datetime.datetime.utcnow().replace(tzinfo=dateutil.tz.tzutc())
187
188
189def inc_ts(timestamp, milliseconds=1):

Callers 15

test_new_termFunction · 0.90
test_new_term_with_termsFunction · 0.90
test_jiraFunction · 0.90
test_remove_old_eventsFunction · 0.90
test_fileMethod · 0.90
run_elastalertMethod · 0.90
remove_old_eventsMethod · 0.85
run_queryMethod · 0.85
get_starttimeMethod · 0.85
run_ruleMethod · 0.85

Calls 1

utcnowMethod · 0.80

Tested by 8

test_new_termFunction · 0.72
test_new_term_with_termsFunction · 0.72
test_jiraFunction · 0.72
test_remove_old_eventsFunction · 0.72
test_fileMethod · 0.72
run_elastalertMethod · 0.72