diff --git a/headless-services/sprotty-si-view/.gitignore b/headless-services/sprotty-si-view/.gitignore index 5bc4e32a3..245264ff6 100644 --- a/headless-services/sprotty-si-view/.gitignore +++ b/headless-services/sprotty-si-view/.gitignore @@ -29,3 +29,4 @@ build/ ### VS Code ### .vscode/ +!/src/main/resources/static/sample.json diff --git a/headless-services/sprotty-si-view/src/main/resources/static/sample.json b/headless-services/sprotty-si-view/src/main/resources/static/sample.json new file mode 100644 index 000000000..0e5b4d167 --- /dev/null +++ b/headless-services/sprotty-si-view/src/main/resources/static/sample.json @@ -0,0 +1,315 @@ +{ + "contentDescriptor": { + "providerVersion": "5.1.6.RELEASE", + "providerFormatVersion": 1, + "provider": "spring-integration" + }, + "nodes": [ + { + "nodeId": 1, + "name": "news", + "stats": { + "countsEnabled": true, + "statsEnabled": true, + "loggingEnabled": true, + "sendCount": 20, + "sendErrorCount": 0, + "timeSinceLastSend": 3017590.1150589883, + "meanSendRate": 0.006416917317469066, + "meanErrorRate": 0, + "meanErrorRatio": 0, + "meanSendDuration": 0.6229622172698512, + "minSendDuration": 0.36042, + "maxSendDuration": 5.398724, + "standardDeviationSendDuration": 0.6248008418287394, + "sendDuration": { + "count": 20, + "min": 0.36042, + "max": 5.398724, + "mean": 0.6229622172698512, + "standardDeviation": 0.6248008418287394, + "countLong": 20 + }, + "sendRate": { + "count": 20, + "min": 4.519030865997076, + "max": 5.000686829984188, + "mean": 0.006416915226255189, + "standardDeviation": 0.003059182339655441, + "countLong": 20 + }, + "errorRate": { + "count": 0, + "min": 0, + "max": 0, + "mean": 0, + "standardDeviation": 0, + "countLong": 0 + } + }, + "componentType": "channel", + "properties": {} + }, + { + "nodeId": 2, + "name": "file", + "stats": { + "countsEnabled": true, + "statsEnabled": true, + "loggingEnabled": true, + "sendCount": 20, + "sendErrorCount": 0, + "timeSinceLastSend": 3017591.1391609907, + "meanSendRate": 0.006416922929073101, + "meanErrorRate": 0, + "meanErrorRatio": 0, + "meanSendDuration": 0.35330047484316307, + "minSendDuration": 0.208864, + "maxSendDuration": 2.849803, + "standardDeviationSendDuration": 0.33755534347541105, + "sendDuration": { + "count": 20, + "min": 0.208864, + "max": 2.849803, + "mean": 0.35330047484316307, + "standardDeviation": 0.33755534347541105, + "countLong": 20 + }, + "sendRate": { + "count": 20, + "min": 4.516921804994345, + "max": 5.000899210005999, + "mean": 0.00641692253069279, + "standardDeviation": 0.003073929309381288, + "countLong": 20 + }, + "errorRate": { + "count": 0, + "min": 0, + "max": 0, + "mean": 0, + "standardDeviation": 0, + "countLong": 0 + } + }, + "componentType": "channel", + "properties": {} + }, + { + "nodeId": 3, + "name": "nullChannel", + "stats": { + "countsEnabled": true, + "statsEnabled": true, + "loggingEnabled": true, + "sendCount": 0, + "sendErrorCount": 0, + "timeSinceLastSend": 0, + "meanSendRate": 0, + "meanErrorRate": 0, + "meanErrorRatio": 0, + "meanSendDuration": 0, + "minSendDuration": 0, + "maxSendDuration": 0, + "standardDeviationSendDuration": 0, + "sendDuration": { + "count": 0, + "min": 0, + "max": 0, + "mean": 0, + "standardDeviation": 0, + "countLong": 0 + }, + "sendRate": { + "count": 0, + "min": 0, + "max": 0, + "mean": 0, + "standardDeviation": 0, + "countLong": 0 + }, + "errorRate": { + "count": 0, + "min": 0, + "max": 0, + "mean": 0, + "standardDeviation": 0, + "countLong": 0 + } + }, + "componentType": "null-channel", + "properties": {} + }, + { + "nodeId": 4, + "name": "errorChannel", + "stats": { + "countsEnabled": true, + "statsEnabled": true, + "loggingEnabled": true, + "sendCount": 0, + "sendErrorCount": 0, + "timeSinceLastSend": 0, + "meanSendRate": 0, + "meanErrorRate": 0, + "meanErrorRatio": 0, + "meanSendDuration": 0, + "minSendDuration": 0, + "maxSendDuration": 0, + "standardDeviationSendDuration": 0, + "sendDuration": { + "count": 0, + "min": 0, + "max": 0, + "mean": 0, + "standardDeviation": 0, + "countLong": 0 + }, + "sendRate": { + "count": 0, + "min": 0, + "max": 0, + "mean": 0, + "standardDeviation": 0, + "countLong": 0 + }, + "errorRate": { + "count": 0, + "min": 0, + "max": 0, + "mean": 0, + "standardDeviation": 0, + "countLong": 0 + } + }, + "componentType": "publish-subscribe-channel", + "properties": {} + }, + { + "nodeId": 5, + "name": "news.adapter", + "stats": { + "messageCount": 20 + }, + "componentType": "feed:inbound-channel-adapter", + "properties": {}, + "output": "news" + }, + { + "nodeId": 6, + "name": "org.springframework.integration.config.ConsumerEndpointFactoryBean#0", + "stats": { + "activeCount": 0, + "duration": { + "count": 20, + "min": 0.346117, + "max": 4.516881, + "mean": 0.585700683679285, + "standardDeviation": 0.5242315172537475, + "countLong": 20 + }, + "countsEnabled": true, + "statsEnabled": true, + "loggingEnabled": true, + "maxDuration": 4.516881, + "minDuration": 0.346117, + "meanDuration": 0.585700683679285, + "errorCount": 0, + "handleCount": 20, + "standardDeviationDuration": 0.5242315172537475 + }, + "componentType": "transformer", + "properties": { + "expression": "payload.title + \u0027 @ \u0027 + payload.link + \u0027 \u0027" + }, + "output": "file", + "input": "news" + }, + { + "nodeId": 7, + "name": "file.adapter", + "stats": { + "activeCount": 0, + "duration": { + "count": 20, + "min": 0.192626, + "max": 2.602112, + "mean": 0.3295736390049931, + "standardDeviation": 0.31151136752438835, + "countLong": 20 + }, + "countsEnabled": true, + "statsEnabled": true, + "loggingEnabled": true, + "maxDuration": 2.602112, + "minDuration": 0.192626, + "meanDuration": 0.3295736390049931, + "errorCount": 0, + "handleCount": 20, + "standardDeviationDuration": 0.31151136752438835 + }, + "componentType": "message-handler", + "properties": {}, + "input": "file" + }, + { + "nodeId": 8, + "name": "_org.springframework.integration.errorLogger", + "stats": { + "activeCount": 0, + "duration": { + "count": 0, + "min": 0, + "max": 0, + "mean": 0, + "standardDeviation": 0, + "countLong": 0 + }, + "countsEnabled": true, + "statsEnabled": true, + "loggingEnabled": true, + "maxDuration": 0, + "minDuration": 0, + "meanDuration": 0, + "errorCount": 0, + "handleCount": 0, + "standardDeviationDuration": 0 + }, + "componentType": "logging-channel-adapter", + "properties": {}, + "input": "errorChannel" + } + ], + "links": [ + { + "from": 5, + "to": 1, + "type": "output" + }, + { + "from": 1, + "to": 6, + "type": "input" + }, + { + "from": 6, + "to": 2, + "type": "output" + }, + { + "from": 2, + "to": 7, + "type": "input" + }, + { + "from": 4, + "to": 8, + "type": "input" + }, + { + "from": 5, + "to": 4, + "type": "error" + } + ] +} \ No newline at end of file