Class: Nl::Linux::Nftables::AttributeSets::LogAttrs
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Nftables::AttributeSets::LogAttrs
- Defined in:
- nl-linux/generated/nl/linux/nftables.rb
Overview
log expression netlink attributes
Defined Under Namespace
Classes: Attribute, Flags, Group, Level, Prefix, Qthreshold, Snaplen
Constant Summary
Constants inherited from AttributeSet
Class Method Summary collapse
-
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
-
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
Instance Method Summary collapse
-
#flags ⇒ Integer
logging flags.
-
#group ⇒ Integer
netlink group to send messages to.
-
#level ⇒ Integer
log level.
-
#prefix ⇒ String
prefix to prepend to log messages.
-
#qthreshold ⇒ Integer
queue threshold.
-
#snaplen ⇒ Integer
length of payload to include in netlink message.
Methods inherited from AttributeSet
#<<, #[], build_attributes, decode, #encode, #initialize
Constructor Details
This class inherits a constructor from Nl::AttributeSet
Class Method Details
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
431 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 431 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
437 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 437 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#flags ⇒ Integer
logging flags
Known flags are defined in Flags::LogFlags.
424 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 424 def flags; self[:"flags"]&.value; end |
#group ⇒ Integer
netlink group to send messages to
395 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 395 def group; self[:"group"]&.value; end |
#level ⇒ Integer
log level
Known enum values are defined in Enums::LogLevel.
417 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 417 def level; self[:"level"]&.value; end |
#prefix ⇒ String
prefix to prepend to log messages
400 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 400 def prefix; self[:"prefix"]&.value; end |
#qthreshold ⇒ Integer
queue threshold
410 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 410 def qthreshold; self[:"qthreshold"]&.value; end |
#snaplen ⇒ Integer
length of payload to include in netlink message
405 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 405 def snaplen; self[:"snaplen"]&.value; end |