public final class GatewayDocumentUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.thales.punch.settings.api.ISettingsMap |
generateBaseMetric(String tenant,
Long pid,
String runtimeId,
String name,
String punchlineDescription,
String... args)
Generate basic metric document used by all callbacks
|
static org.thales.punch.settings.api.ISettingsMap |
generateForwardingExecution(org.thales.punch.settings.api.ISettingsMap punchletInput,
org.thales.punch.settings.api.ISettingsMap response,
String executionId)
Report forwarding punchlet execution
|
static org.thales.punch.settings.api.ISettingsMap |
generateHttpReport(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse response,
String tenant,
long time)
Report a request
|
public static org.thales.punch.settings.api.ISettingsMap generateHttpReport(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse response,
String tenant,
long time)
req - HTTP request sent by clientresponse - Response returned by the gatewaytime - Execution time of the requestpublic static org.thales.punch.settings.api.ISettingsMap generateBaseMetric(String tenant, Long pid, String runtimeId, String name, String punchlineDescription, String... args)
tenant - Tenant namepid - Subprocess idruntimeId - Punchline execution IDargs - Args given to subprocesspublic static org.thales.punch.settings.api.ISettingsMap generateForwardingExecution(org.thales.punch.settings.api.ISettingsMap punchletInput,
org.thales.punch.settings.api.ISettingsMap response,
String executionId)
punchletInput - Input given to the punchletCopyright © 2023. All rights reserved.