You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 14, 2022. It is now read-only.
"metaDescription": "A JavaScript function body. Supports `await` and returning promises."
118
+
"value": "\"let result = [];\\n //console.log(data);\\n \\n if(typeof data.hits[0] != \\\"undefined\\\"){\\n var source = data.hits[0]._source;\\n if(source.circuitPath) {\\n return source.circuitPath;\\n } else {\\n logger.warn(`Unexpectedly no CircuitPath information found for API request: '${source.correlationId}'`);\\n return [];\\n }\\n }\""
121
119
}
122
120
],
123
121
"outputs": {
@@ -147,15 +145,15 @@
147
145
"name": "data",
148
146
"type": "jsonpath",
149
147
"value": "$",
150
-
"metaName": "data",
151
-
"metaDescription": "The value to apply as the `data` argument to the JavaScript code. For objects and arrays, `data` is passed by reference."
148
+
"metaName": "Data",
149
+
"metaDescription": "The value to apply as the `data` argument of the JavaScript code. For objects and arrays, `data` is passed by reference."
152
150
},
153
151
{
154
152
"name": "code",
155
153
"type": "string",
156
154
"value": "\"// Perhaps there is a region given\\n let region = data.params.region;\\n let index = 'apigw-traffic-details';\\n // Atach the region if given\\n if(region) {\\n index = `${index}-${region.toLowerCase()}`;\\n }\\n index = `${index}-*`;\\n \\n if(data.config.testElasticIndex) {\\n index = data.config.testElasticIndex;\\n }\\n return index;\"",
157
-
"metaName": "code",
158
-
"metaDescription": "A JavaScript function body. Supports `await` and returning promises."
155
+
"metaName": "Code",
156
+
"metaDescription": "A JavaScript function body. Supports `await` and returning promises. `data` is the value of the Data parameter. `logger` is the API Builder logger. See the docs for more info: https://docs.axway.com/bundle/API_Builder_4x_allOS_en/page/javascript_flow-node.html"
0 commit comments