class Fluent::Plugin::ClientTrail

Attributes

hints[RW]
is_k8s[RW]
sent_at[RW]

Public Class Methods

new(is_k8s) click to toggle source
# File lib/fluent/plugin/barito_client_trail.rb, line 7
def initialize(is_k8s)
  @is_k8s = is_k8s
  @sent_at = Time.now.utc.strftime('%FT%TZ')
  @hints = []
  @hostname = Socket.gethostname
end

Public Instance Methods

to_hash() click to toggle source
# File lib/fluent/plugin/barito_client_trail.rb, line 14
def to_hash
  {
      'is_k8s' => @is_k8s,
      'sent_at' => @sent_at,
      'hints' => @hints,
      'hostname' => @hostname
  }
end