class NetuitiveD::IngestElement
Attributes
attributes[RW]
id[RW]
location[RW]
metrics[RW]
name[RW]
samples[RW]
type[RW]
Public Class Methods
new(id, name, type, location, metrics, samples, tags, attributes)
click to toggle source
# File lib/netuitived/ingest_element.rb, line 4 def initialize(id, name, type, location, metrics, samples, tags, attributes) @id = id @name = name @type = type @location = location @metrics = metrics @samples = samples @tags = tags @attributes = attributes end
Public Instance Methods
to_json(_options = {})
click to toggle source
# File lib/netuitived/ingest_element.rb, line 15 def to_json(_options = {}) { 'id' => @id, 'name' => @name, 'type' => @type, 'location' => @location, 'metrics' => @metrics, 'samples' => @samples, 'tags' => @tags, 'attributes' => @attributes }.to_json.tr('\\"', '"') end