5 changed files with 42 additions and 81 deletions
@ -1,60 +0,0 @@ |
|||
{ |
|||
"type": "LATEST_VALUES_AGGREGATION", |
|||
"name": "Occupied spaces", |
|||
"debugSettings": { |
|||
"failuresEnabled": true, |
|||
"allEnabled": true, |
|||
"allEnabledUntil": 1769907492297 |
|||
}, |
|||
"entityId": { |
|||
"entityType": "ASSET", |
|||
"id": "f8ad0800-a9a6-11f0-bbe6-459b63b420fe" |
|||
}, |
|||
"configuration": { |
|||
"type": "LATEST_VALUES_AGGREGATION", |
|||
"relation": { |
|||
"direction": "FROM", |
|||
"relationType": "Contains" |
|||
}, |
|||
"arguments": { |
|||
"oc": { |
|||
"refEntityKey": { |
|||
"key": "occupied", |
|||
"type": "TS_LATEST" |
|||
}, |
|||
"defaultValue": "false" |
|||
} |
|||
}, |
|||
"deduplicationIntervalMillis": 20000, |
|||
"metrics": { |
|||
"totalSpaces": { |
|||
"function": "COUNT", |
|||
"input": { |
|||
"type": "function", |
|||
"function" : "return 1;" |
|||
} |
|||
}, |
|||
"occupiedSpaces": { |
|||
"function": "COUNT", |
|||
"filter": "return oc == true", |
|||
"input": { |
|||
"type": "key", |
|||
"key" : "oc" |
|||
} |
|||
}, |
|||
"freeSpaces": { |
|||
"function": "COUNT", |
|||
"filter": "return oc == false", |
|||
"input": { |
|||
"type": "key", |
|||
"key" : "oc" |
|||
} |
|||
} |
|||
}, |
|||
"output": { |
|||
"type": "TIME_SERIES", |
|||
"decimals": 2 |
|||
}, |
|||
"useLatestTsFromInputs": "true" |
|||
} |
|||
} |
|||
Loading…
Reference in new issue