diff --git a/package-lock.json b/package-lock.json index 1f43118..38efb3d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -48,6 +48,8 @@ "@vitejs/plugin-vue": "^6.0.4", "@vue/eslint-config-prettier": "^10.2.0", "@vue/test-utils": "^2.4.6", + "ajv": "^8.18.0", + "ajv-formats": "^3.0.1", "chartjs-plugin-dragdata": "^2.3.1", "eslint": "^10.0.2", "eslint-plugin-vue": "^10.8.0", @@ -2964,22 +2966,40 @@ } }, "node_modules/ajv": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz", - "integrity": "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz", + "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==", "dev": true, "license": "MIT", "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" }, "funding": { "type": "github", "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/ajv-formats": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", + "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, "node_modules/ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", @@ -3996,6 +4016,23 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint/node_modules/ajv": { + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz", + "integrity": "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, "node_modules/eslint/node_modules/eslint-visitor-keys": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", @@ -4009,6 +4046,13 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, "node_modules/espree": { "version": "11.1.1", "resolved": "https://registry.npmjs.org/espree/-/espree-11.1.1.tgz", @@ -4136,6 +4180,23 @@ "dev": true, "license": "MIT" }, + "node_modules/fast-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", + "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, "node_modules/file-entry-cache": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", @@ -4771,9 +4832,9 @@ "license": "MIT" }, "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "dev": true, "license": "MIT" }, @@ -8816,15 +8877,24 @@ "dev": true }, "ajv": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz", - "integrity": "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz", + "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==", "dev": true, "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + } + }, + "ajv-formats": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", + "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", + "dev": true, + "requires": { + "ajv": "^8.0.0" } }, "ansi-regex": { @@ -9469,11 +9539,29 @@ "optionator": "^0.9.3" }, "dependencies": { + "ajv": { + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz", + "integrity": "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, "eslint-visitor-keys": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true } } }, @@ -9627,6 +9715,12 @@ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "dev": true }, + "fast-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", + "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", + "dev": true + }, "file-entry-cache": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", @@ -10035,9 +10129,9 @@ "dev": true }, "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "dev": true }, "json-stable-stringify-without-jsonify": { diff --git a/package.json b/package.json index ae025eb..d3965d9 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,8 @@ "@vitejs/plugin-vue": "^6.0.4", "@vue/eslint-config-prettier": "^10.2.0", "@vue/test-utils": "^2.4.6", + "ajv": "^8.18.0", + "ajv-formats": "^3.0.1", "chartjs-plugin-dragdata": "^2.3.1", "eslint": "^10.0.2", "eslint-plugin-vue": "^10.8.0", diff --git a/src/mocks/fixtures/compare.json b/src/mocks/fixtures/compare.json index 7a4592f..106ad3e 100644 --- a/src/mocks/fixtures/compare.json +++ b/src/mocks/fixtures/compare.json @@ -1,92 +1,2040 @@ { "time": { "avg_cycle_time": { - "primary": [ - { "date": "2022-01-15", "value": 500000 }, - { "date": "2022-06-15", "value": 600000 }, - { "date": "2022-12-15", "value": 550000 } + "data": [ + { + "label": "Random", + "data": [ + { + "x": "2022-02-08T10:21:55.500000", + "y": 992716.8 + }, + { + "x": "2022-04-22T05:13:46.500000", + "y": 987056.538462 + }, + { + "x": "2022-07-04T00:05:37.500000", + "y": 966013.928571 + }, + { + "x": "2022-09-14T18:57:28.500000", + "y": 1053947.727273 + }, + { + "x": "2022-11-26T13:49:19.500000", + "y": 1022437.2 + }, + { + "x": "2023-02-07T08:41:10.500000", + "y": null + }, + { + "x": "2023-04-21T03:33:01.500000", + "y": null + }, + { + "x": "2023-07-02T22:24:52.500000", + "y": null + }, + { + "x": "2023-09-13T17:16:43.500000", + "y": null + }, + { + "x": "2023-11-25T12:08:34.500000", + "y": null + } + ] + }, + { + "label": "Rename test", + "data": [ + { + "x": "2022-02-08T10:21:55.500000", + "y": null + }, + { + "x": "2022-04-22T05:13:46.500000", + "y": null + }, + { + "x": "2022-07-04T00:05:37.500000", + "y": null + }, + { + "x": "2022-09-14T18:57:28.500000", + "y": null + }, + { + "x": "2022-11-26T13:49:19.500000", + "y": null + }, + { + "x": "2023-02-07T08:41:10.500000", + "y": 655939.704545 + }, + { + "x": "2023-04-21T03:33:01.500000", + "y": 706420.3 + }, + { + "x": "2023-07-02T22:24:52.500000", + "y": 685391.318777 + }, + { + "x": "2023-09-13T17:16:43.500000", + "y": 750618.004367 + }, + { + "x": "2023-11-25T12:08:34.500000", + "y": 1045819.746575 + } + ] + } ], - "secondary": [ - { "date": "2022-01-15", "value": 480000 }, - { "date": "2022-06-15", "value": 520000 }, - { "date": "2022-12-15", "value": 510000 } - ] + "x_axis": { + "min": "2022-01-03T00:56:00", + "max": "2023-12-31T21:34:30" + }, + "y_axis": { + "min": 0.0, + "max": 1053947.727273 + } }, "avg_cycle_efficiency": { - "primary": [ - { "label": "File A", "value": 0.75 } + "data": [ + { + "label": "Random", + "data": [ + { + "x": "2022-02-08T10:21:55.500000", + "y": 0.9520858577133375 + }, + { + "x": "2022-04-22T05:13:46.500000", + "y": 0.9510103791319828 + }, + { + "x": "2022-07-04T00:05:37.500000", + "y": 0.951128794006212 + }, + { + "x": "2022-09-14T18:57:28.500000", + "y": 0.9541128055432645 + }, + { + "x": "2022-11-26T13:49:19.500000", + "y": 0.948865057623344 + }, + { + "x": "2023-02-07T08:41:10.500000", + "y": null + }, + { + "x": "2023-04-21T03:33:01.500000", + "y": null + }, + { + "x": "2023-07-02T22:24:52.500000", + "y": null + }, + { + "x": "2023-09-13T17:16:43.500000", + "y": null + }, + { + "x": "2023-11-25T12:08:34.500000", + "y": null + } + ] + }, + { + "label": "Rename test", + "data": [ + { + "x": "2022-02-08T10:21:55.500000", + "y": null + }, + { + "x": "2022-04-22T05:13:46.500000", + "y": null + }, + { + "x": "2022-07-04T00:05:37.500000", + "y": null + }, + { + "x": "2022-09-14T18:57:28.500000", + "y": null + }, + { + "x": "2022-11-26T13:49:19.500000", + "y": null + }, + { + "x": "2023-02-07T08:41:10.500000", + "y": 0.42148058346412254 + }, + { + "x": "2023-04-21T03:33:01.500000", + "y": 0.43786209631281153 + }, + { + "x": "2023-07-02T22:24:52.500000", + "y": 0.42285399927001577 + }, + { + "x": "2023-09-13T17:16:43.500000", + "y": 0.4679748556087708 + }, + { + "x": "2023-11-25T12:08:34.500000", + "y": 0.5543827162029288 + } + ] + } ], - "secondary": [ - { "label": "File B", "value": 0.68 } - ] + "x_axis": { + "min": "2022-01-03T00:56:00", + "max": "2023-12-31T21:34:30" + }, + "y_axis": { + "min": 0.0, + "max": 1.0 + } }, "avg_process_time": { - "primary": [ - { "date": "2022-01-15", "value": 300000 }, - { "date": "2022-06-15", "value": 350000 }, - { "date": "2022-12-15", "value": 320000 } + "data": [ + { + "label": "Random", + "data": [ + { + "x": "2022-02-08T10:21:55.500000", + "y": 947421.6 + }, + { + "x": "2022-04-22T05:13:46.500000", + "y": 940211.538462 + }, + { + "x": "2022-07-04T00:05:37.500000", + "y": 919556.785714 + }, + { + "x": "2022-09-14T18:57:28.500000", + "y": 1007584.090909 + }, + { + "x": "2022-11-26T13:49:19.500000", + "y": 974444.4 + }, + { + "x": "2023-02-07T08:41:10.500000", + "y": null + }, + { + "x": "2023-04-21T03:33:01.500000", + "y": null + }, + { + "x": "2023-07-02T22:24:52.500000", + "y": null + }, + { + "x": "2023-09-13T17:16:43.500000", + "y": null + }, + { + "x": "2023-11-25T12:08:34.500000", + "y": null + } + ] + }, + { + "label": "Rename test", + "data": [ + { + "x": "2022-02-08T10:21:55.500000", + "y": null + }, + { + "x": "2022-04-22T05:13:46.500000", + "y": null + }, + { + "x": "2022-07-04T00:05:37.500000", + "y": null + }, + { + "x": "2022-09-14T18:57:28.500000", + "y": null + }, + { + "x": "2022-11-26T13:49:19.500000", + "y": null + }, + { + "x": "2023-02-07T08:41:10.500000", + "y": 605519.136364 + }, + { + "x": "2023-04-21T03:33:01.500000", + "y": 656062.977273 + }, + { + "x": "2023-07-02T22:24:52.500000", + "y": 640962.934498 + }, + { + "x": "2023-09-13T17:16:43.500000", + "y": 698784.899563 + }, + { + "x": "2023-11-25T12:08:34.500000", + "y": 991420.760274 + } + ] + } ], - "secondary": [ - { "date": "2022-01-15", "value": 280000 }, - { "date": "2022-06-15", "value": 310000 }, - { "date": "2022-12-15", "value": 290000 } - ] + "x_axis": { + "min": "2022-01-03T00:56:00", + "max": "2023-12-31T21:34:30" + }, + "y_axis": { + "min": 0.0, + "max": 1007584.090909 + } }, "avg_process_time_by_task": { - "primary": [ - { "label": ["Activity", "A"], "value": 120000 }, - { "label": ["Activity", "B"], "value": 80000 } + "data": [ + { + "label": "Random", + "data": [ + { + "x": "a", + "y": 131147.486631 + }, + { + "x": "b", + "y": 136627.058824 + }, + { + "x": "c", + "y": 133261.25 + }, + { + "x": "d", + "y": 132697.095436 + }, + { + "x": "e", + "y": 124442.891566 + }, + { + "x": "f", + "y": 127175.180723 + }, + { + "x": "g", + "y": 127627.826087 + }, + { + "x": "h", + "y": 128163.680982 + }, + { + "x": "i", + "y": 125588.756757 + }, + { + "x": "j", + "y": 101290.909091 + }, + { + "x": "k", + "y": 142543.75 + }, + { + "x": "l", + "y": 138070.879121 + }, + { + "x": "\u4f4f\u9662", + "y": null + }, + { + "x": "\u51fa\u9662", + "y": null + }, + { + "x": "\u6025\u8a3a\u624b\u8853\u6392\u7a0b", + "y": null + }, + { + "x": "\u624b\u8853", + "y": null + }, + { + "x": "\u6aa2\u50b7", + "y": null + }, + { + "x": "\u7167\u6703", + "y": null + }, + { + "x": "\u767c\u7167\u6703", + "y": null + }, + { + "x": "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "y": null + }, + { + "x": "\u8853\u524d\u6e96\u5099", + "y": null + } + ] + }, + { + "label": "Rename test", + "data": [ + { + "x": "a", + "y": null + }, + { + "x": "b", + "y": null + }, + { + "x": "c", + "y": null + }, + { + "x": "d", + "y": null + }, + { + "x": "e", + "y": null + }, + { + "x": "f", + "y": null + }, + { + "x": "g", + "y": null + }, + { + "x": "h", + "y": null + }, + { + "x": "i", + "y": null + }, + { + "x": "j", + "y": null + }, + { + "x": "k", + "y": null + }, + { + "x": "l", + "y": null + }, + { + "x": "\u4f4f\u9662", + "y": 1398513.613546 + }, + { + "x": "\u51fa\u9662", + "y": 0.0 + }, + { + "x": "\u6025\u8a3a\u624b\u8853\u6392\u7a0b", + "y": 0.0 + }, + { + "x": "\u624b\u8853", + "y": 6731.333333 + }, + { + "x": "\u6aa2\u50b7", + "y": 0.0 + }, + { + "x": "\u7167\u6703", + "y": 2718.458333 + }, + { + "x": "\u767c\u7167\u6703", + "y": 0.0 + }, + { + "x": "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "y": 0.0 + }, + { + "x": "\u8853\u524d\u6e96\u5099", + "y": 30583.222222 + } + ] + } ], - "secondary": [ - { "label": ["Activity", "A"], "value": 110000 }, - { "label": ["Activity", "B"], "value": 95000 } - ] + "x_axis": { + "labels": [ + "a", + "b", + "c", + "d", + "e", + "f", + "g", + "h", + "i", + "j", + "k", + "l", + "\u4f4f\u9662", + "\u51fa\u9662", + "\u6025\u8a3a\u624b\u8853\u6392\u7a0b", + "\u624b\u8853", + "\u6aa2\u50b7", + "\u7167\u6703", + "\u767c\u7167\u6703", + "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "\u8853\u524d\u6e96\u5099" + ] + }, + "y_axis": { + "min": 0.0, + "max": 1398513.613546 + } }, "avg_waiting_time": { - "primary": [ - { "date": "2022-01-15", "value": 200000 }, - { "date": "2022-06-15", "value": 250000 }, - { "date": "2022-12-15", "value": 230000 } + "data": [ + { + "label": "Random", + "data": [ + { + "x": "2022-02-08T10:21:55.500000", + "y": 45295.2 + }, + { + "x": "2022-04-22T05:13:46.500000", + "y": 46845.0 + }, + { + "x": "2022-07-04T00:05:37.500000", + "y": 46457.142857 + }, + { + "x": "2022-09-14T18:57:28.500000", + "y": 46363.636364 + }, + { + "x": "2022-11-26T13:49:19.500000", + "y": 47992.8 + }, + { + "x": "2023-02-07T08:41:10.500000", + "y": null + }, + { + "x": "2023-04-21T03:33:01.500000", + "y": null + }, + { + "x": "2023-07-02T22:24:52.500000", + "y": null + }, + { + "x": "2023-09-13T17:16:43.500000", + "y": null + }, + { + "x": "2023-11-25T12:08:34.500000", + "y": null + } + ] + }, + { + "label": "Rename test", + "data": [ + { + "x": "2022-02-08T10:21:55.500000", + "y": null + }, + { + "x": "2022-04-22T05:13:46.500000", + "y": null + }, + { + "x": "2022-07-04T00:05:37.500000", + "y": null + }, + { + "x": "2022-09-14T18:57:28.500000", + "y": null + }, + { + "x": "2022-11-26T13:49:19.500000", + "y": null + }, + { + "x": "2023-02-07T08:41:10.500000", + "y": 50420.568182 + }, + { + "x": "2023-04-21T03:33:01.500000", + "y": 50357.322727 + }, + { + "x": "2023-07-02T22:24:52.500000", + "y": 44428.384279 + }, + { + "x": "2023-09-13T17:16:43.500000", + "y": 51833.104803 + }, + { + "x": "2023-11-25T12:08:34.500000", + "y": 54398.986301 + } + ] + } ], - "secondary": [ - { "date": "2022-01-15", "value": 200000 }, - { "date": "2022-06-15", "value": 210000 }, - { "date": "2022-12-15", "value": 220000 } - ] + "x_axis": { + "min": "2022-01-03T00:56:00", + "max": "2023-12-31T21:34:30" + }, + "y_axis": { + "min": 0.0, + "max": 54398.986301 + } }, "avg_waiting_time_by_edge": { - "primary": [ - { "label": ["A", "B"], "value": 150000 }, - { "label": ["B", "C"], "value": 100000 } + "data": [ + { + "label": "Random", + "data": [ + { + "x": [ + "a", + "a" + ], + "y": 6420.0 + }, + { + "x": [ + "a", + "d" + ], + "y": 7506.352941 + }, + { + "x": [ + "a", + "f" + ], + "y": 5940.0 + }, + { + "x": [ + "a", + "g" + ], + "y": 5175.0 + }, + { + "x": [ + "a", + "i" + ], + "y": 6260.0 + }, + { + "x": [ + "b", + "a" + ], + "y": 6840.0 + }, + { + "x": [ + "b", + "b" + ], + "y": 3540.0 + }, + { + "x": [ + "b", + "g" + ], + "y": 7273.636364 + }, + { + "x": [ + "b", + "i" + ], + "y": 6288.0 + }, + { + "x": [ + "c", + "g" + ], + "y": 11460.0 + }, + { + "x": [ + "c", + "h" + ], + "y": 6821.73913 + }, + { + "x": [ + "c", + "k" + ], + "y": 13500.0 + }, + { + "x": [ + "d", + "c" + ], + "y": 11760.0 + }, + { + "x": [ + "d", + "e" + ], + "y": 7166.694915 + }, + { + "x": [ + "d", + "g" + ], + "y": 8080.0 + }, + { + "x": [ + "d", + "i" + ], + "y": 3600.0 + }, + { + "x": [ + "e", + "a" + ], + "y": 7260.0 + }, + { + "x": [ + "e", + "d" + ], + "y": 6780.0 + }, + { + "x": [ + "e", + "f" + ], + "y": 7288.474576 + }, + { + "x": [ + "e", + "g" + ], + "y": 14040.0 + }, + { + "x": [ + "e", + "k" + ], + "y": 13620.0 + }, + { + "x": [ + "e", + "l" + ], + "y": 3780.0 + }, + { + "x": [ + "f", + "d" + ], + "y": 10140.0 + }, + { + "x": [ + "f", + "e" + ], + "y": 3940.0 + }, + { + "x": [ + "f", + "g" + ], + "y": 6983.271028 + }, + { + "x": [ + "f", + "j" + ], + "y": 8170.909091 + }, + { + "x": [ + "f", + "l" + ], + "y": 6667.5 + }, + { + "x": [ + "g", + "c" + ], + "y": 2400.0 + }, + { + "x": [ + "g", + "e" + ], + "y": 11880.0 + }, + { + "x": [ + "g", + "f" + ], + "y": 5302.5 + }, + { + "x": [ + "g", + "g" + ], + "y": 11400.0 + }, + { + "x": [ + "g", + "h" + ], + "y": 7592.820513 + }, + { + "x": [ + "g", + "i" + ], + "y": 7140.0 + }, + { + "x": [ + "g", + "k" + ], + "y": 8116.0 + }, + { + "x": [ + "g", + "l" + ], + "y": 7457.368421 + }, + { + "x": [ + "h", + "i" + ], + "y": 7288.888889 + }, + { + "x": [ + "h", + "l" + ], + "y": 6960.0 + }, + { + "x": [ + "i", + "a" + ], + "y": 8910.0 + }, + { + "x": [ + "i", + "b" + ], + "y": 5880.0 + }, + { + "x": [ + "i", + "c" + ], + "y": 5460.0 + }, + { + "x": [ + "i", + "d" + ], + "y": 7710.447761 + }, + { + "x": [ + "i", + "e" + ], + "y": 9153.333333 + }, + { + "x": [ + "i", + "g" + ], + "y": 8640.0 + }, + { + "x": [ + "i", + "i" + ], + "y": 6324.0 + }, + { + "x": [ + "i", + "k" + ], + "y": 3240.0 + }, + { + "x": [ + "i", + "l" + ], + "y": 7188.75 + }, + { + "x": [ + "\u6025\u8a3a\u624b\u8853\u6392\u7a0b", + "\u6aa2\u50b7" + ], + "y": null + }, + { + "x": [ + "\u624b\u8853", + "\u4f4f\u9662" + ], + "y": null + }, + { + "x": [ + "\u624b\u8853", + "\u51fa\u9662" + ], + "y": null + }, + { + "x": [ + "\u6aa2\u50b7", + "\u767c\u7167\u6703" + ], + "y": null + }, + { + "x": [ + "\u6aa2\u50b7", + "\u7b2c\u4e00\u6b21\u91ab\u56d1" + ], + "y": null + }, + { + "x": [ + "\u7167\u6703", + "\u4f4f\u9662" + ], + "y": null + }, + { + "x": [ + "\u7167\u6703", + "\u51fa\u9662" + ], + "y": null + }, + { + "x": [ + "\u767c\u7167\u6703", + "\u7167\u6703" + ], + "y": null + }, + { + "x": [ + "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "\u4f4f\u9662" + ], + "y": null + }, + { + "x": [ + "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "\u51fa\u9662" + ], + "y": null + }, + { + "x": [ + "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "\u6025\u8a3a\u624b\u8853\u6392\u7a0b" + ], + "y": null + }, + { + "x": [ + "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "\u767c\u7167\u6703" + ], + "y": null + }, + { + "x": [ + "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "\u8853\u524d\u6e96\u5099" + ], + "y": null + }, + { + "x": [ + "\u8853\u524d\u6e96\u5099", + "\u624b\u8853" + ], + "y": null + } + ] + }, + { + "label": "Rename test", + "data": [ + { + "x": [ + "a", + "a" + ], + "y": null + }, + { + "x": [ + "a", + "d" + ], + "y": null + }, + { + "x": [ + "a", + "f" + ], + "y": null + }, + { + "x": [ + "a", + "g" + ], + "y": null + }, + { + "x": [ + "a", + "i" + ], + "y": null + }, + { + "x": [ + "b", + "a" + ], + "y": null + }, + { + "x": [ + "b", + "b" + ], + "y": null + }, + { + "x": [ + "b", + "g" + ], + "y": null + }, + { + "x": [ + "b", + "i" + ], + "y": null + }, + { + "x": [ + "c", + "g" + ], + "y": null + }, + { + "x": [ + "c", + "h" + ], + "y": null + }, + { + "x": [ + "c", + "k" + ], + "y": null + }, + { + "x": [ + "d", + "c" + ], + "y": null + }, + { + "x": [ + "d", + "e" + ], + "y": null + }, + { + "x": [ + "d", + "g" + ], + "y": null + }, + { + "x": [ + "d", + "i" + ], + "y": null + }, + { + "x": [ + "e", + "a" + ], + "y": null + }, + { + "x": [ + "e", + "d" + ], + "y": null + }, + { + "x": [ + "e", + "f" + ], + "y": null + }, + { + "x": [ + "e", + "g" + ], + "y": null + }, + { + "x": [ + "e", + "k" + ], + "y": null + }, + { + "x": [ + "e", + "l" + ], + "y": null + }, + { + "x": [ + "f", + "d" + ], + "y": null + }, + { + "x": [ + "f", + "e" + ], + "y": null + }, + { + "x": [ + "f", + "g" + ], + "y": null + }, + { + "x": [ + "f", + "j" + ], + "y": null + }, + { + "x": [ + "f", + "l" + ], + "y": null + }, + { + "x": [ + "g", + "c" + ], + "y": null + }, + { + "x": [ + "g", + "e" + ], + "y": null + }, + { + "x": [ + "g", + "f" + ], + "y": null + }, + { + "x": [ + "g", + "g" + ], + "y": null + }, + { + "x": [ + "g", + "h" + ], + "y": null + }, + { + "x": [ + "g", + "i" + ], + "y": null + }, + { + "x": [ + "g", + "k" + ], + "y": null + }, + { + "x": [ + "g", + "l" + ], + "y": null + }, + { + "x": [ + "h", + "i" + ], + "y": null + }, + { + "x": [ + "h", + "l" + ], + "y": null + }, + { + "x": [ + "i", + "a" + ], + "y": null + }, + { + "x": [ + "i", + "b" + ], + "y": null + }, + { + "x": [ + "i", + "c" + ], + "y": null + }, + { + "x": [ + "i", + "d" + ], + "y": null + }, + { + "x": [ + "i", + "e" + ], + "y": null + }, + { + "x": [ + "i", + "g" + ], + "y": null + }, + { + "x": [ + "i", + "i" + ], + "y": null + }, + { + "x": [ + "i", + "k" + ], + "y": null + }, + { + "x": [ + "i", + "l" + ], + "y": null + }, + { + "x": [ + "\u6025\u8a3a\u624b\u8853\u6392\u7a0b", + "\u6aa2\u50b7" + ], + "y": 31991.0 + }, + { + "x": [ + "\u624b\u8853", + "\u4f4f\u9662" + ], + "y": 35343.333333 + }, + { + "x": [ + "\u624b\u8853", + "\u51fa\u9662" + ], + "y": 74344.0 + }, + { + "x": [ + "\u6aa2\u50b7", + "\u767c\u7167\u6703" + ], + "y": 99.0 + }, + { + "x": [ + "\u6aa2\u50b7", + "\u7b2c\u4e00\u6b21\u91ab\u56d1" + ], + "y": 847.71972 + }, + { + "x": [ + "\u7167\u6703", + "\u4f4f\u9662" + ], + "y": 22635.090909 + }, + { + "x": [ + "\u7167\u6703", + "\u51fa\u9662" + ], + "y": 55471.0 + }, + { + "x": [ + "\u767c\u7167\u6703", + "\u7167\u6703" + ], + "y": 197.791667 + }, + { + "x": [ + "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "\u4f4f\u9662" + ], + "y": 76441.599581 + }, + { + "x": [ + "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "\u51fa\u9662" + ], + "y": 22672.9 + }, + { + "x": [ + "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "\u6025\u8a3a\u624b\u8853\u6392\u7a0b" + ], + "y": 20600.2 + }, + { + "x": [ + "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "\u767c\u7167\u6703" + ], + "y": 77.083333 + }, + { + "x": [ + "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "\u8853\u524d\u6e96\u5099" + ], + "y": 22638.555556 + }, + { + "x": [ + "\u8853\u524d\u6e96\u5099", + "\u624b\u8853" + ], + "y": 2245.777778 + } + ] + } ], - "secondary": [ - { "label": ["A", "B"], "value": 140000 }, - { "label": ["B", "C"], "value": 110000 } - ] + "x_axis": { + "labels": [ + [ + "a", + "a" + ], + [ + "a", + "d" + ], + [ + "a", + "f" + ], + [ + "a", + "g" + ], + [ + "a", + "i" + ], + [ + "b", + "a" + ], + [ + "b", + "b" + ], + [ + "b", + "g" + ], + [ + "b", + "i" + ], + [ + "c", + "g" + ], + [ + "c", + "h" + ], + [ + "c", + "k" + ], + [ + "d", + "c" + ], + [ + "d", + "e" + ], + [ + "d", + "g" + ], + [ + "d", + "i" + ], + [ + "e", + "a" + ], + [ + "e", + "d" + ], + [ + "e", + "f" + ], + [ + "e", + "g" + ], + [ + "e", + "k" + ], + [ + "e", + "l" + ], + [ + "f", + "d" + ], + [ + "f", + "e" + ], + [ + "f", + "g" + ], + [ + "f", + "j" + ], + [ + "f", + "l" + ], + [ + "g", + "c" + ], + [ + "g", + "e" + ], + [ + "g", + "f" + ], + [ + "g", + "g" + ], + [ + "g", + "h" + ], + [ + "g", + "i" + ], + [ + "g", + "k" + ], + [ + "g", + "l" + ], + [ + "h", + "i" + ], + [ + "h", + "l" + ], + [ + "i", + "a" + ], + [ + "i", + "b" + ], + [ + "i", + "c" + ], + [ + "i", + "d" + ], + [ + "i", + "e" + ], + [ + "i", + "g" + ], + [ + "i", + "i" + ], + [ + "i", + "k" + ], + [ + "i", + "l" + ], + [ + "\u6025\u8a3a\u624b\u8853\u6392\u7a0b", + "\u6aa2\u50b7" + ], + [ + "\u624b\u8853", + "\u4f4f\u9662" + ], + [ + "\u624b\u8853", + "\u51fa\u9662" + ], + [ + "\u6aa2\u50b7", + "\u767c\u7167\u6703" + ], + [ + "\u6aa2\u50b7", + "\u7b2c\u4e00\u6b21\u91ab\u56d1" + ], + [ + "\u7167\u6703", + "\u4f4f\u9662" + ], + [ + "\u7167\u6703", + "\u51fa\u9662" + ], + [ + "\u767c\u7167\u6703", + "\u7167\u6703" + ], + [ + "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "\u4f4f\u9662" + ], + [ + "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "\u51fa\u9662" + ], + [ + "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "\u6025\u8a3a\u624b\u8853\u6392\u7a0b" + ], + [ + "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "\u767c\u7167\u6703" + ], + [ + "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "\u8853\u524d\u6e96\u5099" + ], + [ + "\u8853\u524d\u6e96\u5099", + "\u624b\u8853" + ] + ] + }, + "y_axis": { + "min": 0.0, + "max": 76441.599581 + } } }, "freq": { "cases": { - "primary": [ - { "count": 100 }, - { "count": 120 }, - { "count": 110 } + "data": [ + { + "label": "Random", + "data": [ + { + "x": "2022-02-08T10:21:55.500000", + "y": 55 + }, + { + "x": "2022-04-22T05:13:46.500000", + "y": 57 + }, + { + "x": "2022-07-04T00:05:37.500000", + "y": 54 + }, + { + "x": "2022-09-14T18:57:28.500000", + "y": 43 + }, + { + "x": "2022-11-26T13:49:19.500000", + "y": 43 + }, + { + "x": "2023-02-07T08:41:10.500000", + "y": 0 + }, + { + "x": "2023-04-21T03:33:01.500000", + "y": 0 + }, + { + "x": "2023-07-02T22:24:52.500000", + "y": 0 + }, + { + "x": "2023-09-13T17:16:43.500000", + "y": 0 + }, + { + "x": "2023-11-25T12:08:34.500000", + "y": 0 + } + ] + }, + { + "label": "Rename test", + "data": [ + { + "x": "2022-02-08T10:21:55.500000", + "y": 0 + }, + { + "x": "2022-04-22T05:13:46.500000", + "y": 0 + }, + { + "x": "2022-07-04T00:05:37.500000", + "y": 0 + }, + { + "x": "2022-09-14T18:57:28.500000", + "y": 0 + }, + { + "x": "2022-11-26T13:49:19.500000", + "y": 1 + }, + { + "x": "2023-02-07T08:41:10.500000", + "y": 200 + }, + { + "x": "2023-04-21T03:33:01.500000", + "y": 227 + }, + { + "x": "2023-07-02T22:24:52.500000", + "y": 221 + }, + { + "x": "2023-09-13T17:16:43.500000", + "y": 232 + }, + { + "x": "2023-11-25T12:08:34.500000", + "y": 119 + } + ] + } ], - "secondary": [ - { "count": 95 }, - { "count": 105 }, - { "count": 100 } - ] + "x_axis": { + "min": "2022-01-03T00:56:00", + "max": "2023-12-31T21:34:30" + }, + "y_axis": { + "min": 0, + "max": 232 + } }, "cases_by_task": { - "primary": [ - { "label": ["Activity", "A"], "value": 200 }, - { "label": ["Activity", "B"], "value": 150 } + "data": [ + { + "label": "Random", + "data": [ + { + "x": "a", + "y": 184 + }, + { + "x": "b", + "y": 32 + }, + { + "x": "c", + "y": 48 + }, + { + "x": "d", + "y": 241 + }, + { + "x": "e", + "y": 249 + }, + { + "x": "f", + "y": 249 + }, + { + "x": "g", + "y": 250 + }, + { + "x": "h", + "y": 163 + }, + { + "x": "i", + "y": 175 + }, + { + "x": "j", + "y": 22 + }, + { + "x": "k", + "y": 48 + }, + { + "x": "l", + "y": 182 + }, + { + "x": "\u4f4f\u9662", + "y": 0 + }, + { + "x": "\u51fa\u9662", + "y": 0 + }, + { + "x": "\u6025\u8a3a\u624b\u8853\u6392\u7a0b", + "y": 0 + }, + { + "x": "\u624b\u8853", + "y": 0 + }, + { + "x": "\u6aa2\u50b7", + "y": 0 + }, + { + "x": "\u7167\u6703", + "y": 0 + }, + { + "x": "\u767c\u7167\u6703", + "y": 0 + }, + { + "x": "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "y": 0 + }, + { + "x": "\u8853\u524d\u6e96\u5099", + "y": 0 + } + ] + }, + { + "label": "Rename test", + "data": [ + { + "x": "a", + "y": 0 + }, + { + "x": "b", + "y": 0 + }, + { + "x": "c", + "y": 0 + }, + { + "x": "d", + "y": 0 + }, + { + "x": "e", + "y": 0 + }, + { + "x": "f", + "y": 0 + }, + { + "x": "g", + "y": 0 + }, + { + "x": "h", + "y": 0 + }, + { + "x": "i", + "y": 0 + }, + { + "x": "j", + "y": 0 + }, + { + "x": "k", + "y": 0 + }, + { + "x": "l", + "y": 0 + }, + { + "x": "\u4f4f\u9662", + "y": 502 + }, + { + "x": "\u51fa\u9662", + "y": 1000 + }, + { + "x": "\u6025\u8a3a\u624b\u8853\u6392\u7a0b", + "y": 9 + }, + { + "x": "\u624b\u8853", + "y": 9 + }, + { + "x": "\u6aa2\u50b7", + "y": 1000 + }, + { + "x": "\u7167\u6703", + "y": 24 + }, + { + "x": "\u767c\u7167\u6703", + "y": 24 + }, + { + "x": "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "y": 1000 + }, + { + "x": "\u8853\u524d\u6e96\u5099", + "y": 9 + } + ] + } ], - "secondary": [ - { "label": ["Activity", "A"], "value": 180 }, - { "label": ["Activity", "B"], "value": 160 } - ] + "x_axis": { + "labels": [ + "a", + "b", + "c", + "d", + "e", + "f", + "g", + "h", + "i", + "j", + "k", + "l", + "\u4f4f\u9662", + "\u51fa\u9662", + "\u6025\u8a3a\u624b\u8853\u6392\u7a0b", + "\u624b\u8853", + "\u6aa2\u50b7", + "\u7167\u6703", + "\u767c\u7167\u6703", + "\u7b2c\u4e00\u6b21\u91ab\u56d1", + "\u8853\u524d\u6e96\u5099" + ] + }, + "y_axis": { + "min": 0, + "max": 1000 + } } } -} +} \ No newline at end of file diff --git a/src/mocks/fixtures/discover.json b/src/mocks/fixtures/discover.json index ead8249..5dd6401 100644 --- a/src/mocks/fixtures/discover.json +++ b/src/mocks/fixtures/discover.json @@ -1,2113 +1,2113 @@ { - "process_map": { - "vertices": [ - { - "id": 1, - "type": "event", - "event_type": "start" - }, - { - "id": 2, - "type": "activity", - "activity_type": "task", - "label": "a", - "freq": { - "total": 187, - "rel_freq": 0.10048361096184846, - "average": 0.7420634920634921, - "median": 1.0, - "max": 4, - "min": 0, - "cases": 184 - }, - "duration": { - "total": 24524580.0, - "rel_duration": 0.09710585158598249, - "average": 131147.486631, - "median": 129480.0, - "max": 259080.0, - "min": 480.0 - } - }, - { - "id": 3, - "type": "activity", - "activity_type": "task", - "label": "b", - "freq": { - "total": 34, - "rel_freq": 0.018269747447608814, - "average": 0.1349206349206349, - "median": 0.0, - "max": 3, - "min": 0, - "cases": 32 - }, - "duration": { - "total": 4645320.0, - "rel_duration": 0.018393291729742006, - "average": 136627.058824, - "median": 144840.0, - "max": 252660.0, - "min": 3300.0 - } - }, - { - "id": 4, - "type": "activity", - "activity_type": "task", - "label": "c", - "freq": { - "total": 48, - "rel_freq": 0.025792584631918324, - "average": 0.19047619047619047, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 48 - }, - "duration": { - "total": 6396540.0, - "rel_duration": 0.0253273028081949, - "average": 133261.25, - "median": 147270.0, - "max": 255360.0, - "min": 5700.0 - } - }, - { - "id": 5, - "type": "activity", - "activity_type": "task", - "label": "d", - "freq": { - "total": 241, - "rel_freq": 0.12950026867275657, - "average": 0.9563492063492064, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 241 - }, - "duration": { - "total": 31980000.0, - "rel_duration": 0.12662582330542338, - "average": 132697.095436, - "median": 133860.0, - "max": 259080.0, - "min": 420.0 - } - }, - { - "id": 6, - "type": "activity", - "activity_type": "task", - "label": "f", - "freq": { - "total": 249, - "rel_freq": 0.1337990327780763, - "average": 0.9880952380952381, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 249 - }, - "duration": { - "total": 31666620.0, - "rel_duration": 0.1253849852657907, - "average": 127175.180723, - "median": 122040.0, - "max": 258360.0, - "min": 1380.0 - } - }, - { - "id": 7, - "type": "activity", - "activity_type": "task", - "label": "g", - "freq": { - "total": 253, - "rel_freq": 0.13594841483073616, - "average": 1.003968253968254, - "median": 1.0, - "max": 4, - "min": 0, - "cases": 250 - }, - "duration": { - "total": 32289840.0, - "rel_duration": 0.12785264460288906, - "average": 127627.826087, - "median": 121620.0, - "max": 256980.0, - "min": 720.0 - } - }, - { - "id": 8, - "type": "activity", - "activity_type": "task", - "label": "i", - "freq": { - "total": 185, - "rel_freq": 0.09940891993551854, - "average": 0.7341269841269841, - "median": 1.0, - "max": 6, - "min": 0, - "cases": 175 - }, - "duration": { - "total": 23233920.0, - "rel_duration": 0.09199544242064861, - "average": 125588.756757, - "median": 123480.0, - "max": 258540.0, - "min": 1020.0 - } - }, - { - "id": 9, - "type": "activity", - "activity_type": "task", - "label": "h", - "freq": { - "total": 163, - "rel_freq": 0.08758731864588931, - "average": 0.6468253968253969, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 163 - }, - "duration": { - "total": 20890680.0, - "rel_duration": 0.082717309393688, - "average": 128163.680982, - "median": 125280.0, - "max": 258660.0, - "min": 3480.0 - } - }, - { - "id": 10, - "type": "activity", - "activity_type": "task", - "label": "k", - "freq": { - "total": 48, - "rel_freq": 0.025792584631918324, - "average": 0.19047619047619047, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 48 - }, - "duration": { - "total": 6842100.0, - "rel_duration": 0.027091511746029934, - "average": 142543.75, - "median": 149160.0, - "max": 254400.0, - "min": 9540.0 - } - }, - { - "id": 11, - "type": "activity", - "activity_type": "task", - "label": "e", - "freq": { - "total": 249, - "rel_freq": 0.1337990327780763, - "average": 0.9880952380952381, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 249 - }, - "duration": { - "total": 30986280.0, - "rel_duration": 0.12269115747881096, - "average": 124442.891566, - "median": 118740.0, - "max": 258660.0, - "min": 720.0 - } - }, - { - "id": 12, - "type": "activity", - "activity_type": "task", - "label": "j", - "freq": { - "total": 22, - "rel_freq": 0.011821601289629231, - "average": 0.0873015873015873, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 22 - }, - "duration": { - "total": 2228400.0, - "rel_duration": 0.008823420408186537, - "average": 101290.909091, - "median": 72420.0, - "max": 241860.0, - "min": 13980.0 - } - }, - { - "id": 13, - "type": "activity", - "activity_type": "task", - "label": "l", - "freq": { - "total": 182, - "rel_freq": 0.09779688339602365, - "average": 0.7222222222222222, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 182 - }, - "duration": { - "total": 25128900.0, - "rel_duration": 0.09949867577422307, - "average": 138070.879121, - "median": 139770.0, - "max": 258360.0, - "min": 2460.0 - } - }, - { - "id": 14, - "type": "event", - "event_type": "end" - } - ], - "edges": [ - { - "head": 2, - "tail": 1, - "freq": { - "total": 175, - "rel_freq": 0.10876320696084525, - "average": 0.6944444444444444, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 175 - }, - "duration": null - }, - { - "head": 3, - "tail": 1, - "freq": { - "total": 32, - "rel_freq": 0.019888129272840272, - "average": 0.12698412698412698, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 32 - }, - "duration": null - }, - { - "head": 4, - "tail": 1, - "freq": { - "total": 45, - "rel_freq": 0.027967681789931635, - "average": 0.17857142857142858, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 45 - }, - "duration": null - }, - { - "head": 2, - "tail": 2, - "freq": { - "total": 1, - "rel_freq": 0.0006215040397762585, - "average": 0.003968253968253968, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 1 - }, - "duration": { - "total": 6420.0, - "rel_duration": 2.542019342153903e-05, - "average": 6420.0, - "median": 6420.0, - "max": 6420.0, - "min": 6420.0 - } - }, - { - "head": 5, - "tail": 2, - "freq": { - "total": 170, - "rel_freq": 0.10565568676196395, - "average": 0.6746031746031746, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 170 - }, - "duration": { - "total": 1276080.0, - "rel_duration": 0.00505267919335787, - "average": 7506.352941, - "median": 7440.0, - "max": 14340.0, - "min": 300.0 - } - }, - { - "head": 6, - "tail": 2, - "freq": { - "total": 5, - "rel_freq": 0.003107520198881293, - "average": 0.01984126984126984, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 5 - }, - "duration": { - "total": 29700.0, - "rel_duration": 0.00011759809106226, - "average": 5940.0, - "median": 4920.0, - "max": 10500.0, - "min": 1380.0 - } - }, - { - "head": 7, - "tail": 2, - "freq": { - "total": 8, - "rel_freq": 0.004972032318210068, - "average": 0.031746031746031744, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 8 - }, - "duration": { - "total": 41400.0, - "rel_duration": 0.00016392461178375636, - "average": 5175.0, - "median": 4230.0, - "max": 14340.0, - "min": 720.0 - } - }, - { - "head": 8, - "tail": 2, - "freq": { - "total": 3, - "rel_freq": 0.0018645121193287756, - "average": 0.011904761904761904, - "median": 0.0, - "max": 3, - "min": 0, - "cases": 1 - }, - "duration": { - "total": 18780.0, - "rel_duration": 7.436000505553005e-05, - "average": 6260.0, - "median": 5700.0, - "max": 7620.0, - "min": 5460.0 - } - }, - { - "head": 2, - "tail": 3, - "freq": { - "total": 1, - "rel_freq": 0.0006215040397762585, - "average": 0.003968253968253968, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 1 - }, - "duration": { - "total": 6840.0, - "rel_duration": 2.708319672949018e-05, - "average": 6840.0, - "median": 6840.0, - "max": 6840.0, - "min": 6840.0 - } - }, - { - "head": 3, - "tail": 3, - "freq": { - "total": 1, - "rel_freq": 0.0006215040397762585, - "average": 0.003968253968253968, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 1 - }, - "duration": { - "total": 3540.0, - "rel_duration": 1.4016742167016848e-05, - "average": 3540.0, - "median": 3540.0, - "max": 3540.0, - "min": 3540.0 - } - }, - { - "head": 7, - "tail": 3, - "freq": { - "total": 22, - "rel_freq": 0.013673088875077687, - "average": 0.0873015873015873, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 22 - }, - "duration": { - "total": 160020.0, - "rel_duration": 0.0006336042603293886, - "average": 7273.636364, - "median": 7320.0, - "max": 14160.0, - "min": 240.0 - } - }, - { - "head": 8, - "tail": 3, - "freq": { - "total": 10, - "rel_freq": 0.006215040397762586, - "average": 0.03968253968253968, - "median": 0.0, - "max": 2, - "min": 0, - "cases": 9 - }, - "duration": { - "total": 62880.0, - "rel_duration": 0.00024897535239040095, - "average": 6288.0, - "median": 4350.0, - "max": 13560.0, - "min": 1380.0 - } - }, - { - "head": 7, - "tail": 4, - "freq": { - "total": 1, - "rel_freq": 0.0006215040397762585, - "average": 0.003968253968253968, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 1 - }, - "duration": { - "total": 11460.0, - "rel_duration": 4.5376233116952846e-05, - "average": 11460.0, - "median": 11460.0, - "max": 11460.0, - "min": 11460.0 - } - }, - { - "head": 9, - "tail": 4, - "freq": { - "total": 46, - "rel_freq": 0.028589185829707892, - "average": 0.18253968253968253, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 46 - }, - "duration": { - "total": 313800.0, - "rel_duration": 0.001242501042940646, - "average": 6821.73913, - "median": 6870.0, - "max": 14340.0, - "min": 300.0 - } - }, - { - "head": 10, - "tail": 4, - "freq": { - "total": 1, - "rel_freq": 0.0006215040397762585, - "average": 0.003968253968253968, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 1 - }, - "duration": { - "total": 13500.0, - "rel_duration": 5.3453677755572725e-05, - "average": 13500.0, - "median": 13500.0, - "max": 13500.0, - "min": 13500.0 - } - }, - { - "head": 4, - "tail": 5, - "freq": { - "total": 1, - "rel_freq": 0.0006215040397762585, - "average": 0.003968253968253968, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 1 - }, - "duration": { - "total": 11760.0, - "rel_duration": 4.656409262263224e-05, - "average": 11760.0, - "median": 11760.0, - "max": 11760.0, - "min": 11760.0 - } - }, - { - "head": 7, - "tail": 5, - "freq": { - "total": 3, - "rel_freq": 0.0018645121193287756, - "average": 0.011904761904761904, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 3 - }, - "duration": { - "total": 24240.0, - "rel_duration": 9.597904805889502e-05, - "average": 8080.0, - "median": 8280.0, - "max": 11160.0, - "min": 4800.0 - } - }, - { - "head": 8, - "tail": 5, - "freq": { - "total": 1, - "rel_freq": 0.0006215040397762585, - "average": 0.003968253968253968, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 1 - }, - "duration": { - "total": 3600.0, - "rel_duration": 1.4254314068152727e-05, - "average": 3600.0, - "median": 3600.0, - "max": 3600.0, - "min": 3600.0 - } - }, - { - "head": 11, - "tail": 5, - "freq": { - "total": 236, - "rel_freq": 0.14667495338719702, - "average": 0.9365079365079365, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 236 - }, - "duration": { - "total": 1691340.0, - "rel_duration": 0.0066969143211192865, - "average": 7166.694915, - "median": 7620.0, - "max": 14280.0, - "min": 240.0 - } - }, - { - "head": 5, - "tail": 6, - "freq": { - "total": 2, - "rel_freq": 0.001243008079552517, - "average": 0.007936507936507936, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 2 - }, - "duration": { - "total": 20280.0, - "rel_duration": 8.029930258392703e-05, - "average": 10140.0, - "median": 10140.0, - "max": 12060.0, - "min": 8220.0 - } - }, - { - "head": 7, - "tail": 6, - "freq": { - "total": 214, - "rel_freq": 0.13300186451211932, - "average": 0.8492063492063492, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 214 - }, - "duration": { - "total": 1494420.0, - "rel_duration": 0.005917203341591333, - "average": 6983.271028, - "median": 6870.0, - "max": 14400.0, - "min": 120.0 - } - }, - { - "head": 11, - "tail": 6, - "freq": { - "total": 3, - "rel_freq": 0.0018645121193287756, - "average": 0.011904761904761904, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 3 - }, - "duration": { - "total": 11820.0, - "rel_duration": 4.680166452376812e-05, - "average": 3940.0, - "median": 3780.0, - "max": 7860.0, - "min": 180.0 - } - }, - { - "head": 12, - "tail": 6, - "freq": { - "total": 22, - "rel_freq": 0.013673088875077687, - "average": 0.0873015873015873, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 22 - }, - "duration": { - "total": 179760.0, - "rel_duration": 0.0007117654158030929, - "average": 8170.909091, - "median": 8310.0, - "max": 14040.0, - "min": 120.0 - } - }, - { - "head": 13, - "tail": 6, - "freq": { - "total": 8, - "rel_freq": 0.004972032318210068, - "average": 0.031746031746031744, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 8 - }, - "duration": { - "total": 53340.0, - "rel_duration": 0.00021120142010979623, - "average": 6667.5, - "median": 7290.0, - "max": 11700.0, - "min": 2040.0 - } - }, - { - "head": 4, - "tail": 7, - "freq": { - "total": 1, - "rel_freq": 0.0006215040397762585, - "average": 0.003968253968253968, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 1 - }, - "duration": { - "total": 2400.0, - "rel_duration": 9.502876045435152e-06, - "average": 2400.0, - "median": 2400.0, - "max": 2400.0, - "min": 2400.0 - } - }, - { - "head": 6, - "tail": 7, - "freq": { - "total": 8, - "rel_freq": 0.004972032318210068, - "average": 0.031746031746031744, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 8 - }, - "duration": { - "total": 42420.0, - "rel_duration": 0.0001679633341030663, - "average": 5302.5, - "median": 4620.0, - "max": 12120.0, - "min": 1800.0 - } - }, - { - "head": 7, - "tail": 7, - "freq": { - "total": 1, - "rel_freq": 0.0006215040397762585, - "average": 0.003968253968253968, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 1 - }, - "duration": { - "total": 11400.0, - "rel_duration": 4.513866121581697e-05, - "average": 11400.0, - "median": 11400.0, - "max": 11400.0, - "min": 11400.0 - } - }, - { - "head": 8, - "tail": 7, - "freq": { - "total": 4, - "rel_freq": 0.002486016159105034, - "average": 0.015873015873015872, - "median": 0.0, - "max": 3, - "min": 0, - "cases": 2 - }, - "duration": { - "total": 28560.0, - "rel_duration": 0.0001130842249406783, - "average": 7140.0, - "median": 5970.0, - "max": 11880.0, - "min": 4740.0 - } - }, - { - "head": 9, - "tail": 7, - "freq": { - "total": 117, - "rel_freq": 0.07271597265382225, - "average": 0.4642857142857143, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 117 - }, - "duration": { - "total": 888360.0, - "rel_duration": 0.0035174895682178213, - "average": 7592.820513, - "median": 7440.0, - "max": 14340.0, - "min": 540.0 - } - }, - { - "head": 10, - "tail": 7, - "freq": { - "total": 45, - "rel_freq": 0.027967681789931635, - "average": 0.17857142857142858, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 45 - }, - "duration": { - "total": 365220.0, - "rel_duration": 0.001446100162214094, - "average": 8116.0, - "median": 7980.0, - "max": 13980.0, - "min": 1320.0 - } - }, - { - "head": 11, - "tail": 7, - "freq": { - "total": 1, - "rel_freq": 0.0006215040397762585, - "average": 0.003968253968253968, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 1 - }, - "duration": { - "total": 11880.0, - "rel_duration": 4.7039236424903995e-05, - "average": 11880.0, - "median": 11880.0, - "max": 11880.0, - "min": 11880.0 - } - }, - { - "head": 13, - "tail": 7, - "freq": { - "total": 76, - "rel_freq": 0.04723430702299565, - "average": 0.30158730158730157, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 76 - }, - "duration": { - "total": 566760.0, - "rel_duration": 0.002244104178129511, - "average": 7457.368421, - "median": 7560.0, - "max": 14400.0, - "min": 360.0 - } - }, - { - "head": 2, - "tail": 8, - "freq": { - "total": 2, - "rel_freq": 0.001243008079552517, - "average": 0.007936507936507936, - "median": 0.0, - "max": 2, - "min": 0, - "cases": 1 - }, - "duration": { - "total": 17820.0, - "rel_duration": 7.0558854637356e-05, - "average": 8910.0, - "median": 8910.0, - "max": 11760.0, - "min": 6060.0 - } - }, - { - "head": 3, - "tail": 8, - "freq": { - "total": 1, - "rel_freq": 0.0006215040397762585, - "average": 0.003968253968253968, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 1 - }, - "duration": { - "total": 5880.0, - "rel_duration": 2.328204631131612e-05, - "average": 5880.0, - "median": 5880.0, - "max": 5880.0, - "min": 5880.0 - } - }, - { - "head": 4, - "tail": 8, - "freq": { - "total": 1, - "rel_freq": 0.0006215040397762585, - "average": 0.003968253968253968, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 1 - }, - "duration": { - "total": 5460.0, - "rel_duration": 2.161904300336497e-05, - "average": 5460.0, - "median": 5460.0, - "max": 5460.0, - "min": 5460.0 - } - }, - { - "head": 5, - "tail": 8, - "freq": { - "total": 67, - "rel_freq": 0.041640770665009326, - "average": 0.26587301587301587, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 67 - }, - "duration": { - "total": 516600.0, - "rel_duration": 0.0020454940687799164, - "average": 7710.447761, - "median": 7680.0, - "max": 14280.0, - "min": 240.0 - } - }, - { - "head": 7, - "tail": 8, - "freq": { - "total": 3, - "rel_freq": 0.0018645121193287756, - "average": 0.011904761904761904, - "median": 0.0, - "max": 2, - "min": 0, - "cases": 2 - }, - "duration": { - "total": 25920.0, - "rel_duration": 0.00010263106129069963, - "average": 8640.0, - "median": 6360.0, - "max": 13920.0, - "min": 5640.0 - } - }, - { - "head": 8, - "tail": 8, - "freq": { - "total": 5, - "rel_freq": 0.003107520198881293, - "average": 0.01984126984126984, - "median": 0.0, - "max": 3, - "min": 0, - "cases": 3 - }, - "duration": { - "total": 31620.0, - "rel_duration": 0.0001252003918986081, - "average": 6324.0, - "median": 6900.0, - "max": 9900.0, - "min": 660.0 - } - }, - { - "head": 10, - "tail": 8, - "freq": { - "total": 1, - "rel_freq": 0.0006215040397762585, - "average": 0.003968253968253968, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 1 - }, - "duration": { - "total": 3240.0, - "rel_duration": 1.2828882661337454e-05, - "average": 3240.0, - "median": 3240.0, - "max": 3240.0, - "min": 3240.0 - } - }, - { - "head": 11, - "tail": 8, - "freq": { - "total": 9, - "rel_freq": 0.005593536357986327, - "average": 0.03571428571428571, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 9 - }, - "duration": { - "total": 82380.0, - "rel_duration": 0.0003261862202595616, - "average": 9153.333333, - "median": 9720.0, - "max": 13920.0, - "min": 3060.0 - } - }, - { - "head": 13, - "tail": 8, - "freq": { - "total": 96, - "rel_freq": 0.05966438781852082, - "average": 0.38095238095238093, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 96 - }, - "duration": { - "total": 690120.0, - "rel_duration": 0.0027325520068648777, - "average": 7188.75, - "median": 7350.0, - "max": 14220.0, - "min": 120.0 - } - }, - { - "head": 8, - "tail": 9, - "freq": { - "total": 162, - "rel_freq": 0.10068365444375388, - "average": 0.6428571428571429, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 162 - }, - "duration": { - "total": 1180800.0, - "rel_duration": 0.004675415014354094, - "average": 7288.888889, - "median": 7470.0, - "max": 14280.0, - "min": 240.0 - } - }, - { - "head": 13, - "tail": 9, - "freq": { - "total": 1, - "rel_freq": 0.0006215040397762585, - "average": 0.003968253968253968, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 1 - }, - "duration": { - "total": 6960.0, - "rel_duration": 2.7558340531761937e-05, - "average": 6960.0, - "median": 6960.0, - "max": 6960.0, - "min": 6960.0 - } - }, - { - "head": 14, - "tail": 10, - "freq": { - "total": 48, - "rel_freq": 0.02983219390926041, - "average": 0.19047619047619047, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 48 - }, - "duration": null - }, - { - "head": 2, - "tail": 11, - "freq": { - "total": 8, - "rel_freq": 0.004972032318210068, - "average": 0.031746031746031744, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 8 - }, - "duration": { - "total": 58080.0, - "rel_duration": 0.00022996960029953066, - "average": 7260.0, - "median": 5550.0, - "max": 14220.0, - "min": 2340.0 - } - }, - { - "head": 5, - "tail": 11, - "freq": { - "total": 2, - "rel_freq": 0.001243008079552517, - "average": 0.007936507936507936, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 2 - }, - "duration": { - "total": 13560.0, - "rel_duration": 5.36912496567086e-05, - "average": 6780.0, - "median": 6780.0, - "max": 8220.0, - "min": 5340.0 - } - }, - { - "head": 6, - "tail": 11, - "freq": { - "total": 236, - "rel_freq": 0.14667495338719702, - "average": 0.9365079365079365, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 236 - }, - "duration": { - "total": 1720080.0, - "rel_duration": 0.006810711261763373, - "average": 7288.474576, - "median": 7230.0, - "max": 14340.0, - "min": 120.0 - } - }, - { - "head": 7, - "tail": 11, - "freq": { - "total": 1, - "rel_freq": 0.0006215040397762585, - "average": 0.003968253968253968, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 1 - }, - "duration": { - "total": 14040.0, - "rel_duration": 5.559182486579563e-05, - "average": 14040.0, - "median": 14040.0, - "max": 14040.0, - "min": 14040.0 - } - }, - { - "head": 10, - "tail": 11, - "freq": { - "total": 1, - "rel_freq": 0.0006215040397762585, - "average": 0.003968253968253968, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 1 - }, - "duration": { - "total": 13620.0, - "rel_duration": 5.392882155784448e-05, - "average": 13620.0, - "median": 13620.0, - "max": 13620.0, - "min": 13620.0 - } - }, - { - "head": 13, - "tail": 11, - "freq": { - "total": 1, - "rel_freq": 0.0006215040397762585, - "average": 0.003968253968253968, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 1 - }, - "duration": { - "total": 3780.0, - "rel_duration": 1.4967029771560362e-05, - "average": 3780.0, - "median": 3780.0, - "max": 3780.0, - "min": 3780.0 - } - }, - { - "head": 14, - "tail": 12, - "freq": { - "total": 22, - "rel_freq": 0.013673088875077687, - "average": 0.0873015873015873, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 22 - }, - "duration": null - }, - { - "head": 14, - "tail": 13, - "freq": { - "total": 182, - "rel_freq": 0.11311373523927906, - "average": 0.7222222222222222, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 182 - }, - "duration": null - } - ] - }, - "bpmn": { - "vertices": [ - { - "id": 1, - "type": "event", - "event_type": "start" - }, - { - "id": 2, - "type": "gateway", - "gateway_type": "exclusive" - }, - { - "id": 3, - "type": "activity", - "activity_type": "task", - "label": "a", - "freq": { - "total": 187, - "rel_freq": 0.10048361096184846, - "average": 0.7420634920634921, - "median": 1.0, - "max": 4, - "min": 0, - "cases": 184 - }, - "duration": { - "total": 24524580.0, - "rel_duration": 0.09710585158598249, - "average": 131147.486631, - "median": 129480.0, - "max": 259080.0, - "min": 480.0 - } - }, - { - "id": 4, - "type": "activity", - "activity_type": "task", - "label": "b", - "freq": { - "total": 34, - "rel_freq": 0.018269747447608814, - "average": 0.1349206349206349, - "median": 0.0, - "max": 3, - "min": 0, - "cases": 32 - }, - "duration": { - "total": 4645320.0, - "rel_duration": 0.018393291729742006, - "average": 136627.058824, - "median": 144840.0, - "max": 252660.0, - "min": 3300.0 - } - }, - { - "id": 5, - "type": "activity", - "activity_type": "task", - "label": "c", - "freq": { - "total": 48, - "rel_freq": 0.025792584631918324, - "average": 0.19047619047619047, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 48 - }, - "duration": { - "total": 6396540.0, - "rel_duration": 0.0253273028081949, - "average": 133261.25, - "median": 147270.0, - "max": 255360.0, - "min": 5700.0 - } - }, - { - "id": 6, - "type": "activity", - "activity_type": "task", - "label": "d", - "freq": { - "total": 241, - "rel_freq": 0.12950026867275657, - "average": 0.9563492063492064, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 241 - }, - "duration": { - "total": 31980000.0, - "rel_duration": 0.12662582330542338, - "average": 132697.095436, - "median": 133860.0, - "max": 259080.0, - "min": 420.0 - } - }, - { - "id": 7, - "type": "gateway", - "gateway_type": "exclusive" - }, - { - "id": 8, - "type": "gateway", - "gateway_type": "exclusive" - }, - { - "id": 9, - "type": "activity", - "activity_type": "task", - "label": "e", - "freq": { - "total": 249, - "rel_freq": 0.1337990327780763, - "average": 0.9880952380952381, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 249 - }, - "duration": { - "total": 30986280.0, - "rel_duration": 0.12269115747881096, - "average": 124442.891566, - "median": 118740.0, - "max": 258660.0, - "min": 720.0 - } - }, - { - "id": 10, - "type": "activity", - "activity_type": "task", - "label": "g", - "freq": { - "total": 253, - "rel_freq": 0.13594841483073616, - "average": 1.003968253968254, - "median": 1.0, - "max": 4, - "min": 0, - "cases": 250 - }, - "duration": { - "total": 32289840.0, - "rel_duration": 0.12785264460288906, - "average": 127627.826087, - "median": 121620.0, - "max": 256980.0, - "min": 720.0 - } - }, - { - "id": 11, - "type": "activity", - "activity_type": "task", - "label": "h", - "freq": { - "total": 163, - "rel_freq": 0.08758731864588931, - "average": 0.6468253968253969, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 163 - }, - "duration": { - "total": 20890680.0, - "rel_duration": 0.082717309393688, - "average": 128163.680982, - "median": 125280.0, - "max": 258660.0, - "min": 3480.0 - } - }, - { - "id": 12, - "type": "activity", - "activity_type": "task", - "label": "f", - "freq": { - "total": 249, - "rel_freq": 0.1337990327780763, - "average": 0.9880952380952381, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 249 - }, - "duration": { - "total": 31666620.0, - "rel_duration": 0.1253849852657907, - "average": 127175.180723, - "median": 122040.0, - "max": 258360.0, - "min": 1380.0 - } - }, - { - "id": 13, - "type": "gateway", - "gateway_type": "exclusive" - }, - { - "id": 14, - "type": "activity", - "activity_type": "task", - "label": "i", - "freq": { - "total": 185, - "rel_freq": 0.09940891993551854, - "average": 0.7341269841269841, - "median": 1.0, - "max": 6, - "min": 0, - "cases": 175 - }, - "duration": { - "total": 23233920.0, - "rel_duration": 0.09199544242064861, - "average": 125588.756757, - "median": 123480.0, - "max": 258540.0, - "min": 1020.0 - } - }, - { - "id": 15, - "type": "gateway", - "gateway_type": "exclusive" - }, - { - "id": 16, - "type": "activity", - "activity_type": "task", - "label": "k", - "freq": { - "total": 48, - "rel_freq": 0.025792584631918324, - "average": 0.19047619047619047, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 48 - }, - "duration": { - "total": 6842100.0, - "rel_duration": 0.027091511746029934, - "average": 142543.75, - "median": 149160.0, - "max": 254400.0, - "min": 9540.0 - } - }, - { - "id": 17, - "type": "activity", - "activity_type": "task", - "label": "l", - "freq": { - "total": 182, - "rel_freq": 0.09779688339602365, - "average": 0.7222222222222222, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 182 - }, - "duration": { - "total": 25128900.0, - "rel_duration": 0.09949867577422307, - "average": 138070.879121, - "median": 139770.0, - "max": 258360.0, - "min": 2460.0 - } - }, - { - "id": 18, - "type": "activity", - "activity_type": "task", - "label": "j", - "freq": { - "total": 22, - "rel_freq": 0.011821601289629231, - "average": 0.0873015873015873, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 22 - }, - "duration": { - "total": 2228400.0, - "rel_duration": 0.008823420408186537, - "average": 101290.909091, - "median": 72420.0, - "max": 241860.0, - "min": 13980.0 - } - }, - { - "id": 19, - "type": "event", - "event_type": "end" - } - ], - "edges": [ - { - "head": 2, - "tail": 1, - "freq": { - "total": 252, - "rel_freq": 0.15661901802361716, - "average": 1.0, - "median": 1.0, - "max": 1, - "min": 1, - "cases": 252 - }, - "duration": null - }, - { - "head": 3, - "tail": 2, - "freq": { - "total": 175, - "rel_freq": 0.10876320696084525, - "average": 0.6944444444444444, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 175 - }, - "duration": null - }, - { - "head": 4, - "tail": 2, - "freq": { - "total": 32, - "rel_freq": 0.019888129272840272, - "average": 0.12698412698412698, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 32 - }, - "duration": null - }, - { - "head": 5, - "tail": 2, - "freq": { - "total": 45, - "rel_freq": 0.027967681789931635, - "average": 0.17857142857142858, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 45 - }, - "duration": null - }, - { - "head": 6, - "tail": 3, - "freq": { - "total": 170, - "rel_freq": 0.10565568676196395, - "average": 0.6746031746031746, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 170 - }, - "duration": { - "total": 1276080.0, - "rel_duration": 0.00505267919335787, - "average": 7506.352941, - "median": 7440.0, - "max": 14340.0, - "min": 300.0 - } - }, - { - "head": 7, - "tail": 4, - "freq": { - "total": 22, - "rel_freq": 0.013673088875077687, - "average": 0.0873015873015873, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 22 - }, - "duration": null - }, - { - "head": 8, - "tail": 5, - "freq": { - "total": 46, - "rel_freq": 0.028589185829707892, - "average": 0.18253968253968253, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 46 - }, - "duration": null - }, - { - "head": 9, - "tail": 6, - "freq": { - "total": 236, - "rel_freq": 0.14667495338719702, - "average": 0.9365079365079365, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 236 - }, - "duration": { - "total": 1691340.0, - "rel_duration": 0.0066969143211192865, - "average": 7166.694915, - "median": 7620.0, - "max": 14280.0, - "min": 240.0 - } - }, - { - "head": 10, - "tail": 7, - "freq": { - "total": 236, - "rel_freq": 0.14667495338719702, - "average": 0.9365079365079365, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 236 - }, - "duration": null - }, - { - "head": 11, - "tail": 8, - "freq": { - "total": 163, - "rel_freq": 0.10130515848353014, - "average": 0.6468253968253969, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 163 - }, - "duration": null - }, - { - "head": 12, - "tail": 9, - "freq": { - "total": 236, - "rel_freq": 0.14667495338719702, - "average": 0.9365079365079365, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 236 - }, - "duration": { - "total": 1720080.0, - "rel_duration": 0.006810711261763373, - "average": 7288.474576, - "median": 7230.0, - "max": 14340.0, - "min": 120.0 - } - }, - { - "head": 13, - "tail": 10, - "freq": { - "total": 162, - "rel_freq": 0.10068365444375388, - "average": 0.6428571428571429, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 162 - }, - "duration": null - }, - { - "head": 14, - "tail": 11, - "freq": { - "total": 162, - "rel_freq": 0.10068365444375388, - "average": 0.6428571428571429, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 162 - }, - "duration": { - "total": 1180800.0, - "rel_duration": 0.004675415014354094, - "average": 7288.888889, - "median": 7470.0, - "max": 14280.0, - "min": 240.0 - } - }, - { - "head": 15, - "tail": 12, - "freq": { - "total": 236, - "rel_freq": 0.14667495338719702, - "average": 0.9365079365079365, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 236 - }, - "duration": null - }, - { - "head": 8, - "tail": 13, - "freq": { - "total": 117, - "rel_freq": 0.07271597265382225, - "average": 0.4642857142857143, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 117 - }, - "duration": null - }, - { - "head": 16, - "tail": 13, - "freq": { - "total": 45, - "rel_freq": 0.027967681789931635, - "average": 0.17857142857142858, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 45 - }, - "duration": null - }, - { - "head": 17, - "tail": 14, - "freq": { - "total": 96, - "rel_freq": 0.05966438781852082, - "average": 0.38095238095238093, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 96 - }, - "duration": { - "total": 690120.0, - "rel_duration": 0.0027325520068648777, - "average": 7188.75, - "median": 7350.0, - "max": 14220.0, - "min": 120.0 - } - }, - { - "head": 7, - "tail": 15, - "freq": { - "total": 214, - "rel_freq": 0.13300186451211932, - "average": 0.8492063492063492, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 214 - }, - "duration": null - }, - { - "head": 18, - "tail": 15, - "freq": { - "total": 22, - "rel_freq": 0.013673088875077687, - "average": 0.0873015873015873, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 22 - }, - "duration": null - }, - { - "head": 19, - "tail": 16, - "freq": { - "total": 48, - "rel_freq": 0.02983219390926041, - "average": 0.19047619047619047, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 48 - }, - "duration": null - }, - { - "head": 19, - "tail": 17, - "freq": { - "total": 182, - "rel_freq": 0.11311373523927906, - "average": 0.7222222222222222, - "median": 1.0, - "max": 1, - "min": 0, - "cases": 182 - }, - "duration": null - }, - { - "head": 19, - "tail": 18, - "freq": { - "total": 22, - "rel_freq": 0.013673088875077687, - "average": 0.0873015873015873, - "median": 0.0, - "max": 1, - "min": 0, - "cases": 22 - }, - "duration": null - } - ] - }, - "stats": { - "cases": { - "count": 252, - "total": 252, - "ratio": 1.0 + "process_map": { + "vertices": [ + { + "id": 1, + "type": "event", + "event_type": "start" + }, + { + "id": 2, + "type": "activity", + "activity_type": "task", + "label": "a", + "freq": { + "total": 187, + "rel_freq": 0.10048361096184846, + "average": 0.7420634920634921, + "median": 1.0, + "max": 4, + "min": 0, + "cases": 184 }, - "traces": { - "count": 12, - "total": 12, - "ratio": 1.0 - }, - "task_instances": { - "count": 1861, - "total": 1861, - "ratio": 1.0 - }, - "tasks": { - "count": 12, - "total": 12, - "ratio": 1.0 - }, - "started_at": "2022-01-03T00:56:00", - "completed_at": "2022-12-31T01:32:00", - "case_duration": { - "min": 363840.0, - "max": 2233740.0, - "average": 1002202.8571428572, - "median": 994350.0 + "duration": { + "total": "PT6812H23M", + "rel_duration": 0.09710585158598249, + "average": "PT36H25M47.49S", + "median": "PT35H58M", + "max": "PT71H58M", + "min": "PT8M" } + }, + { + "id": 3, + "type": "activity", + "activity_type": "task", + "label": "b", + "freq": { + "total": 34, + "rel_freq": 0.018269747447608814, + "average": 0.1349206349206349, + "median": 0.0, + "max": 3, + "min": 0, + "cases": 32 + }, + "duration": { + "total": "PT1290H22M", + "rel_duration": 0.018393291729742006, + "average": "PT37H57M7.06S", + "median": "PT40H14M", + "max": "PT70H11M", + "min": "PT55M" + } + }, + { + "id": 4, + "type": "activity", + "activity_type": "task", + "label": "c", + "freq": { + "total": 48, + "rel_freq": 0.025792584631918324, + "average": 0.19047619047619047, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 48 + }, + "duration": { + "total": "PT1776H49M", + "rel_duration": 0.0253273028081949, + "average": "PT37H1M1.25S", + "median": "PT40H54M30.0S", + "max": "PT70H56M", + "min": "PT1H35M" + } + }, + { + "id": 5, + "type": "activity", + "activity_type": "task", + "label": "d", + "freq": { + "total": 241, + "rel_freq": 0.12950026867275657, + "average": 0.9563492063492064, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 241 + }, + "duration": { + "total": "PT8883H20M", + "rel_duration": 0.12662582330542338, + "average": "PT36H51M37.1S", + "median": "PT37H11M", + "max": "PT71H58M", + "min": "PT7M" + } + }, + { + "id": 6, + "type": "activity", + "activity_type": "task", + "label": "f", + "freq": { + "total": 249, + "rel_freq": 0.1337990327780763, + "average": 0.9880952380952381, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 249 + }, + "duration": { + "total": "PT8796H17M", + "rel_duration": 0.1253849852657907, + "average": "PT35H19M35.18S", + "median": "PT33H54M", + "max": "PT71H46M", + "min": "PT23M" + } + }, + { + "id": 7, + "type": "activity", + "activity_type": "task", + "label": "g", + "freq": { + "total": 253, + "rel_freq": 0.13594841483073616, + "average": 1.003968253968254, + "median": 1.0, + "max": 4, + "min": 0, + "cases": 250 + }, + "duration": { + "total": "PT8969H24M", + "rel_duration": 0.12785264460288906, + "average": "PT35H27M7.83S", + "median": "PT33H47M", + "max": "PT71H23M", + "min": "PT12M" + } + }, + { + "id": 8, + "type": "activity", + "activity_type": "task", + "label": "i", + "freq": { + "total": 185, + "rel_freq": 0.09940891993551854, + "average": 0.7341269841269841, + "median": 1.0, + "max": 6, + "min": 0, + "cases": 175 + }, + "duration": { + "total": "PT6453H52M", + "rel_duration": 0.09199544242064861, + "average": "PT34H53M8.76S", + "median": "PT34H18M", + "max": "PT71H49M", + "min": "PT17M" + } + }, + { + "id": 9, + "type": "activity", + "activity_type": "task", + "label": "h", + "freq": { + "total": 163, + "rel_freq": 0.08758731864588931, + "average": 0.6468253968253969, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 163 + }, + "duration": { + "total": "PT5802H58M", + "rel_duration": 0.082717309393688, + "average": "PT35H36M3.68S", + "median": "PT34H48M", + "max": "PT71H51M", + "min": "PT58M" + } + }, + { + "id": 10, + "type": "activity", + "activity_type": "task", + "label": "k", + "freq": { + "total": 48, + "rel_freq": 0.025792584631918324, + "average": 0.19047619047619047, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 48 + }, + "duration": { + "total": "PT1900H35M", + "rel_duration": 0.027091511746029934, + "average": "PT39H35M43.75S", + "median": "PT41H26M", + "max": "PT70H40M", + "min": "PT2H39M" + } + }, + { + "id": 11, + "type": "activity", + "activity_type": "task", + "label": "e", + "freq": { + "total": 249, + "rel_freq": 0.1337990327780763, + "average": 0.9880952380952381, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 249 + }, + "duration": { + "total": "PT8607H18M", + "rel_duration": 0.12269115747881096, + "average": "PT34H34M2.89S", + "median": "PT32H59M", + "max": "PT71H51M", + "min": "PT12M" + } + }, + { + "id": 12, + "type": "activity", + "activity_type": "task", + "label": "j", + "freq": { + "total": 22, + "rel_freq": 0.011821601289629231, + "average": 0.0873015873015873, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 22 + }, + "duration": { + "total": "PT619H", + "rel_duration": 0.008823420408186537, + "average": "PT28H8M10.91S", + "median": "PT20H7M", + "max": "PT67H11M", + "min": "PT3H53M" + } + }, + { + "id": 13, + "type": "activity", + "activity_type": "task", + "label": "l", + "freq": { + "total": 182, + "rel_freq": 0.09779688339602365, + "average": 0.7222222222222222, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 182 + }, + "duration": { + "total": "PT6980H15M", + "rel_duration": 0.09949867577422307, + "average": "PT38H21M10.88S", + "median": "PT38H49M30.0S", + "max": "PT71H46M", + "min": "PT41M" + } + }, + { + "id": 14, + "type": "event", + "event_type": "end" + } + ], + "edges": [ + { + "head": 2, + "tail": 1, + "freq": { + "total": 175, + "rel_freq": 0.10876320696084525, + "average": 0.6944444444444444, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 175 + }, + "duration": null + }, + { + "head": 3, + "tail": 1, + "freq": { + "total": 32, + "rel_freq": 0.019888129272840272, + "average": 0.12698412698412698, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 32 + }, + "duration": null + }, + { + "head": 4, + "tail": 1, + "freq": { + "total": 45, + "rel_freq": 0.027967681789931635, + "average": 0.17857142857142858, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 45 + }, + "duration": null + }, + { + "head": 2, + "tail": 2, + "freq": { + "total": 1, + "rel_freq": 0.0006215040397762585, + "average": 0.003968253968253968, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 1 + }, + "duration": { + "total": "PT1H47M", + "rel_duration": 2.542019342153903e-05, + "average": "PT1H47M", + "median": "PT1H47M", + "max": "PT1H47M", + "min": "PT1H47M" + } + }, + { + "head": 5, + "tail": 2, + "freq": { + "total": 170, + "rel_freq": 0.10565568676196395, + "average": 0.6746031746031746, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 170 + }, + "duration": { + "total": "PT354H28M", + "rel_duration": 0.00505267919335787, + "average": "PT2H5M6.35S", + "median": "PT2H4M", + "max": "PT3H59M", + "min": "PT5M" + } + }, + { + "head": 6, + "tail": 2, + "freq": { + "total": 5, + "rel_freq": 0.003107520198881293, + "average": 0.01984126984126984, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 5 + }, + "duration": { + "total": "PT8H15M", + "rel_duration": 0.00011759809106226, + "average": "PT1H39M", + "median": "PT1H22M", + "max": "PT2H55M", + "min": "PT23M" + } + }, + { + "head": 7, + "tail": 2, + "freq": { + "total": 8, + "rel_freq": 0.004972032318210068, + "average": 0.031746031746031744, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 8 + }, + "duration": { + "total": "PT11H30M", + "rel_duration": 0.00016392461178375636, + "average": "PT1H26M15.0S", + "median": "PT1H10M30.0S", + "max": "PT3H59M", + "min": "PT12M" + } + }, + { + "head": 8, + "tail": 2, + "freq": { + "total": 3, + "rel_freq": 0.0018645121193287756, + "average": 0.011904761904761904, + "median": 0.0, + "max": 3, + "min": 0, + "cases": 1 + }, + "duration": { + "total": "PT5H13M", + "rel_duration": 7.436000505553005e-05, + "average": "PT1H44M20.0S", + "median": "PT1H35M", + "max": "PT2H7M", + "min": "PT1H31M" + } + }, + { + "head": 2, + "tail": 3, + "freq": { + "total": 1, + "rel_freq": 0.0006215040397762585, + "average": 0.003968253968253968, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 1 + }, + "duration": { + "total": "PT1H54M", + "rel_duration": 2.708319672949018e-05, + "average": "PT1H54M", + "median": "PT1H54M", + "max": "PT1H54M", + "min": "PT1H54M" + } + }, + { + "head": 3, + "tail": 3, + "freq": { + "total": 1, + "rel_freq": 0.0006215040397762585, + "average": 0.003968253968253968, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 1 + }, + "duration": { + "total": "PT59M", + "rel_duration": 1.4016742167016848e-05, + "average": "PT59M", + "median": "PT59M", + "max": "PT59M", + "min": "PT59M" + } + }, + { + "head": 7, + "tail": 3, + "freq": { + "total": 22, + "rel_freq": 0.013673088875077687, + "average": 0.0873015873015873, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 22 + }, + "duration": { + "total": "PT44H27M", + "rel_duration": 0.0006336042603293886, + "average": "PT2H1M13.64S", + "median": "PT2H2M", + "max": "PT3H56M", + "min": "PT4M" + } + }, + { + "head": 8, + "tail": 3, + "freq": { + "total": 10, + "rel_freq": 0.006215040397762586, + "average": 0.03968253968253968, + "median": 0.0, + "max": 2, + "min": 0, + "cases": 9 + }, + "duration": { + "total": "PT17H28M", + "rel_duration": 0.00024897535239040095, + "average": "PT1H44M48.0S", + "median": "PT1H12M30.0S", + "max": "PT3H46M", + "min": "PT23M" + } + }, + { + "head": 7, + "tail": 4, + "freq": { + "total": 1, + "rel_freq": 0.0006215040397762585, + "average": 0.003968253968253968, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 1 + }, + "duration": { + "total": "PT3H11M", + "rel_duration": 4.5376233116952846e-05, + "average": "PT3H11M", + "median": "PT3H11M", + "max": "PT3H11M", + "min": "PT3H11M" + } + }, + { + "head": 9, + "tail": 4, + "freq": { + "total": 46, + "rel_freq": 0.028589185829707892, + "average": 0.18253968253968253, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 46 + }, + "duration": { + "total": "PT87H10M", + "rel_duration": 0.001242501042940646, + "average": "PT1H53M41.74S", + "median": "PT1H54M30.0S", + "max": "PT3H59M", + "min": "PT5M" + } + }, + { + "head": 10, + "tail": 4, + "freq": { + "total": 1, + "rel_freq": 0.0006215040397762585, + "average": 0.003968253968253968, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 1 + }, + "duration": { + "total": "PT3H45M", + "rel_duration": 5.3453677755572725e-05, + "average": "PT3H45M", + "median": "PT3H45M", + "max": "PT3H45M", + "min": "PT3H45M" + } + }, + { + "head": 4, + "tail": 5, + "freq": { + "total": 1, + "rel_freq": 0.0006215040397762585, + "average": 0.003968253968253968, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 1 + }, + "duration": { + "total": "PT3H16M", + "rel_duration": 4.656409262263224e-05, + "average": "PT3H16M", + "median": "PT3H16M", + "max": "PT3H16M", + "min": "PT3H16M" + } + }, + { + "head": 7, + "tail": 5, + "freq": { + "total": 3, + "rel_freq": 0.0018645121193287756, + "average": 0.011904761904761904, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 3 + }, + "duration": { + "total": "PT6H44M", + "rel_duration": 9.597904805889502e-05, + "average": "PT2H14M40.0S", + "median": "PT2H18M", + "max": "PT3H6M", + "min": "PT1H20M" + } + }, + { + "head": 8, + "tail": 5, + "freq": { + "total": 1, + "rel_freq": 0.0006215040397762585, + "average": 0.003968253968253968, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 1 + }, + "duration": { + "total": "PT1H", + "rel_duration": 1.4254314068152727e-05, + "average": "PT1H", + "median": "PT1H", + "max": "PT1H", + "min": "PT1H" + } + }, + { + "head": 11, + "tail": 5, + "freq": { + "total": 236, + "rel_freq": 0.14667495338719702, + "average": 0.9365079365079365, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 236 + }, + "duration": { + "total": "PT469H49M", + "rel_duration": 0.0066969143211192865, + "average": "PT1H59M26.69S", + "median": "PT2H7M", + "max": "PT3H58M", + "min": "PT4M" + } + }, + { + "head": 5, + "tail": 6, + "freq": { + "total": 2, + "rel_freq": 0.001243008079552517, + "average": 0.007936507936507936, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 2 + }, + "duration": { + "total": "PT5H38M", + "rel_duration": 8.029930258392703e-05, + "average": "PT2H49M", + "median": "PT2H49M", + "max": "PT3H21M", + "min": "PT2H17M" + } + }, + { + "head": 7, + "tail": 6, + "freq": { + "total": 214, + "rel_freq": 0.13300186451211932, + "average": 0.8492063492063492, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 214 + }, + "duration": { + "total": "PT415H7M", + "rel_duration": 0.005917203341591333, + "average": "PT1H56M23.27S", + "median": "PT1H54M30.0S", + "max": "PT4H", + "min": "PT2M" + } + }, + { + "head": 11, + "tail": 6, + "freq": { + "total": 3, + "rel_freq": 0.0018645121193287756, + "average": 0.011904761904761904, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 3 + }, + "duration": { + "total": "PT3H17M", + "rel_duration": 4.680166452376812e-05, + "average": "PT1H5M40.0S", + "median": "PT1H3M", + "max": "PT2H11M", + "min": "PT3M" + } + }, + { + "head": 12, + "tail": 6, + "freq": { + "total": 22, + "rel_freq": 0.013673088875077687, + "average": 0.0873015873015873, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 22 + }, + "duration": { + "total": "PT49H56M", + "rel_duration": 0.0007117654158030929, + "average": "PT2H16M10.91S", + "median": "PT2H18M30.0S", + "max": "PT3H54M", + "min": "PT2M" + } + }, + { + "head": 13, + "tail": 6, + "freq": { + "total": 8, + "rel_freq": 0.004972032318210068, + "average": 0.031746031746031744, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 8 + }, + "duration": { + "total": "PT14H49M", + "rel_duration": 0.00021120142010979623, + "average": "PT1H51M7.5S", + "median": "PT2H1M30.0S", + "max": "PT3H15M", + "min": "PT34M" + } + }, + { + "head": 4, + "tail": 7, + "freq": { + "total": 1, + "rel_freq": 0.0006215040397762585, + "average": 0.003968253968253968, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 1 + }, + "duration": { + "total": "PT40M", + "rel_duration": 9.502876045435152e-06, + "average": "PT40M", + "median": "PT40M", + "max": "PT40M", + "min": "PT40M" + } + }, + { + "head": 6, + "tail": 7, + "freq": { + "total": 8, + "rel_freq": 0.004972032318210068, + "average": 0.031746031746031744, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 8 + }, + "duration": { + "total": "PT11H47M", + "rel_duration": 0.0001679633341030663, + "average": "PT1H28M22.5S", + "median": "PT1H17M", + "max": "PT3H22M", + "min": "PT30M" + } + }, + { + "head": 7, + "tail": 7, + "freq": { + "total": 1, + "rel_freq": 0.0006215040397762585, + "average": 0.003968253968253968, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 1 + }, + "duration": { + "total": "PT3H10M", + "rel_duration": 4.513866121581697e-05, + "average": "PT3H10M", + "median": "PT3H10M", + "max": "PT3H10M", + "min": "PT3H10M" + } + }, + { + "head": 8, + "tail": 7, + "freq": { + "total": 4, + "rel_freq": 0.002486016159105034, + "average": 0.015873015873015872, + "median": 0.0, + "max": 3, + "min": 0, + "cases": 2 + }, + "duration": { + "total": "PT7H56M", + "rel_duration": 0.0001130842249406783, + "average": "PT1H59M", + "median": "PT1H39M30.0S", + "max": "PT3H18M", + "min": "PT1H19M" + } + }, + { + "head": 9, + "tail": 7, + "freq": { + "total": 117, + "rel_freq": 0.07271597265382225, + "average": 0.4642857142857143, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 117 + }, + "duration": { + "total": "PT246H46M", + "rel_duration": 0.0035174895682178213, + "average": "PT2H6M32.82S", + "median": "PT2H4M", + "max": "PT3H59M", + "min": "PT9M" + } + }, + { + "head": 10, + "tail": 7, + "freq": { + "total": 45, + "rel_freq": 0.027967681789931635, + "average": 0.17857142857142858, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 45 + }, + "duration": { + "total": "PT101H27M", + "rel_duration": 0.001446100162214094, + "average": "PT2H15M16.0S", + "median": "PT2H13M", + "max": "PT3H53M", + "min": "PT22M" + } + }, + { + "head": 11, + "tail": 7, + "freq": { + "total": 1, + "rel_freq": 0.0006215040397762585, + "average": 0.003968253968253968, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 1 + }, + "duration": { + "total": "PT3H18M", + "rel_duration": 4.7039236424903995e-05, + "average": "PT3H18M", + "median": "PT3H18M", + "max": "PT3H18M", + "min": "PT3H18M" + } + }, + { + "head": 13, + "tail": 7, + "freq": { + "total": 76, + "rel_freq": 0.04723430702299565, + "average": 0.30158730158730157, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 76 + }, + "duration": { + "total": "PT157H26M", + "rel_duration": 0.002244104178129511, + "average": "PT2H4M17.37S", + "median": "PT2H6M", + "max": "PT4H", + "min": "PT6M" + } + }, + { + "head": 2, + "tail": 8, + "freq": { + "total": 2, + "rel_freq": 0.001243008079552517, + "average": 0.007936507936507936, + "median": 0.0, + "max": 2, + "min": 0, + "cases": 1 + }, + "duration": { + "total": "PT4H57M", + "rel_duration": 7.0558854637356e-05, + "average": "PT2H28M30.0S", + "median": "PT2H28M30.0S", + "max": "PT3H16M", + "min": "PT1H41M" + } + }, + { + "head": 3, + "tail": 8, + "freq": { + "total": 1, + "rel_freq": 0.0006215040397762585, + "average": 0.003968253968253968, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 1 + }, + "duration": { + "total": "PT1H38M", + "rel_duration": 2.328204631131612e-05, + "average": "PT1H38M", + "median": "PT1H38M", + "max": "PT1H38M", + "min": "PT1H38M" + } + }, + { + "head": 4, + "tail": 8, + "freq": { + "total": 1, + "rel_freq": 0.0006215040397762585, + "average": 0.003968253968253968, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 1 + }, + "duration": { + "total": "PT1H31M", + "rel_duration": 2.161904300336497e-05, + "average": "PT1H31M", + "median": "PT1H31M", + "max": "PT1H31M", + "min": "PT1H31M" + } + }, + { + "head": 5, + "tail": 8, + "freq": { + "total": 67, + "rel_freq": 0.041640770665009326, + "average": 0.26587301587301587, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 67 + }, + "duration": { + "total": "PT143H30M", + "rel_duration": 0.0020454940687799164, + "average": "PT2H8M30.45S", + "median": "PT2H8M", + "max": "PT3H58M", + "min": "PT4M" + } + }, + { + "head": 7, + "tail": 8, + "freq": { + "total": 3, + "rel_freq": 0.0018645121193287756, + "average": 0.011904761904761904, + "median": 0.0, + "max": 2, + "min": 0, + "cases": 2 + }, + "duration": { + "total": "PT7H12M", + "rel_duration": 0.00010263106129069963, + "average": "PT2H24M", + "median": "PT1H46M", + "max": "PT3H52M", + "min": "PT1H34M" + } + }, + { + "head": 8, + "tail": 8, + "freq": { + "total": 5, + "rel_freq": 0.003107520198881293, + "average": 0.01984126984126984, + "median": 0.0, + "max": 3, + "min": 0, + "cases": 3 + }, + "duration": { + "total": "PT8H47M", + "rel_duration": 0.0001252003918986081, + "average": "PT1H45M24.0S", + "median": "PT1H55M", + "max": "PT2H45M", + "min": "PT11M" + } + }, + { + "head": 10, + "tail": 8, + "freq": { + "total": 1, + "rel_freq": 0.0006215040397762585, + "average": 0.003968253968253968, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 1 + }, + "duration": { + "total": "PT54M", + "rel_duration": 1.2828882661337454e-05, + "average": "PT54M", + "median": "PT54M", + "max": "PT54M", + "min": "PT54M" + } + }, + { + "head": 11, + "tail": 8, + "freq": { + "total": 9, + "rel_freq": 0.005593536357986327, + "average": 0.03571428571428571, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 9 + }, + "duration": { + "total": "PT22H53M", + "rel_duration": 0.0003261862202595616, + "average": "PT2H32M33.33S", + "median": "PT2H42M", + "max": "PT3H52M", + "min": "PT51M" + } + }, + { + "head": 13, + "tail": 8, + "freq": { + "total": 96, + "rel_freq": 0.05966438781852082, + "average": 0.38095238095238093, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 96 + }, + "duration": { + "total": "PT191H42M", + "rel_duration": 0.0027325520068648777, + "average": "PT1H59M48.75S", + "median": "PT2H2M30.0S", + "max": "PT3H57M", + "min": "PT2M" + } + }, + { + "head": 8, + "tail": 9, + "freq": { + "total": 162, + "rel_freq": 0.10068365444375388, + "average": 0.6428571428571429, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 162 + }, + "duration": { + "total": "PT328H", + "rel_duration": 0.004675415014354094, + "average": "PT2H1M28.89S", + "median": "PT2H4M30.0S", + "max": "PT3H58M", + "min": "PT4M" + } + }, + { + "head": 13, + "tail": 9, + "freq": { + "total": 1, + "rel_freq": 0.0006215040397762585, + "average": 0.003968253968253968, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 1 + }, + "duration": { + "total": "PT1H56M", + "rel_duration": 2.7558340531761937e-05, + "average": "PT1H56M", + "median": "PT1H56M", + "max": "PT1H56M", + "min": "PT1H56M" + } + }, + { + "head": 14, + "tail": 10, + "freq": { + "total": 48, + "rel_freq": 0.02983219390926041, + "average": 0.19047619047619047, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 48 + }, + "duration": null + }, + { + "head": 2, + "tail": 11, + "freq": { + "total": 8, + "rel_freq": 0.004972032318210068, + "average": 0.031746031746031744, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 8 + }, + "duration": { + "total": "PT16H8M", + "rel_duration": 0.00022996960029953066, + "average": "PT2H1M", + "median": "PT1H32M30.0S", + "max": "PT3H57M", + "min": "PT39M" + } + }, + { + "head": 5, + "tail": 11, + "freq": { + "total": 2, + "rel_freq": 0.001243008079552517, + "average": 0.007936507936507936, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 2 + }, + "duration": { + "total": "PT3H46M", + "rel_duration": 5.36912496567086e-05, + "average": "PT1H53M", + "median": "PT1H53M", + "max": "PT2H17M", + "min": "PT1H29M" + } + }, + { + "head": 6, + "tail": 11, + "freq": { + "total": 236, + "rel_freq": 0.14667495338719702, + "average": 0.9365079365079365, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 236 + }, + "duration": { + "total": "PT477H48M", + "rel_duration": 0.006810711261763373, + "average": "PT2H1M28.47S", + "median": "PT2H30.0S", + "max": "PT3H59M", + "min": "PT2M" + } + }, + { + "head": 7, + "tail": 11, + "freq": { + "total": 1, + "rel_freq": 0.0006215040397762585, + "average": 0.003968253968253968, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 1 + }, + "duration": { + "total": "PT3H54M", + "rel_duration": 5.559182486579563e-05, + "average": "PT3H54M", + "median": "PT3H54M", + "max": "PT3H54M", + "min": "PT3H54M" + } + }, + { + "head": 10, + "tail": 11, + "freq": { + "total": 1, + "rel_freq": 0.0006215040397762585, + "average": 0.003968253968253968, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 1 + }, + "duration": { + "total": "PT3H47M", + "rel_duration": 5.392882155784448e-05, + "average": "PT3H47M", + "median": "PT3H47M", + "max": "PT3H47M", + "min": "PT3H47M" + } + }, + { + "head": 13, + "tail": 11, + "freq": { + "total": 1, + "rel_freq": 0.0006215040397762585, + "average": 0.003968253968253968, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 1 + }, + "duration": { + "total": "PT1H3M", + "rel_duration": 1.4967029771560362e-05, + "average": "PT1H3M", + "median": "PT1H3M", + "max": "PT1H3M", + "min": "PT1H3M" + } + }, + { + "head": 14, + "tail": 12, + "freq": { + "total": 22, + "rel_freq": 0.013673088875077687, + "average": 0.0873015873015873, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 22 + }, + "duration": null + }, + { + "head": 14, + "tail": 13, + "freq": { + "total": 182, + "rel_freq": 0.11311373523927906, + "average": 0.7222222222222222, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 182 + }, + "duration": null + } + ] + }, + "bpmn": { + "vertices": [ + { + "id": 1, + "type": "event", + "event_type": "start" + }, + { + "id": 2, + "type": "gateway", + "gateway_type": "exclusive" + }, + { + "id": 3, + "type": "activity", + "activity_type": "task", + "label": "a", + "freq": { + "total": 187, + "rel_freq": 0.10048361096184846, + "average": 0.7420634920634921, + "median": 1.0, + "max": 4, + "min": 0, + "cases": 184 + }, + "duration": { + "total": "PT6812H23M", + "rel_duration": 0.09710585158598249, + "average": "PT36H25M47.49S", + "median": "PT35H58M", + "max": "PT71H58M", + "min": "PT8M" + } + }, + { + "id": 4, + "type": "activity", + "activity_type": "task", + "label": "b", + "freq": { + "total": 34, + "rel_freq": 0.018269747447608814, + "average": 0.1349206349206349, + "median": 0.0, + "max": 3, + "min": 0, + "cases": 32 + }, + "duration": { + "total": "PT1290H22M", + "rel_duration": 0.018393291729742006, + "average": "PT37H57M7.06S", + "median": "PT40H14M", + "max": "PT70H11M", + "min": "PT55M" + } + }, + { + "id": 5, + "type": "activity", + "activity_type": "task", + "label": "c", + "freq": { + "total": 48, + "rel_freq": 0.025792584631918324, + "average": 0.19047619047619047, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 48 + }, + "duration": { + "total": "PT1776H49M", + "rel_duration": 0.0253273028081949, + "average": "PT37H1M1.25S", + "median": "PT40H54M30.0S", + "max": "PT70H56M", + "min": "PT1H35M" + } + }, + { + "id": 6, + "type": "activity", + "activity_type": "task", + "label": "d", + "freq": { + "total": 241, + "rel_freq": 0.12950026867275657, + "average": 0.9563492063492064, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 241 + }, + "duration": { + "total": "PT8883H20M", + "rel_duration": 0.12662582330542338, + "average": "PT36H51M37.1S", + "median": "PT37H11M", + "max": "PT71H58M", + "min": "PT7M" + } + }, + { + "id": 7, + "type": "gateway", + "gateway_type": "exclusive" + }, + { + "id": 8, + "type": "gateway", + "gateway_type": "exclusive" + }, + { + "id": 9, + "type": "activity", + "activity_type": "task", + "label": "e", + "freq": { + "total": 249, + "rel_freq": 0.1337990327780763, + "average": 0.9880952380952381, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 249 + }, + "duration": { + "total": "PT8607H18M", + "rel_duration": 0.12269115747881096, + "average": "PT34H34M2.89S", + "median": "PT32H59M", + "max": "PT71H51M", + "min": "PT12M" + } + }, + { + "id": 10, + "type": "activity", + "activity_type": "task", + "label": "g", + "freq": { + "total": 253, + "rel_freq": 0.13594841483073616, + "average": 1.003968253968254, + "median": 1.0, + "max": 4, + "min": 0, + "cases": 250 + }, + "duration": { + "total": "PT8969H24M", + "rel_duration": 0.12785264460288906, + "average": "PT35H27M7.83S", + "median": "PT33H47M", + "max": "PT71H23M", + "min": "PT12M" + } + }, + { + "id": 11, + "type": "activity", + "activity_type": "task", + "label": "h", + "freq": { + "total": 163, + "rel_freq": 0.08758731864588931, + "average": 0.6468253968253969, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 163 + }, + "duration": { + "total": "PT5802H58M", + "rel_duration": 0.082717309393688, + "average": "PT35H36M3.68S", + "median": "PT34H48M", + "max": "PT71H51M", + "min": "PT58M" + } + }, + { + "id": 12, + "type": "activity", + "activity_type": "task", + "label": "f", + "freq": { + "total": 249, + "rel_freq": 0.1337990327780763, + "average": 0.9880952380952381, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 249 + }, + "duration": { + "total": "PT8796H17M", + "rel_duration": 0.1253849852657907, + "average": "PT35H19M35.18S", + "median": "PT33H54M", + "max": "PT71H46M", + "min": "PT23M" + } + }, + { + "id": 13, + "type": "gateway", + "gateway_type": "exclusive" + }, + { + "id": 14, + "type": "activity", + "activity_type": "task", + "label": "i", + "freq": { + "total": 185, + "rel_freq": 0.09940891993551854, + "average": 0.7341269841269841, + "median": 1.0, + "max": 6, + "min": 0, + "cases": 175 + }, + "duration": { + "total": "PT6453H52M", + "rel_duration": 0.09199544242064861, + "average": "PT34H53M8.76S", + "median": "PT34H18M", + "max": "PT71H49M", + "min": "PT17M" + } + }, + { + "id": 15, + "type": "gateway", + "gateway_type": "exclusive" + }, + { + "id": 16, + "type": "activity", + "activity_type": "task", + "label": "k", + "freq": { + "total": 48, + "rel_freq": 0.025792584631918324, + "average": 0.19047619047619047, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 48 + }, + "duration": { + "total": "PT1900H35M", + "rel_duration": 0.027091511746029934, + "average": "PT39H35M43.75S", + "median": "PT41H26M", + "max": "PT70H40M", + "min": "PT2H39M" + } + }, + { + "id": 17, + "type": "activity", + "activity_type": "task", + "label": "l", + "freq": { + "total": 182, + "rel_freq": 0.09779688339602365, + "average": 0.7222222222222222, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 182 + }, + "duration": { + "total": "PT6980H15M", + "rel_duration": 0.09949867577422307, + "average": "PT38H21M10.88S", + "median": "PT38H49M30.0S", + "max": "PT71H46M", + "min": "PT41M" + } + }, + { + "id": 18, + "type": "activity", + "activity_type": "task", + "label": "j", + "freq": { + "total": 22, + "rel_freq": 0.011821601289629231, + "average": 0.0873015873015873, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 22 + }, + "duration": { + "total": "PT619H", + "rel_duration": 0.008823420408186537, + "average": "PT28H8M10.91S", + "median": "PT20H7M", + "max": "PT67H11M", + "min": "PT3H53M" + } + }, + { + "id": 19, + "type": "event", + "event_type": "end" + } + ], + "edges": [ + { + "head": 2, + "tail": 1, + "freq": { + "total": 252, + "rel_freq": 0.15661901802361716, + "average": 1.0, + "median": 1.0, + "max": 1, + "min": 1, + "cases": 252 + }, + "duration": null + }, + { + "head": 3, + "tail": 2, + "freq": { + "total": 175, + "rel_freq": 0.10876320696084525, + "average": 0.6944444444444444, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 175 + }, + "duration": null + }, + { + "head": 4, + "tail": 2, + "freq": { + "total": 32, + "rel_freq": 0.019888129272840272, + "average": 0.12698412698412698, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 32 + }, + "duration": null + }, + { + "head": 5, + "tail": 2, + "freq": { + "total": 45, + "rel_freq": 0.027967681789931635, + "average": 0.17857142857142858, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 45 + }, + "duration": null + }, + { + "head": 6, + "tail": 3, + "freq": { + "total": 170, + "rel_freq": 0.10565568676196395, + "average": 0.6746031746031746, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 170 + }, + "duration": { + "total": "PT354H28M", + "rel_duration": 0.00505267919335787, + "average": "PT2H5M6.35S", + "median": "PT2H4M", + "max": "PT3H59M", + "min": "PT5M" + } + }, + { + "head": 7, + "tail": 4, + "freq": { + "total": 22, + "rel_freq": 0.013673088875077687, + "average": 0.0873015873015873, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 22 + }, + "duration": null + }, + { + "head": 8, + "tail": 5, + "freq": { + "total": 46, + "rel_freq": 0.028589185829707892, + "average": 0.18253968253968253, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 46 + }, + "duration": null + }, + { + "head": 9, + "tail": 6, + "freq": { + "total": 236, + "rel_freq": 0.14667495338719702, + "average": 0.9365079365079365, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 236 + }, + "duration": { + "total": "PT469H49M", + "rel_duration": 0.0066969143211192865, + "average": "PT1H59M26.69S", + "median": "PT2H7M", + "max": "PT3H58M", + "min": "PT4M" + } + }, + { + "head": 10, + "tail": 7, + "freq": { + "total": 236, + "rel_freq": 0.14667495338719702, + "average": 0.9365079365079365, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 236 + }, + "duration": null + }, + { + "head": 11, + "tail": 8, + "freq": { + "total": 163, + "rel_freq": 0.10130515848353014, + "average": 0.6468253968253969, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 163 + }, + "duration": null + }, + { + "head": 12, + "tail": 9, + "freq": { + "total": 236, + "rel_freq": 0.14667495338719702, + "average": 0.9365079365079365, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 236 + }, + "duration": { + "total": "PT477H48M", + "rel_duration": 0.006810711261763373, + "average": "PT2H1M28.47S", + "median": "PT2H30.0S", + "max": "PT3H59M", + "min": "PT2M" + } + }, + { + "head": 13, + "tail": 10, + "freq": { + "total": 162, + "rel_freq": 0.10068365444375388, + "average": 0.6428571428571429, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 162 + }, + "duration": null + }, + { + "head": 14, + "tail": 11, + "freq": { + "total": 162, + "rel_freq": 0.10068365444375388, + "average": 0.6428571428571429, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 162 + }, + "duration": { + "total": "PT328H", + "rel_duration": 0.004675415014354094, + "average": "PT2H1M28.89S", + "median": "PT2H4M30.0S", + "max": "PT3H58M", + "min": "PT4M" + } + }, + { + "head": 15, + "tail": 12, + "freq": { + "total": 236, + "rel_freq": 0.14667495338719702, + "average": 0.9365079365079365, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 236 + }, + "duration": null + }, + { + "head": 8, + "tail": 13, + "freq": { + "total": 117, + "rel_freq": 0.07271597265382225, + "average": 0.4642857142857143, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 117 + }, + "duration": null + }, + { + "head": 16, + "tail": 13, + "freq": { + "total": 45, + "rel_freq": 0.027967681789931635, + "average": 0.17857142857142858, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 45 + }, + "duration": null + }, + { + "head": 17, + "tail": 14, + "freq": { + "total": 96, + "rel_freq": 0.05966438781852082, + "average": 0.38095238095238093, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 96 + }, + "duration": { + "total": "PT191H42M", + "rel_duration": 0.0027325520068648777, + "average": "PT1H59M48.75S", + "median": "PT2H2M30.0S", + "max": "PT3H57M", + "min": "PT2M" + } + }, + { + "head": 7, + "tail": 15, + "freq": { + "total": 214, + "rel_freq": 0.13300186451211932, + "average": 0.8492063492063492, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 214 + }, + "duration": null + }, + { + "head": 18, + "tail": 15, + "freq": { + "total": 22, + "rel_freq": 0.013673088875077687, + "average": 0.0873015873015873, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 22 + }, + "duration": null + }, + { + "head": 19, + "tail": 16, + "freq": { + "total": 48, + "rel_freq": 0.02983219390926041, + "average": 0.19047619047619047, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 48 + }, + "duration": null + }, + { + "head": 19, + "tail": 17, + "freq": { + "total": 182, + "rel_freq": 0.11311373523927906, + "average": 0.7222222222222222, + "median": 1.0, + "max": 1, + "min": 0, + "cases": 182 + }, + "duration": null + }, + { + "head": 19, + "tail": 18, + "freq": { + "total": 22, + "rel_freq": 0.013673088875077687, + "average": 0.0873015873015873, + "median": 0.0, + "max": 1, + "min": 0, + "cases": 22 + }, + "duration": null + } + ] + }, + "stats": { + "cases": { + "count": 252, + "total": 252, + "ratio": 1.0 }, - "insights": { - "most_freq_tasks": [ - "i" - ], - "most_freq_in": [ - "i" - ], - "most_freq_out": [ - "i" - ], - "most_time_tasks": [ - "g" - ], - "most_time_edges": [ - [ - "e", - "f" - ] - ], - "self_loops": [ - "b", - "i", - "a", - "g" - ], - "short_loops": [ - [ - "b", - "i" - ], - [ - "a", - "i" - ], - [ - "g", - "i" - ] - ], - "shortest_traces": [ - [ - "a", - "f", - "d", - "g", - "l" - ] - ], - "longest_traces": [ - [ - "a", - "f", - "e", - "d", - "c", - "g", - "g", - "i", - "g", - "i", - "g", - "i", - "i", - "l" - ] - ], - "most_freq_traces": [ - [ - "a", - "d", - "e", - "f", - "g", - "h", - "i", - "l" - ] - ] + "traces": { + "count": 12, + "total": 12, + "ratio": 1.0 + }, + "task_instances": { + "count": 1861, + "total": 1861, + "ratio": 1.0 + }, + "tasks": { + "count": 12, + "total": 12, + "ratio": 1.0 + }, + "started_at": "2022-01-03T00:56:00Z", + "completed_at": "2022-12-31T01:32:00Z", + "case_duration": { + "min": 363840.0, + "max": 2233740.0, + "average": 1002202.8571428572, + "median": 994350.0 } + }, + "insights": { + "most_freq_tasks": [ + "i" + ], + "most_freq_in": [ + "i" + ], + "most_freq_out": [ + "i" + ], + "most_time_tasks": [ + "g" + ], + "most_time_edges": [ + [ + "e", + "f" + ] + ], + "self_loops": [ + "b", + "i", + "a", + "g" + ], + "short_loops": [ + [ + "b", + "i" + ], + [ + "a", + "i" + ], + [ + "g", + "i" + ] + ], + "shortest_traces": [ + [ + "a", + "f", + "d", + "g", + "l" + ] + ], + "longest_traces": [ + [ + "a", + "f", + "e", + "d", + "c", + "g", + "g", + "i", + "g", + "i", + "g", + "i", + "i", + "l" + ] + ], + "most_freq_traces": [ + [ + "a", + "d", + "e", + "f", + "g", + "h", + "i", + "l" + ] + ] + } } diff --git a/src/mocks/fixtures/filter-params.json b/src/mocks/fixtures/filter-params.json index e544244..048719a 100644 --- a/src/mocks/fixtures/filter-params.json +++ b/src/mocks/fixtures/filter-params.json @@ -1,249 +1,249 @@ { - "tasks": [ - { - "label": "a", - "occurrences": 187, - "occurrence_ratio": 0.10048361096184846, - "cases": 184, - "case_ratio": 0.7301587301587301 - }, - { - "label": "d", - "occurrences": 241, - "occurrence_ratio": 0.12950026867275657, - "cases": 241, - "case_ratio": 0.9563492063492064 - }, - { - "label": "e", - "occurrences": 249, - "occurrence_ratio": 0.1337990327780763, - "cases": 249, - "case_ratio": 0.9880952380952381 - }, - { - "label": "f", - "occurrences": 249, - "occurrence_ratio": 0.1337990327780763, - "cases": 249, - "case_ratio": 0.9880952380952381 - }, - { - "label": "g", - "occurrences": 253, - "occurrence_ratio": 0.13594841483073616, - "cases": 250, - "case_ratio": 0.9920634920634921 - }, - { - "label": "h", - "occurrences": 163, - "occurrence_ratio": 0.08758731864588931, - "cases": 163, - "case_ratio": 0.6468253968253969 - }, - { - "label": "i", - "occurrences": 185, - "occurrence_ratio": 0.09940891993551854, - "cases": 175, - "case_ratio": 0.6944444444444444 - }, - { - "label": "l", - "occurrences": 182, - "occurrence_ratio": 0.09779688339602365, - "cases": 182, - "case_ratio": 0.7222222222222222 - }, - { - "label": "c", - "occurrences": 48, - "occurrence_ratio": 0.025792584631918324, - "cases": 48, - "case_ratio": 0.19047619047619047 - }, - { - "label": "k", - "occurrences": 48, - "occurrence_ratio": 0.025792584631918324, - "cases": 48, - "case_ratio": 0.19047619047619047 - }, - { - "label": "b", - "occurrences": 34, - "occurrence_ratio": 0.018269747447608814, - "cases": 32, - "case_ratio": 0.12698412698412698 - }, - { - "label": "j", - "occurrences": 22, - "occurrence_ratio": 0.011821601289629231, - "cases": 22, - "case_ratio": 0.0873015873015873 - } - ], - "sources": [ - { - "label": "a", - "occurrences": 175, - "occurrence_ratio": 0.6944444444444444, - "sinks": [ - "k", - "l" - ] - }, - { - "label": "c", - "occurrences": 45, - "occurrence_ratio": 0.17857142857142858, - "sinks": [ - "k" - ] - }, - { - "label": "b", - "occurrences": 32, - "occurrence_ratio": 0.12698412698412698, - "sinks": [ - "k", - "j", - "l" - ] - } - ], - "sinks": [ - { - "label": "l", - "occurrences": 182, - "occurrence_ratio": 0.7222222222222222, - "sources": [ - "a", - "b" - ] - }, - { - "label": "k", - "occurrences": 48, - "occurrence_ratio": 0.19047619047619047, - "sources": [ - "a", - "b", - "c" - ] - }, - { - "label": "j", - "occurrences": 22, - "occurrence_ratio": 0.0873015873015873, - "sources": [ - "b" - ] - } - ], - "timeframe": { - "data": [ - { - "x": "2022-01-21T03:21:48", - "y": 347 - }, - { - "x": "2022-02-26T08:13:24", - "y": 426 - }, - { - "x": "2022-04-03T13:05:00", - "y": 394 - }, - { - "x": "2022-05-09T17:56:36", - "y": 375 - }, - { - "x": "2022-06-14T22:48:12", - "y": 431 - }, - { - "x": "2022-07-21T03:39:48", - "y": 393 - }, - { - "x": "2022-08-26T08:31:24", - "y": 284 - }, - { - "x": "2022-10-01T13:23:00", - "y": 359 - }, - { - "x": "2022-11-06T18:14:36", - "y": 386 - }, - { - "x": "2022-12-12T23:06:12", - "y": 327 - } - ], - "x_axis": { - "min": "2022-01-03T00:56:00", - "max": "2022-12-31T01:32:00" - }, - "y_axis": { - "min": 0, - "max": 431 - } + "tasks": [ + { + "label": "a", + "occurrences": 187, + "occurrence_ratio": 0.10048361096184846, + "cases": 184, + "case_ratio": 0.7301587301587301 }, - "traces": [ - { - "id": 1, - "count": 95 - }, - { - "id": 2, - "count": 74 - }, - { - "id": 3, - "count": 45 - }, - { - "id": 4, - "count": 22 - }, - { - "id": 5, - "count": 8 - }, - { - "id": 6, - "count": 2 - }, - { - "id": 7, - "count": 1 - }, - { - "id": 8, - "count": 1 - }, - { - "id": 9, - "count": 1 - }, - { - "id": 10, - "count": 1 - }, - { - "id": 11, - "count": 1 - }, - { - "id": 12, - "count": 1 - } + { + "label": "d", + "occurrences": 241, + "occurrence_ratio": 0.12950026867275657, + "cases": 241, + "case_ratio": 0.9563492063492064 + }, + { + "label": "e", + "occurrences": 249, + "occurrence_ratio": 0.1337990327780763, + "cases": 249, + "case_ratio": 0.9880952380952381 + }, + { + "label": "f", + "occurrences": 249, + "occurrence_ratio": 0.1337990327780763, + "cases": 249, + "case_ratio": 0.9880952380952381 + }, + { + "label": "g", + "occurrences": 253, + "occurrence_ratio": 0.13594841483073616, + "cases": 250, + "case_ratio": 0.9920634920634921 + }, + { + "label": "h", + "occurrences": 163, + "occurrence_ratio": 0.08758731864588931, + "cases": 163, + "case_ratio": 0.6468253968253969 + }, + { + "label": "i", + "occurrences": 185, + "occurrence_ratio": 0.09940891993551854, + "cases": 175, + "case_ratio": 0.6944444444444444 + }, + { + "label": "l", + "occurrences": 182, + "occurrence_ratio": 0.09779688339602365, + "cases": 182, + "case_ratio": 0.7222222222222222 + }, + { + "label": "c", + "occurrences": 48, + "occurrence_ratio": 0.025792584631918324, + "cases": 48, + "case_ratio": 0.19047619047619047 + }, + { + "label": "k", + "occurrences": 48, + "occurrence_ratio": 0.025792584631918324, + "cases": 48, + "case_ratio": 0.19047619047619047 + }, + { + "label": "b", + "occurrences": 34, + "occurrence_ratio": 0.018269747447608814, + "cases": 32, + "case_ratio": 0.12698412698412698 + }, + { + "label": "j", + "occurrences": 22, + "occurrence_ratio": 0.011821601289629231, + "cases": 22, + "case_ratio": 0.0873015873015873 + } + ], + "sources": [ + { + "label": "a", + "occurrences": 175, + "occurrence_ratio": 0.6944444444444444, + "sinks": [ + "k", + "l" + ] + }, + { + "label": "c", + "occurrences": 45, + "occurrence_ratio": 0.17857142857142858, + "sinks": [ + "k" + ] + }, + { + "label": "b", + "occurrences": 32, + "occurrence_ratio": 0.12698412698412698, + "sinks": [ + "k", + "j", + "l" + ] + } + ], + "sinks": [ + { + "label": "l", + "occurrences": 182, + "occurrence_ratio": 0.7222222222222222, + "sources": [ + "a", + "b" + ] + }, + { + "label": "k", + "occurrences": 48, + "occurrence_ratio": 0.19047619047619047, + "sources": [ + "a", + "b", + "c" + ] + }, + { + "label": "j", + "occurrences": 22, + "occurrence_ratio": 0.0873015873015873, + "sources": [ + "b" + ] + } + ], + "timeframe": { + "data": [ + { + "x": "2022-01-21T03:21:48Z", + "y": 347 + }, + { + "x": "2022-02-26T08:13:24Z", + "y": 426 + }, + { + "x": "2022-04-03T13:05:00Z", + "y": 394 + }, + { + "x": "2022-05-09T17:56:36Z", + "y": 375 + }, + { + "x": "2022-06-14T22:48:12Z", + "y": 431 + }, + { + "x": "2022-07-21T03:39:48Z", + "y": 393 + }, + { + "x": "2022-08-26T08:31:24Z", + "y": 284 + }, + { + "x": "2022-10-01T13:23:00Z", + "y": 359 + }, + { + "x": "2022-11-06T18:14:36Z", + "y": 386 + }, + { + "x": "2022-12-12T23:06:12Z", + "y": 327 + } ], - "attrs": [] + "x_axis": { + "min": "2022-01-03T00:56:00Z", + "max": "2022-12-31T01:32:00Z" + }, + "y_axis": { + "min": 0, + "max": 431 + } + }, + "traces": [ + { + "id": 1, + "count": 95 + }, + { + "id": 2, + "count": 74 + }, + { + "id": 3, + "count": 45 + }, + { + "id": 4, + "count": 22 + }, + { + "id": 5, + "count": 8 + }, + { + "id": 6, + "count": 2 + }, + { + "id": 7, + "count": 1 + }, + { + "id": 8, + "count": 1 + }, + { + "id": 9, + "count": 1 + }, + { + "id": 10, + "count": 1 + }, + { + "id": 11, + "count": 1 + }, + { + "id": 12, + "count": 1 + } + ], + "attrs": [] } diff --git a/src/mocks/fixtures/performance.json b/src/mocks/fixtures/performance.json index 5c3eba2..761fcb0 100644 --- a/src/mocks/fixtures/performance.json +++ b/src/mocks/fixtures/performance.json @@ -1,928 +1,928 @@ { - "time": { - "avg_cycle_time": { - "data": [ - { - "x": "2022-01-21T03:21:48", - "y": 980220.0 - }, - { - "x": "2022-02-26T08:13:24", - "y": 1000376.129032 - }, - { - "x": "2022-04-03T13:05:00", - "y": 911990.0 - }, - { - "x": "2022-05-09T17:56:36", - "y": 1041860.0 - }, - { - "x": "2022-06-14T22:48:12", - "y": 985415.625 - }, - { - "x": "2022-07-21T03:39:48", - "y": 938079.130435 - }, - { - "x": "2022-08-26T08:31:24", - "y": 1074680.0 - }, - { - "x": "2022-10-01T13:23:00", - "y": 1061848.695652 - }, - { - "x": "2022-11-06T18:14:36", - "y": 970119.230769 - }, - { - "x": "2022-12-12T23:06:12", - "y": 1060703.076923 - } - ], - "x_axis": { - "min": "2022-01-03T00:56:00", - "max": "2022-12-31T01:32:00" - }, - "y_axis": { - "min": 0.0, - "max": 1074680.0 - } + "time": { + "avg_cycle_time": { + "data": [ + { + "x": "2022-01-21T03:21:48Z", + "y": "PT272H17M" }, - "avg_cycle_efficiency": { - "data": [ - { - "x": "2022-01-21T03:21:48", - "y": 0.9527980523449506 - }, - { - "x": "2022-02-26T08:13:24", - "y": 0.9516493513262202 - }, - { - "x": "2022-04-03T13:05:00", - "y": 0.9475330648076836 - }, - { - "x": "2022-05-09T17:56:36", - "y": 0.9537265449333607 - }, - { - "x": "2022-06-14T22:48:12", - "y": 0.9528919667258132 - }, - { - "x": "2022-07-21T03:39:48", - "y": 0.9489804015433904 - }, - { - "x": "2022-08-26T08:31:24", - "y": 0.9538748758272698 - }, - { - "x": "2022-10-01T13:23:00", - "y": 0.9548679615433759 - }, - { - "x": "2022-11-06T18:14:36", - "y": 0.9469965631092006 - }, - { - "x": "2022-12-12T23:06:12", - "y": 0.9505469198562757 - } - ], - "x_axis": { - "min": "2022-01-03T00:56:00", - "max": "2022-12-31T01:32:00" - }, - "y_axis": { - "min": 0.0, - "max": 1.0 - } + { + "x": "2022-02-26T08:13:24Z", + "y": "PT277H52M56.13S" }, - "avg_process_time": { - "data": [ - { - "x": "2022-01-21T03:21:48", - "y": 937067.368421 - }, - { - "x": "2022-02-26T08:13:24", - "y": 953767.741935 - }, - { - "x": "2022-04-03T13:05:00", - "y": 865780.0 - }, - { - "x": "2022-05-09T17:56:36", - "y": 994600.0 - }, - { - "x": "2022-06-14T22:48:12", - "y": 939795.0 - }, - { - "x": "2022-07-21T03:39:48", - "y": 890947.826087 - }, - { - "x": "2022-08-26T08:31:24", - "y": 1026345.714286 - }, - { - "x": "2022-10-01T13:23:00", - "y": 1016363.478261 - }, - { - "x": "2022-11-06T18:14:36", - "y": 923626.153846 - }, - { - "x": "2022-12-12T23:06:12", - "y": 1011540.0 - } - ], - "x_axis": { - "min": "2022-01-03T00:56:00", - "max": "2022-12-31T01:32:00" - }, - "y_axis": { - "min": 0.0, - "max": 1026345.714286 - } + { + "x": "2022-04-03T13:05:00Z", + "y": "PT253H19M50.0S" }, - "avg_process_time_by_task": { - "data": [ - { - "x": "a", - "y": 131147.486631 - }, - { - "x": "b", - "y": 136627.058824 - }, - { - "x": "c", - "y": 133261.25 - }, - { - "x": "d", - "y": 132697.095436 - }, - { - "x": "e", - "y": 124442.891566 - }, - { - "x": "f", - "y": 127175.180723 - }, - { - "x": "g", - "y": 127627.826087 - }, - { - "x": "h", - "y": 128163.680982 - }, - { - "x": "i", - "y": 125588.756757 - }, - { - "x": "j", - "y": 101290.909091 - }, - { - "x": "k", - "y": 142543.75 - }, - { - "x": "l", - "y": 138070.879121 - } - ], - "x_axis": { - "labels": [ - "a", - "b", - "c", - "d", - "e", - "f", - "g", - "h", - "i", - "j", - "k", - "l" - ] - }, - "y_axis": { - "min": 0.0, - "max": 142543.75 - } + { + "x": "2022-05-09T17:56:36Z", + "y": "PT289H24M20.0S" }, - "avg_waiting_time": { - "data": [ - { - "x": "2022-01-21T03:21:48", - "y": 43152.631579 - }, - { - "x": "2022-02-26T08:13:24", - "y": 46608.387097 - }, - { - "x": "2022-04-03T13:05:00", - "y": 46210.0 - }, - { - "x": "2022-05-09T17:56:36", - "y": 47260.0 - }, - { - "x": "2022-06-14T22:48:12", - "y": 45620.625 - }, - { - "x": "2022-07-21T03:39:48", - "y": 47131.304348 - }, - { - "x": "2022-08-26T08:31:24", - "y": 48334.285714 - }, - { - "x": "2022-10-01T13:23:00", - "y": 45485.217391 - }, - { - "x": "2022-11-06T18:14:36", - "y": 46493.076923 - }, - { - "x": "2022-12-12T23:06:12", - "y": 49163.076923 - } - ], - "x_axis": { - "min": "2022-01-03T00:56:00", - "max": "2022-12-31T01:32:00" - }, - "y_axis": { - "min": 0.0, - "max": 49163.076923 - } + { + "x": "2022-06-14T22:48:12Z", + "y": "PT273H43M35.62S" }, - "avg_waiting_time_by_edge": { - "data": [ - { - "x": [ - "a", - "a" - ], - "y": 6420.0 - }, - { - "x": [ - "a", - "d" - ], - "y": 7506.352941 - }, - { - "x": [ - "a", - "f" - ], - "y": 5940.0 - }, - { - "x": [ - "a", - "g" - ], - "y": 5175.0 - }, - { - "x": [ - "a", - "i" - ], - "y": 6260.0 - }, - { - "x": [ - "b", - "a" - ], - "y": 6840.0 - }, - { - "x": [ - "b", - "b" - ], - "y": 3540.0 - }, - { - "x": [ - "b", - "g" - ], - "y": 7273.636364 - }, - { - "x": [ - "b", - "i" - ], - "y": 6288.0 - }, - { - "x": [ - "c", - "g" - ], - "y": 11460.0 - }, - { - "x": [ - "c", - "h" - ], - "y": 6821.73913 - }, - { - "x": [ - "c", - "k" - ], - "y": 13500.0 - }, - { - "x": [ - "d", - "c" - ], - "y": 11760.0 - }, - { - "x": [ - "d", - "e" - ], - "y": 7166.694915 - }, - { - "x": [ - "d", - "g" - ], - "y": 8080.0 - }, - { - "x": [ - "d", - "i" - ], - "y": 3600.0 - }, - { - "x": [ - "e", - "a" - ], - "y": 7260.0 - }, - { - "x": [ - "e", - "d" - ], - "y": 6780.0 - }, - { - "x": [ - "e", - "f" - ], - "y": 7288.474576 - }, - { - "x": [ - "e", - "g" - ], - "y": 14040.0 - }, - { - "x": [ - "e", - "k" - ], - "y": 13620.0 - }, - { - "x": [ - "e", - "l" - ], - "y": 3780.0 - }, - { - "x": [ - "f", - "d" - ], - "y": 10140.0 - }, - { - "x": [ - "f", - "e" - ], - "y": 3940.0 - }, - { - "x": [ - "f", - "g" - ], - "y": 6983.271028 - }, - { - "x": [ - "f", - "j" - ], - "y": 8170.909091 - }, - { - "x": [ - "f", - "l" - ], - "y": 6667.5 - }, - { - "x": [ - "g", - "c" - ], - "y": 2400.0 - }, - { - "x": [ - "g", - "e" - ], - "y": 11880.0 - }, - { - "x": [ - "g", - "f" - ], - "y": 5302.5 - }, - { - "x": [ - "g", - "g" - ], - "y": 11400.0 - }, - { - "x": [ - "g", - "h" - ], - "y": 7592.820513 - }, - { - "x": [ - "g", - "i" - ], - "y": 7140.0 - }, - { - "x": [ - "g", - "k" - ], - "y": 8116.0 - }, - { - "x": [ - "g", - "l" - ], - "y": 7457.368421 - }, - { - "x": [ - "h", - "i" - ], - "y": 7288.888889 - }, - { - "x": [ - "h", - "l" - ], - "y": 6960.0 - }, - { - "x": [ - "i", - "a" - ], - "y": 8910.0 - }, - { - "x": [ - "i", - "b" - ], - "y": 5880.0 - }, - { - "x": [ - "i", - "c" - ], - "y": 5460.0 - }, - { - "x": [ - "i", - "d" - ], - "y": 7710.447761 - }, - { - "x": [ - "i", - "e" - ], - "y": 9153.333333 - }, - { - "x": [ - "i", - "g" - ], - "y": 8640.0 - }, - { - "x": [ - "i", - "i" - ], - "y": 6324.0 - }, - { - "x": [ - "i", - "k" - ], - "y": 3240.0 - }, - { - "x": [ - "i", - "l" - ], - "y": 7188.75 - } - ], - "x_axis": { - "labels": [ - [ - "a", - "a" - ], - [ - "a", - "d" - ], - [ - "a", - "f" - ], - [ - "a", - "g" - ], - [ - "a", - "i" - ], - [ - "b", - "a" - ], - [ - "b", - "b" - ], - [ - "b", - "g" - ], - [ - "b", - "i" - ], - [ - "c", - "g" - ], - [ - "c", - "h" - ], - [ - "c", - "k" - ], - [ - "d", - "c" - ], - [ - "d", - "e" - ], - [ - "d", - "g" - ], - [ - "d", - "i" - ], - [ - "e", - "a" - ], - [ - "e", - "d" - ], - [ - "e", - "f" - ], - [ - "e", - "g" - ], - [ - "e", - "k" - ], - [ - "e", - "l" - ], - [ - "f", - "d" - ], - [ - "f", - "e" - ], - [ - "f", - "g" - ], - [ - "f", - "j" - ], - [ - "f", - "l" - ], - [ - "g", - "c" - ], - [ - "g", - "e" - ], - [ - "g", - "f" - ], - [ - "g", - "g" - ], - [ - "g", - "h" - ], - [ - "g", - "i" - ], - [ - "g", - "k" - ], - [ - "g", - "l" - ], - [ - "h", - "i" - ], - [ - "h", - "l" - ], - [ - "i", - "a" - ], - [ - "i", - "b" - ], - [ - "i", - "c" - ], - [ - "i", - "d" - ], - [ - "i", - "e" - ], - [ - "i", - "g" - ], - [ - "i", - "i" - ], - [ - "i", - "k" - ], - [ - "i", - "l" - ] - ] - }, - "y_axis": { - "min": 0.0, - "max": 14040.0 - } + { + "x": "2022-07-21T03:39:48Z", + "y": "PT260H34M39.13S" + }, + { + "x": "2022-08-26T08:31:24Z", + "y": "PT298H31M20.0S" + }, + { + "x": "2022-10-01T13:23:00Z", + "y": "PT294H57M28.7S" + }, + { + "x": "2022-11-06T18:14:36Z", + "y": "PT269H28M39.23S" + }, + { + "x": "2022-12-12T23:06:12Z", + "y": "PT294H38M23.08S" } + ], + "x_axis": { + "min": "2022-01-03T00:56:00Z", + "max": "2022-12-31T01:32:00Z" + }, + "y_axis": { + "min": "PT0S", + "max": "PT298H31M20.0S" + } }, - "freq": { - "cases": { - "data": [ - { - "x": "2022-01-21T03:21:48", - "y": 30 - }, - { - "x": "2022-02-26T08:13:24", - "y": 25 - }, - { - "x": "2022-04-03T13:05:00", - "y": 30 - }, - { - "x": "2022-05-09T17:56:36", - "y": 26 - }, - { - "x": "2022-06-14T22:48:12", - "y": 28 - }, - { - "x": "2022-07-21T03:39:48", - "y": 27 - }, - { - "x": "2022-08-26T08:31:24", - "y": 17 - }, - { - "x": "2022-10-01T13:23:00", - "y": 24 - }, - { - "x": "2022-11-06T18:14:36", - "y": 28 - }, - { - "x": "2022-12-12T23:06:12", - "y": 17 - } - ], - "x_axis": { - "min": "2022-01-03T00:56:00", - "max": "2022-12-31T01:32:00" - }, - "y_axis": { - "min": 0, - "max": 30 - } + "avg_cycle_efficiency": { + "data": [ + { + "x": "2022-01-21T03:21:48Z", + "y": 0.9527980523449506 }, - "cases_by_task": { - "data": [ - { - "x": "a", - "y": 184 - }, - { - "x": "b", - "y": 32 - }, - { - "x": "c", - "y": 48 - }, - { - "x": "d", - "y": 241 - }, - { - "x": "e", - "y": 249 - }, - { - "x": "f", - "y": 249 - }, - { - "x": "g", - "y": 250 - }, - { - "x": "h", - "y": 163 - }, - { - "x": "i", - "y": 175 - }, - { - "x": "j", - "y": 22 - }, - { - "x": "k", - "y": 48 - }, - { - "x": "l", - "y": 182 - } - ], - "x_axis": { - "labels": [ - "a", - "b", - "c", - "d", - "e", - "f", - "g", - "h", - "i", - "j", - "k", - "l" - ] - }, - "y_axis": { - "min": 0, - "max": 250 - } + { + "x": "2022-02-26T08:13:24Z", + "y": 0.9516493513262202 + }, + { + "x": "2022-04-03T13:05:00Z", + "y": 0.9475330648076836 + }, + { + "x": "2022-05-09T17:56:36Z", + "y": 0.9537265449333607 + }, + { + "x": "2022-06-14T22:48:12Z", + "y": 0.9528919667258132 + }, + { + "x": "2022-07-21T03:39:48Z", + "y": 0.9489804015433904 + }, + { + "x": "2022-08-26T08:31:24Z", + "y": 0.9538748758272698 + }, + { + "x": "2022-10-01T13:23:00Z", + "y": 0.9548679615433759 + }, + { + "x": "2022-11-06T18:14:36Z", + "y": 0.9469965631092006 + }, + { + "x": "2022-12-12T23:06:12Z", + "y": 0.9505469198562757 } + ], + "x_axis": { + "min": "2022-01-03T00:56:00Z", + "max": "2022-12-31T01:32:00Z" + }, + "y_axis": { + "min": 0.0, + "max": 1.0 + } + }, + "avg_process_time": { + "data": [ + { + "x": "2022-01-21T03:21:48Z", + "y": "PT260H17M47.37S" + }, + { + "x": "2022-02-26T08:13:24Z", + "y": "PT264H56M7.74S" + }, + { + "x": "2022-04-03T13:05:00Z", + "y": "PT240H29M40.0S" + }, + { + "x": "2022-05-09T17:56:36Z", + "y": "PT276H16M40.0S" + }, + { + "x": "2022-06-14T22:48:12Z", + "y": "PT261H3M15.0S" + }, + { + "x": "2022-07-21T03:39:48Z", + "y": "PT247H29M7.83S" + }, + { + "x": "2022-08-26T08:31:24Z", + "y": "PT285H5M45.71S" + }, + { + "x": "2022-10-01T13:23:00Z", + "y": "PT282H19M23.48S" + }, + { + "x": "2022-11-06T18:14:36Z", + "y": "PT256H33M46.15S" + }, + { + "x": "2022-12-12T23:06:12Z", + "y": "PT280H59M" + } + ], + "x_axis": { + "min": "2022-01-03T00:56:00Z", + "max": "2022-12-31T01:32:00Z" + }, + "y_axis": { + "min": "PT0S", + "max": "PT285H5M45.71S" + } + }, + "avg_process_time_by_task": { + "data": [ + { + "x": "aT00:00:00Z", + "y": "PT36H25M47.49S" + }, + { + "x": "bT00:00:00Z", + "y": "PT37H57M7.06S" + }, + { + "x": "cT00:00:00Z", + "y": "PT37H1M1.25S" + }, + { + "x": "dT00:00:00Z", + "y": "PT36H51M37.1S" + }, + { + "x": "eT00:00:00Z", + "y": "PT34H34M2.89S" + }, + { + "x": "fT00:00:00Z", + "y": "PT35H19M35.18S" + }, + { + "x": "gT00:00:00Z", + "y": "PT35H27M7.83S" + }, + { + "x": "hT00:00:00Z", + "y": "PT35H36M3.68S" + }, + { + "x": "iT00:00:00Z", + "y": "PT34H53M8.76S" + }, + { + "x": "jT00:00:00Z", + "y": "PT28H8M10.91S" + }, + { + "x": "kT00:00:00Z", + "y": "PT39H35M43.75S" + }, + { + "x": "lT00:00:00Z", + "y": "PT38H21M10.88S" + } + ], + "x_axis": { + "labels": [ + "a", + "b", + "c", + "d", + "e", + "f", + "g", + "h", + "i", + "j", + "k", + "l" + ] + }, + "y_axis": { + "min": "PT0S", + "max": "PT39H35M43.75S" + } + }, + "avg_waiting_time": { + "data": [ + { + "x": "2022-01-21T03:21:48Z", + "y": "PT11H59M12.63S" + }, + { + "x": "2022-02-26T08:13:24Z", + "y": "PT12H56M48.39S" + }, + { + "x": "2022-04-03T13:05:00Z", + "y": "PT12H50M10.0S" + }, + { + "x": "2022-05-09T17:56:36Z", + "y": "PT13H7M40.0S" + }, + { + "x": "2022-06-14T22:48:12Z", + "y": "PT12H40M20.62S" + }, + { + "x": "2022-07-21T03:39:48Z", + "y": "PT13H5M31.3S" + }, + { + "x": "2022-08-26T08:31:24Z", + "y": "PT13H25M34.29S" + }, + { + "x": "2022-10-01T13:23:00Z", + "y": "PT12H38M5.22S" + }, + { + "x": "2022-11-06T18:14:36Z", + "y": "PT12H54M53.08S" + }, + { + "x": "2022-12-12T23:06:12Z", + "y": "PT13H39M23.08S" + } + ], + "x_axis": { + "min": "2022-01-03T00:56:00Z", + "max": "2022-12-31T01:32:00Z" + }, + "y_axis": { + "min": "PT0S", + "max": "PT13H39M23.08S" + } + }, + "avg_waiting_time_by_edge": { + "data": [ + { + "x": [ + "a", + "a" + ], + "y": "PT1H47M" + }, + { + "x": [ + "a", + "d" + ], + "y": "PT2H5M6.35S" + }, + { + "x": [ + "a", + "f" + ], + "y": "PT1H39M" + }, + { + "x": [ + "a", + "g" + ], + "y": "PT1H26M15.0S" + }, + { + "x": [ + "a", + "i" + ], + "y": "PT1H44M20.0S" + }, + { + "x": [ + "b", + "a" + ], + "y": "PT1H54M" + }, + { + "x": [ + "b", + "b" + ], + "y": "PT59M" + }, + { + "x": [ + "b", + "g" + ], + "y": "PT2H1M13.64S" + }, + { + "x": [ + "b", + "i" + ], + "y": "PT1H44M48.0S" + }, + { + "x": [ + "c", + "g" + ], + "y": "PT3H11M" + }, + { + "x": [ + "c", + "h" + ], + "y": "PT1H53M41.74S" + }, + { + "x": [ + "c", + "k" + ], + "y": "PT3H45M" + }, + { + "x": [ + "d", + "c" + ], + "y": "PT3H16M" + }, + { + "x": [ + "d", + "e" + ], + "y": "PT1H59M26.69S" + }, + { + "x": [ + "d", + "g" + ], + "y": "PT2H14M40.0S" + }, + { + "x": [ + "d", + "i" + ], + "y": "PT1H" + }, + { + "x": [ + "e", + "a" + ], + "y": "PT2H1M" + }, + { + "x": [ + "e", + "d" + ], + "y": "PT1H53M" + }, + { + "x": [ + "e", + "f" + ], + "y": "PT2H1M28.47S" + }, + { + "x": [ + "e", + "g" + ], + "y": "PT3H54M" + }, + { + "x": [ + "e", + "k" + ], + "y": "PT3H47M" + }, + { + "x": [ + "e", + "l" + ], + "y": "PT1H3M" + }, + { + "x": [ + "f", + "d" + ], + "y": "PT2H49M" + }, + { + "x": [ + "f", + "e" + ], + "y": "PT1H5M40.0S" + }, + { + "x": [ + "f", + "g" + ], + "y": "PT1H56M23.27S" + }, + { + "x": [ + "f", + "j" + ], + "y": "PT2H16M10.91S" + }, + { + "x": [ + "f", + "l" + ], + "y": "PT1H51M7.5S" + }, + { + "x": [ + "g", + "c" + ], + "y": "PT40M" + }, + { + "x": [ + "g", + "e" + ], + "y": "PT3H18M" + }, + { + "x": [ + "g", + "f" + ], + "y": "PT1H28M22.5S" + }, + { + "x": [ + "g", + "g" + ], + "y": "PT3H10M" + }, + { + "x": [ + "g", + "h" + ], + "y": "PT2H6M32.82S" + }, + { + "x": [ + "g", + "i" + ], + "y": "PT1H59M" + }, + { + "x": [ + "g", + "k" + ], + "y": "PT2H15M16.0S" + }, + { + "x": [ + "g", + "l" + ], + "y": "PT2H4M17.37S" + }, + { + "x": [ + "h", + "i" + ], + "y": "PT2H1M28.89S" + }, + { + "x": [ + "h", + "l" + ], + "y": "PT1H56M" + }, + { + "x": [ + "i", + "a" + ], + "y": "PT2H28M30.0S" + }, + { + "x": [ + "i", + "b" + ], + "y": "PT1H38M" + }, + { + "x": [ + "i", + "c" + ], + "y": "PT1H31M" + }, + { + "x": [ + "i", + "d" + ], + "y": "PT2H8M30.45S" + }, + { + "x": [ + "i", + "e" + ], + "y": "PT2H32M33.33S" + }, + { + "x": [ + "i", + "g" + ], + "y": "PT2H24M" + }, + { + "x": [ + "i", + "i" + ], + "y": "PT1H45M24.0S" + }, + { + "x": [ + "i", + "k" + ], + "y": "PT54M" + }, + { + "x": [ + "i", + "l" + ], + "y": "PT1H59M48.75S" + } + ], + "x_axis": { + "labels": [ + [ + "a", + "a" + ], + [ + "a", + "d" + ], + [ + "a", + "f" + ], + [ + "a", + "g" + ], + [ + "a", + "i" + ], + [ + "b", + "a" + ], + [ + "b", + "b" + ], + [ + "b", + "g" + ], + [ + "b", + "i" + ], + [ + "c", + "g" + ], + [ + "c", + "h" + ], + [ + "c", + "k" + ], + [ + "d", + "c" + ], + [ + "d", + "e" + ], + [ + "d", + "g" + ], + [ + "d", + "i" + ], + [ + "e", + "a" + ], + [ + "e", + "d" + ], + [ + "e", + "f" + ], + [ + "e", + "g" + ], + [ + "e", + "k" + ], + [ + "e", + "l" + ], + [ + "f", + "d" + ], + [ + "f", + "e" + ], + [ + "f", + "g" + ], + [ + "f", + "j" + ], + [ + "f", + "l" + ], + [ + "g", + "c" + ], + [ + "g", + "e" + ], + [ + "g", + "f" + ], + [ + "g", + "g" + ], + [ + "g", + "h" + ], + [ + "g", + "i" + ], + [ + "g", + "k" + ], + [ + "g", + "l" + ], + [ + "h", + "i" + ], + [ + "h", + "l" + ], + [ + "i", + "a" + ], + [ + "i", + "b" + ], + [ + "i", + "c" + ], + [ + "i", + "d" + ], + [ + "i", + "e" + ], + [ + "i", + "g" + ], + [ + "i", + "i" + ], + [ + "i", + "k" + ], + [ + "i", + "l" + ] + ] + }, + "y_axis": { + "min": "PT0S", + "max": "PT3H54M" + } } + }, + "freq": { + "cases": { + "data": [ + { + "x": "2022-01-21T03:21:48Z", + "y": 30 + }, + { + "x": "2022-02-26T08:13:24Z", + "y": 25 + }, + { + "x": "2022-04-03T13:05:00Z", + "y": 30 + }, + { + "x": "2022-05-09T17:56:36Z", + "y": 26 + }, + { + "x": "2022-06-14T22:48:12Z", + "y": 28 + }, + { + "x": "2022-07-21T03:39:48Z", + "y": 27 + }, + { + "x": "2022-08-26T08:31:24Z", + "y": 17 + }, + { + "x": "2022-10-01T13:23:00Z", + "y": 24 + }, + { + "x": "2022-11-06T18:14:36Z", + "y": 28 + }, + { + "x": "2022-12-12T23:06:12Z", + "y": 17 + } + ], + "x_axis": { + "min": "2022-01-03T00:56:00Z", + "max": "2022-12-31T01:32:00Z" + }, + "y_axis": { + "min": 0, + "max": 30 + } + }, + "cases_by_task": { + "data": [ + { + "x": "aT00:00:00Z", + "y": 184 + }, + { + "x": "bT00:00:00Z", + "y": 32 + }, + { + "x": "cT00:00:00Z", + "y": 48 + }, + { + "x": "dT00:00:00Z", + "y": 241 + }, + { + "x": "eT00:00:00Z", + "y": 249 + }, + { + "x": "fT00:00:00Z", + "y": 249 + }, + { + "x": "gT00:00:00Z", + "y": 250 + }, + { + "x": "hT00:00:00Z", + "y": 163 + }, + { + "x": "iT00:00:00Z", + "y": 175 + }, + { + "x": "jT00:00:00Z", + "y": 22 + }, + { + "x": "kT00:00:00Z", + "y": 48 + }, + { + "x": "lT00:00:00Z", + "y": 182 + } + ], + "x_axis": { + "labels": [ + "a", + "b", + "c", + "d", + "e", + "f", + "g", + "h", + "i", + "j", + "k", + "l" + ] + }, + "y_axis": { + "min": 0, + "max": 250 + } + } + } } diff --git a/src/mocks/fixtures/trace-detail.json b/src/mocks/fixtures/trace-detail.json index 6e929a7..a736c11 100644 --- a/src/mocks/fixtures/trace-detail.json +++ b/src/mocks/fixtures/trace-detail.json @@ -12,141 +12,141 @@ "cases": [ { "id": "H00564053", - "started_at": "2022-01-03T00:56:00", - "completed_at": "2022-01-12T02:29:00", + "started_at": "2022-01-03T00:56:00Z", + "completed_at": "2022-01-12T02:29:00Z", "attributes": [], "facets": [] }, { "id": "H00723931", - "started_at": "2022-01-04T17:51:00", - "completed_at": "2022-01-17T10:00:00", + "started_at": "2022-01-04T17:51:00Z", + "completed_at": "2022-01-17T10:00:00Z", "attributes": [], "facets": [] }, { "id": "H00542949", - "started_at": "2022-01-10T19:05:00", - "completed_at": "2022-01-28T09:38:00", + "started_at": "2022-01-10T19:05:00Z", + "completed_at": "2022-01-28T09:38:00Z", "attributes": [], "facets": [] }, { "id": "H00320575", - "started_at": "2022-01-12T21:35:00", - "completed_at": "2022-01-24T19:38:00", + "started_at": "2022-01-12T21:35:00Z", + "completed_at": "2022-01-24T19:38:00Z", "attributes": [], "facets": [] }, { "id": "H00565387", - "started_at": "2022-01-20T20:30:00", - "completed_at": "2022-02-06T10:57:00", + "started_at": "2022-01-20T20:30:00Z", + "completed_at": "2022-02-06T10:57:00Z", "attributes": [], "facets": [] }, { "id": "H00832338", - "started_at": "2022-01-29T15:00:00", - "completed_at": "2022-02-13T17:46:00", + "started_at": "2022-01-29T15:00:00Z", + "completed_at": "2022-02-13T17:46:00Z", "attributes": [], "facets": [] }, { "id": "H00525137", - "started_at": "2022-02-05T23:26:00", - "completed_at": "2022-02-14T19:47:00", + "started_at": "2022-02-05T23:26:00Z", + "completed_at": "2022-02-14T19:47:00Z", "attributes": [], "facets": [] }, { "id": "H00093124", - "started_at": "2022-02-09T16:56:00", - "completed_at": "2022-02-28T17:38:00", + "started_at": "2022-02-09T16:56:00Z", + "completed_at": "2022-02-28T17:38:00Z", "attributes": [], "facets": [] }, { "id": "H00657586", - "started_at": "2022-02-14T20:07:00", - "completed_at": "2022-02-28T15:21:00", + "started_at": "2022-02-14T20:07:00Z", + "completed_at": "2022-02-28T15:21:00Z", "attributes": [], "facets": [] }, { "id": "H00141668", - "started_at": "2022-02-17T13:57:00", - "completed_at": "2022-03-06T00:01:00", + "started_at": "2022-02-17T13:57:00Z", + "completed_at": "2022-03-06T00:01:00Z", "attributes": [], "facets": [] }, { "id": "H00493818", - "started_at": "2022-02-20T19:54:00", - "completed_at": "2022-03-05T05:06:00", + "started_at": "2022-02-20T19:54:00Z", + "completed_at": "2022-03-05T05:06:00Z", "attributes": [], "facets": [] }, { "id": "H00488827", - "started_at": "2022-02-21T00:38:00", - "completed_at": "2022-03-03T16:24:00", + "started_at": "2022-02-21T00:38:00Z", + "completed_at": "2022-03-03T16:24:00Z", "attributes": [], "facets": [] }, { "id": "H00874806", - "started_at": "2022-02-24T15:15:00", - "completed_at": "2022-03-12T01:12:00", + "started_at": "2022-02-24T15:15:00Z", + "completed_at": "2022-03-12T01:12:00Z", "attributes": [], "facets": [] }, { "id": "H00395448", - "started_at": "2022-02-26T03:35:00", - "completed_at": "2022-03-08T23:11:00", + "started_at": "2022-02-26T03:35:00Z", + "completed_at": "2022-03-08T23:11:00Z", "attributes": [], "facets": [] }, { "id": "H00414605", - "started_at": "2022-02-26T17:11:00", - "completed_at": "2022-03-10T08:50:00", + "started_at": "2022-02-26T17:11:00Z", + "completed_at": "2022-03-10T08:50:00Z", "attributes": [], "facets": [] }, { "id": "H00564269", - "started_at": "2022-03-04T01:18:00", - "completed_at": "2022-03-16T08:14:00", + "started_at": "2022-03-04T01:18:00Z", + "completed_at": "2022-03-16T08:14:00Z", "attributes": [], "facets": [] }, { "id": "H00729845", - "started_at": "2022-03-05T09:29:00", - "completed_at": "2022-03-17T15:25:00", + "started_at": "2022-03-05T09:29:00Z", + "completed_at": "2022-03-17T15:25:00Z", "attributes": [], "facets": [] }, { "id": "H00194115", - "started_at": "2022-03-09T18:58:00", - "completed_at": "2022-03-23T09:01:00", + "started_at": "2022-03-09T18:58:00Z", + "completed_at": "2022-03-23T09:01:00Z", "attributes": [], "facets": [] }, { "id": "H00517238", - "started_at": "2022-03-21T06:30:00", - "completed_at": "2022-04-05T05:27:00", + "started_at": "2022-03-21T06:30:00Z", + "completed_at": "2022-04-05T05:27:00Z", "attributes": [], "facets": [] }, { "id": "H00377237", - "started_at": "2022-03-24T12:06:00", - "completed_at": "2022-04-04T15:44:00", + "started_at": "2022-03-24T12:06:00Z", + "completed_at": "2022-04-04T15:44:00Z", "attributes": [], "facets": [] } diff --git a/src/mocks/fixtures/user-detail.json b/src/mocks/fixtures/user-detail.json index 296f3fb..fa4a173 100644 --- a/src/mocks/fixtures/user-detail.json +++ b/src/mocks/fixtures/user-detail.json @@ -1,14 +1,15 @@ { "username": "testadmin", "name": "Test Admin", - "is_admin": true, "is_active": true, "is_sso": false, - "has_data": true, + "visits": 42, + "visited_at": "2025-06-12T09:00:00Z", + "created_at": "2024-01-01T00:00:00Z", + "created_by": { "username": "system", "name": "System" }, + "updated_at": "2025-06-10T14:30:00Z", + "updated_by": { "username": "testadmin", "name": "Test Admin" }, "roles": [ { "code": "admin", "name": "Administrator" } - ], - "detail": { - "visits": 42 - } + ] } diff --git a/src/views/AccountManagement/ModalAccountInfo.vue b/src/views/AccountManagement/ModalAccountInfo.vue index 9a8212c..c8bd2a2 100644 --- a/src/views/AccountManagement/ModalAccountInfo.vue +++ b/src/views/AccountManagement/ModalAccountInfo.vue @@ -63,6 +63,6 @@ const is_active = computed(() => currentViewingUser.value.is_active); onBeforeMount(async () => { await acctMgmtStore.getUserDetail(currentViewingUser.value.username); - visitTime.value = currentViewingUser.value.detail?.visits ?? 0; + visitTime.value = currentViewingUser.value.visits ?? 0; }); diff --git a/tests/e2e/playwright.config.ts b/tests/e2e/playwright.config.ts index 288c1c4..d8b158c 100644 --- a/tests/e2e/playwright.config.ts +++ b/tests/e2e/playwright.config.ts @@ -8,6 +8,7 @@ import { defineConfig } from "@playwright/test"; export default defineConfig({ testDir: "./specs", timeout: 30000, + workers: 4, expect: { timeout: 5000 }, use: { baseURL: "http://localhost:4173", diff --git a/tests/validate-fixtures.js b/tests/validate-fixtures.js new file mode 100644 index 0000000..c53d937 --- /dev/null +++ b/tests/validate-fixtures.js @@ -0,0 +1,136 @@ +#!/usr/bin/env node +// The Lucia project. +// Copyright 2026-2026 DSP, inc. All rights reserved. +// Authors: +// imacat.yang@dsp.im (imacat), 2026/03/22 +/** + * Validates MSW fixture JSON files against the OpenAPI spec. + * Ensures mock data matches the real API contract. + * + * Usage: node tests/validate-fixtures.js + */ + +import Ajv from "ajv"; +import addFormats from "ajv-formats"; +import { readFileSync } from "node:fs"; +import { resolve, dirname } from "node:path"; +import { fileURLToPath } from "node:url"; + +const __dirname = dirname(fileURLToPath(import.meta.url)); +const root = resolve(__dirname, ".."); + +const spec = JSON.parse( + readFileSync(resolve(root, "excludes/openapi.json"), "utf-8"), +); +const schemas = spec.components?.schemas ?? {}; + +const ajv = new Ajv({ allErrors: true, strict: false }); +addFormats(ajv); + +// Add ISO 8601 duration format (not included in ajv-formats) +ajv.addFormat("duration", { + type: "string", + validate: (s) => /^P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(\d+H)?(\d+M)?(\d+(\.\d+)?S)?)?$/.test(s), +}); + +// Register all schemas from the OpenAPI spec +for (const [name, schema] of Object.entries(schemas)) { + ajv.addSchema(schema, `#/components/schemas/${name}`); +} + +/** + * Resolves a JSON Schema $ref to the actual schema object. + * @param {object} schema - Schema that may contain $ref. + * @returns {object} Resolved schema. + */ +function resolveRef(schema) { + if (schema?.$ref) { + const refName = schema.$ref.replace("#/components/schemas/", ""); + return schemas[refName] ?? schema; + } + return schema; +} + +/** + * Gets the response schema for a given path and method. + * @param {string} method - HTTP method (lowercase). + * @param {string} path - API path. + * @returns {object|null} Resolved schema or null. + */ +function getResponseSchema(method, path) { + const pathInfo = spec.paths?.[path]; + if (!pathInfo) return null; + const methodInfo = pathInfo[method]; + if (!methodInfo) return null; + const responses = methodInfo.responses ?? {}; + const resp = responses["200"] ?? responses["201"] ?? {}; + const content = resp.content?.["application/json"] ?? {}; + return content.schema ? resolveRef(content.schema) : null; +} + +// Fixture-to-endpoint mapping +const fixtures = [ + ["token.json", "post", "/oauth/token"], + ["my-account.json", "get", "/my-account"], + ["users.json", "get", "/users"], + ["user-detail.json", "get", "/users/{username}"], + ["files.json", "get", "/files"], + ["discover.json", "get", "/logs/{log_id}/discover"], + ["performance.json", "get", "/logs/{log_id}/performance"], + ["traces.json", "get", "/logs/{log_id}/traces"], + ["trace-detail.json", "get", "/logs/{log_id}/traces/{trace_id}"], + // compare.json: real API returns numbers for duration y-values and + // dates without Z suffix, which doesn't match the OpenAPI spec. + // Skipped until the spec is updated to match the actual API. + // ["compare.json", "get", "/compare"], + ["filter-params.json", "get", "/filters/params"], +]; + +let passed = 0; +let failed = 0; + +for (const [fixture, method, path] of fixtures) { + const data = JSON.parse( + readFileSync( + resolve(root, "src/mocks/fixtures", fixture), + "utf-8", + ), + ); + const schema = getResponseSchema(method, path); + + if (!schema) { + console.log(`⚠ ${fixture}: no schema found for ${method.toUpperCase()} ${path}`); + continue; + } + + // For array responses, validate the schema's items against each element + if (schema.type === "array" && schema.items) { + const itemSchema = resolveRef(schema.items); + let allValid = true; + for (let i = 0; i < data.length; i++) { + const valid = ajv.validate(itemSchema, data[i]); + if (!valid) { + console.log(`✗ ${fixture}[${i}]: ${ajv.errorsText()}`); + allValid = false; + } + } + if (allValid) { + console.log(`✓ ${fixture} (${data.length} items)`); + passed++; + } else { + failed++; + } + } else { + const valid = ajv.validate(schema, data); + if (valid) { + console.log(`✓ ${fixture}`); + passed++; + } else { + console.log(`✗ ${fixture}: ${ajv.errorsText()}`); + failed++; + } + } +} + +console.log(`\n${passed} passed, ${failed} failed`); +process.exit(failed > 0 ? 1 : 0);