module DogapiDemo

Constants

VERSION

Public Class Methods

find_datadog_host() click to toggle source
    # File lib/dogapi-demo/common.rb
151 def DogapiDemo.find_datadog_host
152   # allow env-based overriding, useful for tests
153   "https://app.datadoghq.com"
154 end
find_localhost() click to toggle source
    # File lib/dogapi-demo/common.rb
159 def DogapiDemo.find_localhost
160   begin
161     # prefer hostname -f over Socket.gethostname
162     @@hostname ||= %x[hostname -f].strip
163   rescue
164     raise "Cannot determine local hostname via hostname -f"
165   end
166 end