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

Method get_all

st2api/st2api/controllers/v1/timers.py:85–95  ·  view source on GitHub ↗
(self, timer_type=None)

Source from the content-addressed store, hash-verified

83 self._allowed_timer_types = TIMER_TRIGGER_TYPES.keys()
84
85 def get_all(self, timer_type=None):
86 if timer_type and timer_type not in self._allowed_timer_types:
87 msg = "Timer type %s not in supported types - %s." % (
88 timer_type,
89 self._allowed_timer_types,
90 )
91 abort(http_client.BAD_REQUEST, msg)
92
93 t_all = self._timers.get_all(timer_type=timer_type)
94 LOG.debug("Got timers: %s", t_all)
95 return t_all
96
97 def get_one(self, ref_or_id, requester_user):
98 try:

Callers

nothing calls this directly

Calls 2

abortFunction · 0.90
get_allMethod · 0.45

Tested by

no test coverage detected