@brandboostinggmbh/observable-workflows 0.16.1 → 0.16.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -477,6 +477,7 @@ declare const createLogAccessor: (context: {
477
477
  workflowType: string;
478
478
  workflowCount: number;
479
479
  workflowTotalWallTimeMilis: number;
480
+ workflowAverageWallTimeMilis: number;
480
481
  incompleteWorkflowCount: number;
481
482
  successfulWorkflowCount: number;
482
483
  failedWorkflowCount: number;
package/dist/index.js CHANGED
@@ -950,6 +950,13 @@ const createLogAccessor = (context) => {
950
950
  ELSE 0
951
951
  END
952
952
  ) as workflowTotalWallTimeMilis,
953
+ AVG(
954
+ CASE
955
+ WHEN endTime IS NOT NULL AND startTime IS NOT NULL
956
+ THEN (endTime - startTime)
957
+ ELSE NULL
958
+ END
959
+ ) as workflowAverageWallTimeMilis,
953
960
  SUM(
954
961
  CASE
955
962
  WHEN startTime IS NOT NULL AND endTime IS NULL
@@ -982,6 +989,7 @@ const createLogAccessor = (context) => {
982
989
  workflowType: row.workflowType,
983
990
  workflowCount: row.workflowCount,
984
991
  workflowTotalWallTimeMilis: row.workflowTotalWallTimeMilis || 0,
992
+ workflowAverageWallTimeMilis: row.workflowAverageWallTimeMilis || 0,
985
993
  incompleteWorkflowCount: row.incompleteWorkflowCount || 0,
986
994
  successfulWorkflowCount: row.successfulWorkflowCount || 0,
987
995
  failedWorkflowCount: row.failedWorkflowCount || 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brandboostinggmbh/observable-workflows",
3
- "version": "0.16.1",
3
+ "version": "0.16.3",
4
4
  "description": "My awesome typescript library",
5
5
  "type": "module",
6
6
  "license": "MIT",