struct

ECS::LogEntry::Dns::Answers

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

class(new_value : String)

A chainable setter for class

Source
class

dns.answers.class

The class of DNS data contained in this resource record.

Level: Extended Type: Keyword Example:

IN
Source
class=(class __arg0 : String | Nil)

dns.answers.class

The class of DNS data contained in this resource record.

Level: Extended Type: Keyword Example:

IN
Source
data(new_value : String)

A chainable setter for data

Source
data

dns.answers.data

The data describing the resource.

The meaning of this data depends on the type and class of the resource record.

Level: Extended Type: Keyword Example:

10.10.10.10
Source
data=(data : String | Nil)

dns.answers.data

The data describing the resource.

The meaning of this data depends on the type and class of the resource record.

Level: Extended Type: Keyword Example:

10.10.10.10
Source
name(new_value : String)

A chainable setter for name

Source
name

dns.answers.name

The domain name to which this resource record pertains.

If a chain of CNAME is being resolved, each answer's name should be the one that corresponds with the answer's data. It should not simply be the original question.name repeated.

Level: Extended Type: Keyword Example:

www.google.com
Source
name=(name : String | Nil)

dns.answers.name

The domain name to which this resource record pertains.

If a chain of CNAME is being resolved, each answer's name should be the one that corresponds with the answer's data. It should not simply be the original question.name repeated.

Level: Extended Type: Keyword Example:

www.google.com
Source
ttl(new_value : UInt64)

A chainable setter for ttl

Source
ttl

dns.answers.ttl

The time interval in seconds that this resource record may be cached before it should be discarded. Zero values mean that the data should not be cached.

Level: Extended Type: Long Example:

180
Source
ttl=(ttl : UInt64 | Nil)

dns.answers.ttl

The time interval in seconds that this resource record may be cached before it should be discarded. Zero values mean that the data should not be cached.

Level: Extended Type: Long Example:

180
Source
type(new_value : String)

A chainable setter for type

Source
type

dns.answers.type

The type of data contained in this resource record.

Level: Extended Type: Keyword Example:

CNAME
Source
type=(type : String | Nil)

dns.answers.type

The type of data contained in this resource record.

Level: Extended Type: Keyword Example:

CNAME
Source