Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
185
def
ts_now():
186
return
datetime.datetime.utcnow().replace(tzinfo=dateutil.tz.tzutc())
187
188
189
def
inc_ts(timestamp, milliseconds=1):
Callers
15
test_new_term
Function · 0.90
test_new_term_nested_field
Function · 0.90
test_new_term_with_terms
Function · 0.90
test_new_term_with_composite_fields
Function · 0.90
test_jira
Function · 0.90
test_remove_old_events
Function · 0.90
test_file
Method · 0.90
run_elastalert
Method · 0.90
remove_old_events
Method · 0.85
run_query
Method · 0.85
get_starttime
Method · 0.85
run_rule
Method · 0.85
Calls
1
utcnow
Method · 0.80
Tested by
8
test_new_term
Function · 0.72
test_new_term_nested_field
Function · 0.72
test_new_term_with_terms
Function · 0.72
test_new_term_with_composite_fields
Function · 0.72
test_jira
Function · 0.72
test_remove_old_events
Function · 0.72
test_file
Method · 0.72
run_elastalert
Method · 0.72