Packages

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_hit is 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()
Linear Supertypes
Product, Equals, Updatable[HttpRequest], GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpRequest
  2. Product
  3. Equals
  4. Updatable
  5. GeneratedMessage
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. 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_hit is 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val cacheFillBytes: Long
  6. val cacheHit: Boolean
  7. val cacheLookup: Boolean
  8. val cacheValidatedWithOriginServer: Boolean
  9. def clearLatency: HttpRequest
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  11. def companion: HttpRequest.type
    Definition Classes
    HttpRequest → GeneratedMessage
  12. def discardUnknownFields: HttpRequest
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    HttpRequest → GeneratedMessage
  17. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    HttpRequest → GeneratedMessage
  18. def getLatency: Duration
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. val latency: Option[Duration]
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. val protocol: String
  25. val referer: String
  26. val remoteIp: String
  27. val requestMethod: String
  28. val requestSize: Long
  29. val requestUrl: String
  30. val responseSize: Long
  31. def serializedSize: Int
    Definition Classes
    HttpRequest → GeneratedMessage
  32. val serverIp: String
  33. val status: Int
  34. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  35. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  36. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  37. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  38. def toProtoString: String
    Definition Classes
    HttpRequest → GeneratedMessage
  39. val unknownFields: UnknownFieldSet
  40. def update(ms: (Lens[HttpRequest, HttpRequest]) ⇒ Mutation[HttpRequest]*): HttpRequest
    Definition Classes
    Updatable
  41. val userAgent: String
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  45. def withCacheFillBytes(__v: Long): HttpRequest
  46. def withCacheHit(__v: Boolean): HttpRequest
  47. def withCacheLookup(__v: Boolean): HttpRequest
  48. def withCacheValidatedWithOriginServer(__v: Boolean): HttpRequest
  49. def withLatency(__v: Duration): HttpRequest
  50. def withProtocol(__v: String): HttpRequest
  51. def withReferer(__v: String): HttpRequest
  52. def withRemoteIp(__v: String): HttpRequest
  53. def withRequestMethod(__v: String): HttpRequest
  54. def withRequestSize(__v: Long): HttpRequest
  55. def withRequestUrl(__v: String): HttpRequest
  56. def withResponseSize(__v: Long): HttpRequest
  57. def withServerIp(__v: String): HttpRequest
  58. def withStatus(__v: Int): HttpRequest
  59. def withUnknownFields(__v: UnknownFieldSet): HttpRequest
  60. def withUserAgent(__v: String): HttpRequest
  61. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  62. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    HttpRequest → GeneratedMessage
  63. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Inherited from Product

Inherited from Equals

Inherited from Updatable[HttpRequest]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped