MCPcopy Create free account
hub / github.com/StackStorm/st2 / check_key

Function check_key

st2common/st2common/metrics/utils.py:37–42  ·  view source on GitHub ↗

Ensure key meets requirements.

(key)

Source from the content-addressed store, hash-verified

35
36
37def check_key(key):
38 """
39 Ensure key meets requirements.
40 """
41 assert isinstance(key, six.string_types), "Key not a string. Got %s" % type(key)
42 assert key, "Key cannot be empty string."

Callers 11

__init__Method · 0.90
send_timeMethod · 0.90
__init__Method · 0.90
__init__Method · 0.90
send_timeMethod · 0.90
timeMethod · 0.90
inc_counterMethod · 0.90
dec_counterMethod · 0.90
set_gaugeMethod · 0.90
inc_gaugeMethod · 0.90
dec_gaugeMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected