Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit 5c06328

Browse files
author
Chris Wiechmann
committed
Flows for getInfo & circuitPath now considering EMT-Enabled
If emt is enabled, the serviceId is part of the query.
1 parent 05f6aba commit 5c06328

File tree

2 files changed

+79
-7
lines changed

2 files changed

+79
-7
lines changed

apibuilder4elastic/flows/trafficMonitorApi-circuitpath.json

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,13 +264,15 @@
264264
"outputs": {
265265
"next": {
266266
"routes": [
267-
"javascript.2"
267+
"axway-api-management.2"
268268
],
269269
"context": "$.user",
270270
"metaName": "Next"
271271
},
272272
"error": {
273-
"routes": [],
273+
"routes": [
274+
"http.1"
275+
],
274276
"context": "$.error",
275277
"metaName": "Error"
276278
}
@@ -339,6 +341,11 @@
339341
"value": "$.user",
340342
"metaName": "User",
341343
"metaDescription": "The user object using the API-Gateway Traffic-Monitor"
344+
},
345+
{
346+
"name": "gatewayTopology",
347+
"type": "jsonpath",
348+
"value": "$.gatewayTopology"
342349
}
343350
],
344351
"outputs": {
@@ -523,18 +530,50 @@
523530
{
524531
"name": "status",
525532
"type": "number",
526-
"value": "500"
533+
"value": "500",
534+
"metaName": "Status",
535+
"metaDescription": "The HTTP status code"
527536
},
528537
{
529538
"name": "body",
530539
"type": "jsonpath",
531-
"value": "$.error"
540+
"value": "$.error",
541+
"metaName": "Body",
542+
"metaDescription": "The response payload"
532543
}
533544
],
534545
"outputs": {
535546
"next": {
536547
"context": "$.response",
537-
"routes": []
548+
"routes": [],
549+
"metaName": "Next"
550+
}
551+
},
552+
"metaMethod": "Set HTTP Response"
553+
},
554+
"axway-api-management.2": {
555+
"type": "nodehandler://api-builder-plugin-axway-api-management/axway-api-management",
556+
"name": "Lookup topology",
557+
"method": "lookupTopology",
558+
"parameters": [
559+
{
560+
"name": "requestHeaders",
561+
"type": "jsonpath",
562+
"value": "$.request.headers"
563+
}
564+
],
565+
"outputs": {
566+
"next": {
567+
"routes": [
568+
"javascript.2"
569+
],
570+
"context": "$.gatewayTopology"
571+
},
572+
"error": {
573+
"routes": [
574+
"http.1"
575+
],
576+
"context": "$.error"
538577
}
539578
}
540579
}

apibuilder4elastic/flows/trafficMonitorApi-getinfo.json

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
"outputs": {
229229
"next": {
230230
"routes": [
231-
"javascript.1"
231+
"axway-api-management.2"
232232
],
233233
"context": "$.user",
234234
"metaName": "Next"
@@ -378,6 +378,11 @@
378378
"value": "$.user",
379379
"metaName": "User",
380380
"metaDescription": "The user object using the API-Gateway Traffic-Monitor"
381+
},
382+
{
383+
"name": "gatewayTopology",
384+
"type": "jsonpath",
385+
"value": "$.gatewayTopology"
381386
}
382387
],
383388
"outputs": {
@@ -455,7 +460,9 @@
455460
{
456461
"name": "indexProperty",
457462
"type": "string",
458-
"value": "\"transactionSummary.serviceContext.apiOrg\""
463+
"value": "\"transactionSummary.serviceContext.apiOrg\"",
464+
"metaName": "Index property",
465+
"metaDescription": "The name of the Elasticsearch property within the index to restrict the query on. If not given: serviceContext.apiOrg is used."
459466
}
460467
],
461468
"outputs": {
@@ -614,6 +621,32 @@
614621
}
615622
},
616623
"metaMethod": "Set HTTP Response"
624+
},
625+
"axway-api-management.2": {
626+
"type": "nodehandler://api-builder-plugin-axway-api-management/axway-api-management",
627+
"name": "Lookup topology",
628+
"method": "lookupTopology",
629+
"parameters": [
630+
{
631+
"name": "requestHeaders",
632+
"type": "jsonpath",
633+
"value": "$.request.headers"
634+
}
635+
],
636+
"outputs": {
637+
"next": {
638+
"routes": [
639+
"javascript.1"
640+
],
641+
"context": "$.gatewayTopology"
642+
},
643+
"error": {
644+
"routes": [
645+
"http.5"
646+
],
647+
"context": "$.error"
648+
}
649+
}
617650
}
618651
}
619652
}

0 commit comments

Comments
 (0)