MCPcopy Index your code
hub / github.com/StackStorm/st2 / _dispatch_operation_trigger

Method _dispatch_operation_trigger

st2common/st2common/persistence/base.py:339–351  ·  view source on GitHub ↗
(cls, operation, model_object)

Source from the content-addressed store, hash-verified

337
338 @classmethod
339 def _dispatch_operation_trigger(cls, operation, model_object):
340 if operation not in cls.dispatch_trigger_for_operations:
341 return
342
343 trigger = cls._get_trigger_ref_for_operation(operation=operation)
344
345 object_payload = cls.api_model_cls.from_model(
346 model_object, mask_secrets=True
347 ).__json__()
348 payload = {"object": object_payload}
349 return cls._dispatch_trigger(
350 operation=operation, trigger=trigger, payload=payload
351 )
352
353 @classmethod
354 def _dispatch_trigger(cls, operation, trigger, payload):

Callers 3

Calls 4

_dispatch_triggerMethod · 0.80
__json__Method · 0.45
from_modelMethod · 0.45

Tested by

no test coverage detected