def make_datadog_service(options):
 app_key = os.environ['DATADOG_APP_KEY']
 api_key = os.environ['DATADOG_API_KEY']
 host = socket.getfqdn((options['host'] or ''))
 return DatadogMetricsService(api_key=api_key, app_key=app_key, host=host)

def make_datadog_service ( options ) : app_key = os . environ [ 'DATADOG_APP_KEY' ] api_key = os . environ [ 'DATADOG_API_KEY' ] host = socket . getfqdn ( ( options [ 'host' ] or '' ) ) return DatadogMetricsService ( api_key = api_key , app_key = app_key , host = host )
create a datadog service instance for interacting with datadog .