struct

ECS::LogEntry::Http::Request

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(pull : JSON::PullParser)
Source
new

Initialize all values as nil

Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

body(value : Body)

A chainable setter for body

Source
body
Source
body

Initialize a new Body, yield it to the block

Source
body=(body : Body | Nil)
Source
bytes(new_value : UInt64)

A chainable setter for bytes

Source
bytes

http.request.bytes

Total size in bytes of the request (body and headers).

Level: Extended Type: Long Example:

1437
Source
bytes=(bytes : UInt64 | Nil)

http.request.bytes

Total size in bytes of the request (body and headers).

Level: Extended Type: Long Example:

1437
Source
method(new_value : String)

A chainable setter for method

Source
method

http.request.method

HTTP request method.

Prior to ECS 1.6.0 the following guidance was provided:

"The field value must be normalized to lowercase for querying."

As of ECS 1.6.0, the guidance is deprecated because the original case of the method may be useful in anomaly detection. Original case will be mandated in ECS 2.0.0

Level: Extended Type: Keyword Example:

GET, POST, PUT, PoST
Source
method=(method : String | Nil)

http.request.method

HTTP request method.

Prior to ECS 1.6.0 the following guidance was provided:

"The field value must be normalized to lowercase for querying."

As of ECS 1.6.0, the guidance is deprecated because the original case of the method may be useful in anomaly detection. Original case will be mandated in ECS 2.0.0

Level: Extended Type: Keyword Example:

GET, POST, PUT, PoST
Source
referrer(new_value : String)

A chainable setter for referrer

Source
referrer

http.request.referrer

Referrer for this HTTP request.

Level: Extended Type: Keyword Example:

https://blog.example.com/
Source
referrer=(referrer : String | Nil)

http.request.referrer

Referrer for this HTTP request.

Level: Extended Type: Keyword Example:

https://blog.example.com/
Source

Nested types