Sha256: 626cef415a447a2b22f430fc7185584575d28c7b5c5ffe88fac4f61f01d5efb8
Contents?: true
Size: 466 Bytes
Versions: 3
Compression:
Stored size: 466 Bytes
Contents
module Dd2tf module Import class Downtime < Base def resource_type "datadog_downtime" end def resources resources = [] downtimes = @client.get_all_downtimes[1] downtimes.each do |downtime| downtime_name = downtime["id"] resource_id = downtime["id"] resources << { resource_id: resource_id, resource_name: downtime_name } end resources end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dd2tf-0.2.1 | lib/dd2tf/import/downtime.rb |
dd2tf-0.2.0 | lib/dd2tf/import/downtime.rb |
dd2tf-0.1.1 | lib/dd2tf/import/downtime.rb |