From 2a0a1af9ee40c68588659597035d742c9051891c Mon Sep 17 00:00:00 2001 From: nornholdj Date: Tue, 5 May 2015 13:48:36 -0400 Subject: [PATCH] Added documented fields to provision payload --- Gemfile | 1 + Gemfile.lock | 2 ++ lib/heroku/kensa/check.rb | 5 ++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index fa75df1..7cb08e6 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,4 @@ source 'https://rubygems.org' gemspec +gem 'uuidtools', '~> 2.1.5' diff --git a/Gemfile.lock b/Gemfile.lock index cf6022c..9b4b429 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -66,6 +66,7 @@ GEM unf (0.1.4) unf_ext unf_ext (0.0.6) + uuidtools (2.1.5) webrobots (0.1.1) PLATFORMS @@ -81,3 +82,4 @@ DEPENDENCIES rr (~> 1.0.4) sinatra (~> 1.4.2) timecop (~> 0.6.1) + uuidtools (~> 2.1.5) diff --git a/lib/heroku/kensa/check.rb b/lib/heroku/kensa/check.rb index b346903..188147c 100644 --- a/lib/heroku/kensa/check.rb +++ b/lib/heroku/kensa/check.rb @@ -3,6 +3,7 @@ require 'timeout' require 'uri' require 'term/ansicolor' +require 'uuidtools' module Heroku module Kensa @@ -281,9 +282,11 @@ def call! :heroku_id => heroku_id, :plan => data[:plan] || 'test', :callback_url => callback, + :log_input_url => "https://token:t.01234567-89ab-cdef-0123-456789abcdef@1.us.logplex.io/logs", :logplex_token => nil, :region => "amazon-web-services::us-east-1", - :options => data[:options] || {} + :options => data[:options] || {}, + :uuid => UUIDTools::UUID.random_create.to_s } if data[:async]