Class: TaDataDO
- Inherits:
-
Object
- Object
- TaDataDO
- Defined in:
- lib/logstash/filter/sensors/sensors_data.rb
Instance Attribute Summary collapse
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#distinct_id ⇒ Object
Returns the value of attribute distinct_id.
-
#event_id ⇒ Object
Returns the value of attribute event_id.
-
#event_name ⇒ Object
Returns the value of attribute event_name.
-
#first_check_id ⇒ Object
Returns the value of attribute first_check_id.
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#properties ⇒ Object
Returns the value of attribute properties.
-
#time ⇒ Object
Returns the value of attribute time.
-
#type ⇒ Object
Returns the value of attribute type.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Instance Method Summary collapse
Instance Attribute Details
#account_id ⇒ Object
Returns the value of attribute account_id.
6 7 8 |
# File 'lib/logstash/filter/sensors/sensors_data.rb', line 6 def account_id @account_id end |
#distinct_id ⇒ Object
Returns the value of attribute distinct_id.
6 7 8 |
# File 'lib/logstash/filter/sensors/sensors_data.rb', line 6 def distinct_id @distinct_id end |
#event_id ⇒ Object
Returns the value of attribute event_id.
6 7 8 |
# File 'lib/logstash/filter/sensors/sensors_data.rb', line 6 def event_id @event_id end |
#event_name ⇒ Object
Returns the value of attribute event_name.
6 7 8 |
# File 'lib/logstash/filter/sensors/sensors_data.rb', line 6 def event_name @event_name end |
#first_check_id ⇒ Object
Returns the value of attribute first_check_id.
6 7 8 |
# File 'lib/logstash/filter/sensors/sensors_data.rb', line 6 def first_check_id @first_check_id end |
#ip ⇒ Object
Returns the value of attribute ip.
6 7 8 |
# File 'lib/logstash/filter/sensors/sensors_data.rb', line 6 def ip @ip end |
#properties ⇒ Object
Returns the value of attribute properties.
6 7 8 |
# File 'lib/logstash/filter/sensors/sensors_data.rb', line 6 def properties @properties end |
#time ⇒ Object
Returns the value of attribute time.
6 7 8 |
# File 'lib/logstash/filter/sensors/sensors_data.rb', line 6 def time @time end |
#type ⇒ Object
Returns the value of attribute type.
6 7 8 |
# File 'lib/logstash/filter/sensors/sensors_data.rb', line 6 def type @type end |
#uuid ⇒ Object
Returns the value of attribute uuid.
6 7 8 |
# File 'lib/logstash/filter/sensors/sensors_data.rb', line 6 def uuid @uuid end |
Instance Method Details
#to_json(*a) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/logstash/filter/sensors/sensors_data.rb', line 8 def to_json(*a) json_obj = { "#account_id" => @account_id, "#distinct_id" => @distinct_id, "#uuid" => @uuid, "#type" => @type, "#time" => @time, "#ip" => @ip, "#event_name" => @event_name, "#event_id" => @event_id, "#first_check_id" => @first_check_id, "properties" => @properties, } json_obj.each do |key, value| if value.nil? || value == '' json_obj.delete(key) end end json_obj.to_json(*a) end |