final case class HttpRequest(requestMethod: String = "", requestUrl: String = "", requestSize: Long = 0L, status: Int = 0, responseSize: Long = 0L, userAgent: String = "", remoteIp: String = "", serverIp: String = "", referer: String = "", latency: Option[Duration] = _root_.scala.None, cacheLookup: Boolean = false, cacheHit: Boolean = false, cacheValidatedWithOriginServer: Boolean = false, cacheFillBytes: Long = 0L, protocol: String = "", unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[HttpRequest] with Product with Serializable
A common proto for logging HTTP requests. Only contains semantics defined by the HTTP specification. Product-specific logging information MUST be defined in a separate message.
- requestMethod
The request method. Examples:
"GET","HEAD","PUT","POST".- requestUrl
The scheme (http, https), the host name, the path and the query portion of the URL that was requested. Example:
"http://example.com/some/info?color=red".- requestSize
The size of the HTTP request message in bytes, including the request headers and the request body.
- status
The response code indicating the status of response. Examples: 200, 404.
- responseSize
The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body.
- userAgent
The user agent sent by the client. Example:
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)".- remoteIp
The IP address (IPv4 or IPv6) of the client that issued the HTTP request. Examples:
"192.168.1.1","FE80::0202:B3FF:FE1E:8329".- serverIp
The IP address (IPv4 or IPv6) of the origin server that the request was sent to.
- referer
The referer URL of the request, as defined in [HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
- latency
The request processing latency on the server, from the time the request was received until the response was sent.
- cacheLookup
Whether or not a cache lookup was attempted.
- cacheHit
Whether or not an entity was served from cache (with or without validation).
- cacheValidatedWithOriginServer
Whether or not the response was validated with the origin server before being served from cache. This field is only meaningful if
cache_hitis True.- cacheFillBytes
The number of HTTP response bytes inserted into cache. Set only when a cache fill was attempted.
- protocol
Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- HttpRequest
- Product
- Equals
- Updatable
- GeneratedMessage
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
HttpRequest(requestMethod: String = "", requestUrl: String = "", requestSize: Long = 0L, status: Int = 0, responseSize: Long = 0L, userAgent: String = "", remoteIp: String = "", serverIp: String = "", referer: String = "", latency: Option[Duration] = _root_.scala.None, cacheLookup: Boolean = false, cacheHit: Boolean = false, cacheValidatedWithOriginServer: Boolean = false, cacheFillBytes: Long = 0L, protocol: String = "", unknownFields: UnknownFieldSet = ...)
- requestMethod
The request method. Examples:
"GET","HEAD","PUT","POST".- requestUrl
The scheme (http, https), the host name, the path and the query portion of the URL that was requested. Example:
"http://example.com/some/info?color=red".- requestSize
The size of the HTTP request message in bytes, including the request headers and the request body.
- status
The response code indicating the status of response. Examples: 200, 404.
- responseSize
The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body.
- userAgent
The user agent sent by the client. Example:
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)".- remoteIp
The IP address (IPv4 or IPv6) of the client that issued the HTTP request. Examples:
"192.168.1.1","FE80::0202:B3FF:FE1E:8329".- serverIp
The IP address (IPv4 or IPv6) of the origin server that the request was sent to.
- referer
The referer URL of the request, as defined in [HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
- latency
The request processing latency on the server, from the time the request was received until the response was sent.
- cacheLookup
Whether or not a cache lookup was attempted.
- cacheHit
Whether or not an entity was served from cache (with or without validation).
- cacheValidatedWithOriginServer
Whether or not the response was validated with the origin server before being served from cache. This field is only meaningful if
cache_hitis True.- cacheFillBytes
The number of HTTP response bytes inserted into cache. Set only when a cache fill was attempted.
- protocol
Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val cacheFillBytes: Long
- val cacheHit: Boolean
- val cacheLookup: Boolean
- val cacheValidatedWithOriginServer: Boolean
- def clearLatency: HttpRequest
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
companion: HttpRequest.type
- Definition Classes
- HttpRequest → GeneratedMessage
- def discardUnknownFields: HttpRequest
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getField(__field: FieldDescriptor): PValue
- Definition Classes
- HttpRequest → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- HttpRequest → GeneratedMessage
- def getLatency: Duration
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val latency: Option[Duration]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val protocol: String
- val referer: String
- val remoteIp: String
- val requestMethod: String
- val requestSize: Long
- val requestUrl: String
- val responseSize: Long
-
def
serializedSize: Int
- Definition Classes
- HttpRequest → GeneratedMessage
- val serverIp: String
- val status: Int
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
-
final
def
toByteString: ByteString
- Definition Classes
- GeneratedMessage
-
final
def
toPMessage: PMessage
- Definition Classes
- GeneratedMessage
-
def
toProtoString: String
- Definition Classes
- HttpRequest → GeneratedMessage
- val unknownFields: UnknownFieldSet
-
def
update(ms: (Lens[HttpRequest, HttpRequest]) ⇒ Mutation[HttpRequest]*): HttpRequest
- Definition Classes
- Updatable
- val userAgent: String
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def withCacheFillBytes(__v: Long): HttpRequest
- def withCacheHit(__v: Boolean): HttpRequest
- def withCacheLookup(__v: Boolean): HttpRequest
- def withCacheValidatedWithOriginServer(__v: Boolean): HttpRequest
- def withLatency(__v: Duration): HttpRequest
- def withProtocol(__v: String): HttpRequest
- def withReferer(__v: String): HttpRequest
- def withRemoteIp(__v: String): HttpRequest
- def withRequestMethod(__v: String): HttpRequest
- def withRequestSize(__v: Long): HttpRequest
- def withRequestUrl(__v: String): HttpRequest
- def withResponseSize(__v: Long): HttpRequest
- def withServerIp(__v: String): HttpRequest
- def withStatus(__v: Int): HttpRequest
- def withUnknownFields(__v: UnknownFieldSet): HttpRequest
- def withUserAgent(__v: String): HttpRequest
-
final
def
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- HttpRequest → GeneratedMessage
-
final
def
writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage