Class: Fluent::ArvancloudOutput::LogEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/plugin/out_arvancloud.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#log_typeObject

Returns the value of attribute log_type.



327
328
329
# File 'lib/fluent/plugin/out_arvancloud.rb', line 327

def log_type
  @log_type
end

#payloadObject

Returns the value of attribute payload.



327
328
329
# File 'lib/fluent/plugin/out_arvancloud.rb', line 327

def payload
  @payload
end

#resourceObject

Returns the value of attribute resource.



327
328
329
# File 'lib/fluent/plugin/out_arvancloud.rb', line 327

def resource
  @resource
end

#severityObject

Returns the value of attribute severity.



327
328
329
# File 'lib/fluent/plugin/out_arvancloud.rb', line 327

def severity
  @severity
end

#timestampObject

Returns the value of attribute timestamp.



327
328
329
# File 'lib/fluent/plugin/out_arvancloud.rb', line 327

def timestamp
  @timestamp
end

Instance Method Details

#as_json(_options = {}) ⇒ Object



329
330
331
332
333
334
335
336
337
# File 'lib/fluent/plugin/out_arvancloud.rb', line 329

def as_json(_options = {})
  {
    logType: @log_type,
    timestamp: @timestamp,
    severity: @severity,
    resource: @resource,
    payload: @payload
  }
end

#to_json(*options) ⇒ Object



339
340
341
# File 'lib/fluent/plugin/out_arvancloud.rb', line 339

def to_json(*options)
  as_json(*options).to_json(*options)
end