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

Method from_component_model

st2common/st2common/models/api/trace.py:140–146  ·  view source on GitHub ↗
(cls, component_model)

Source from the content-addressed store, hash-verified

138
139 @classmethod
140 def from_component_model(cls, component_model):
141 return {
142 "object_id": component_model.object_id,
143 "ref": component_model.ref,
144 "updated_at": isotime.format(component_model.updated_at, offset=False),
145 "caused_by": component_model.caused_by,
146 }
147
148 @classmethod
149 def from_model(cls, model, mask_secrets=False):

Callers 1

from_modelMethod · 0.80

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected