Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StackStorm/st2
/ __init__
Method
__init__
st2common/st2common/metrics/base.py:150–153 ·
view source on GitHub ↗
(self, key)
Source
from the content-addressed store, hash-verified
148
""
"
149
150
def
__init__(self, key):
151
check_key(key)
152
self.key = key
153
self._metrics = get_driver()
154
155
def
__enter__(self):
156
self._metrics.inc_counter(self.key)
Callers
nothing calls this directly
Calls
2
check_key
Function · 0.90
get_driver
Function · 0.70
Tested by
no test coverage detected