Class: Fluent::ArvancloudOutput::LogEntry
- Inherits:
-
Object
- Object
- Fluent::ArvancloudOutput::LogEntry
- Defined in:
- lib/fluent/plugin/out_arvancloud.rb
Instance Attribute Summary collapse
-
#log_type ⇒ Object
Returns the value of attribute log_type.
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#resource ⇒ Object
Returns the value of attribute resource.
-
#severity ⇒ Object
Returns the value of attribute severity.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
Instance Attribute Details
#log_type ⇒ Object
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 |
#payload ⇒ Object
Returns the value of attribute payload.
327 328 329 |
# File 'lib/fluent/plugin/out_arvancloud.rb', line 327 def payload @payload end |
#resource ⇒ Object
Returns the value of attribute resource.
327 328 329 |
# File 'lib/fluent/plugin/out_arvancloud.rb', line 327 def resource @resource end |
#severity ⇒ Object
Returns the value of attribute severity.
327 328 329 |
# File 'lib/fluent/plugin/out_arvancloud.rb', line 327 def severity @severity end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
327 328 329 |
# File 'lib/fluent/plugin/out_arvancloud.rb', line 327 def @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( = {}) { 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(*) as_json(*).to_json(*) end |