com.danielflower.apprunner.router.monitoring.RequestInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of app-runner-router Show documentation
Show all versions of app-runner-router Show documentation
A reverse proxy for AppRunner that allows you horizontally scale AppRunner
package com.danielflower.apprunner.router.monitoring;
import org.json.JSONObject;
public class RequestInfo {
public long startTime;
public long endTime;
public String appName;
public String remoteAddr;
public String method;
public int responseStatus;
public String url;
public String targetHost;
public String toJSON() {
return new JSONObject()
.put("remote", remoteAddr)
.put("method", method)
.put("url", url)
.put("app", appName)
.put("targetHost", targetHost)
.put("start", startTime)
.put("end", endTime)
.put("status", responseStatus)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy