Skip to main content

EnrichWithMongoData@1

Node EnrichWithMongoData@1 is used to enrich the payload with data from the OctoMesh Asset Repository. This is typically used to enrich data that needs to be stored in OctoMesh Time Series Repository.

Adapter Prerequisites

Node Configuration

For fields path, targetPath, targetValueWriteMode, and targetValueKind, see Overview.

transformations:
- type: EnrichWithMongoData@1
rtIdPath: $.rtId # Path to the runtime entity ID, alternatively use rtId to specify the runtime entity ID
rtId: 5fc8fda18b2fc75f925e21af # ID of the runtime entity. Alternatively, use rtIdPath to specify the path to the runtime entity ID
ckTypeId: Industry.Energy/Photovoltaic.Module # Type of the runtime entities, alternatively use ckTypeIdPath to specify the path to the CK type ID
ckTypeIdPath: $.ckTypeId # Path to the CK type ID, alternatively use ckTypeId to specify the CK type ID
attributeUpdates:
- attributeName: PeakPower # The name of the attribute that should be updated
attributeValueType: Double # The value type of the attribute that should be updated
valuePath: $.productionPower # The path to the value in the payload, any valid JSON path is allowed
value: "demo" # A constant value that should be used. This property can be defined instead of the valuePath property