Sha256: b928f2652818262d8831ce425ea6507d5d18f34dcfe0f4b782b62b908559f920

Contents?: true

Size: 374 Bytes

Versions: 3

Compression:

Stored size: 374 Bytes

Contents

module Dd2tf
  class Monitor < Base

    def output
      monitors = @client.get_all_monitors[1]

      results = []
      monitors.each do |monitor|
        monitor_name = monitor["name"].underscore.gsub(" ", "_").gsub(UNALLOWED_RESOURCE_TITLE_REGEXP, '')
        renderer = renderer()
        results << renderer.result(binding)
      end

      results
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dd2tf-0.1.2 lib/dd2tf/monitor.rb
dd2tf-0.1.1 lib/dd2tf/monitor.rb
dd2tf-0.1.0 lib/dd2tf/monitor.rb