diff options
| author | mo khan <mo@mokhan.ca> | 2015-02-04 21:37:33 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-02-04 21:37:35 -0700 |
| commit | a872caa38178108b6afed3a4fe67eb5effca2320 (patch) | |
| tree | faa9cc2579e27e12f8b551bb67299ca38f426229 /lib | |
| parent | 4e715a26fcae00f8419fe60482c4e105190ce3e7 (diff) | |
make message formats consistent.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/fake_agent.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/fake_agent.rb b/lib/fake_agent.rb index 19ffe25..68a2bb5 100644 --- a/lib/fake_agent.rb +++ b/lib/fake_agent.rb @@ -25,9 +25,11 @@ class FakeAgent url = "#{endpoint}/agents/#{id}/files/#{fingerprint}" puts url Typhoeus.get(url, body: { - payload: { - event: event, - full_path: file + agent_id: id, + name: event, + data: { + fingerprint: fingerprint, + full_path: file, } }) end |
