Compare commits
1 Commits
6c4db03aba
...
bc79de133e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc79de133e |
@@ -104,9 +104,10 @@ class OutputUtils {
|
||||
// functionality properties
|
||||
softwareType: config.functionality?.softwareType,
|
||||
role: config.functionality?.role,
|
||||
positionVsParent: config.functionality?.positionVsParent,
|
||||
// asset properties (exclude machineCurve)
|
||||
uuid: config.asset?.uuid,
|
||||
tagcode: config.asset?.tagcode,
|
||||
tagcode: config.asset?.tagCode || config.asset?.tagcode,
|
||||
geoLocation: config.asset?.geoLocation,
|
||||
category: config.asset?.category,
|
||||
type: config.asset?.type,
|
||||
|
||||
@@ -8,7 +8,7 @@ const config = {
|
||||
general: { id: 'abc', unit: 'mbar' },
|
||||
asset: {
|
||||
uuid: 'u1',
|
||||
tagcode: 't1',
|
||||
tagCode: 't1',
|
||||
geoLocation: { lat: 51.6, lon: 4.7 },
|
||||
category: 'measurement',
|
||||
type: 'pressure',
|
||||
@@ -38,5 +38,6 @@ test('influx format flattens tags and stringifies tag values', () => {
|
||||
assert.equal(msg.payload.measurement, 'measurement_abc');
|
||||
assert.equal(msg.payload.tags.geoLocation_lat, '51.6');
|
||||
assert.equal(msg.payload.tags.geoLocation_lon, '4.7');
|
||||
assert.equal(msg.payload.tags.tagcode, 't1');
|
||||
assert.ok(msg.payload.timestamp instanceof Date);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user