Skip to content

compute_node_factory.py

ComputeNodeFactory

Factory to create a ComputeNote for the Datamodel.

create_compute_node(id, datamodel, celonis) staticmethod

Creates a new ComputeNode object for the Datamodel (Hybrid or Cloud).

Parameters:

Name Type Description Default
id str

'ID'

required
datamodel Datamodel

Datamodel object.

required
celonis Celonis

Celonis Base object.

required

Returns:

Type Description
Union[pycelonis.celonis_api.event_collection.compute_node.ComputeNode, pycelonis.celonis_api.event_collection.compute_node.HybridPseudoComputeNode]

The respective ComputeNode object for the Datamodel.