cloud_monitor_agent 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b4136e1502eb9d07ba91c02e86e3f57c76757cd
4
- data.tar.gz: d1062b2a771b2d7324e9c83cc04a465af00799d1
3
+ metadata.gz: 49ddc0201e7377334c96259627839c0602b246b8
4
+ data.tar.gz: 3c2a094f90a0d2f7d16d742ab994601f093e165d
5
5
  SHA512:
6
- metadata.gz: 976b148254c1b36a5d3bb199a40431ec317c54e549eb708546197759eddbeeb4914d40da01c6c752cd8318dcf141cbe70804de0fec6dcde35befd85efb6ddede
7
- data.tar.gz: 6369345bf59de90749a76a91736ab25577ccd41c56108feef94f99d08dbcfc37ea3a81b380d37c7e38f8f2a9b217300600c8316b0aa93f372a3178d5f240ff9a
6
+ metadata.gz: 2ab5497f0d5cc992b39688d35ac07258ffa8a4f69d5737527f05724f000fc049b5507fbea06262fe57294a9beae67b7b7cd894a4f2635fe31730c08e371f2f51
7
+ data.tar.gz: 76c791128e8c0740f53fe08c1aea7c326ffe1c3da3fa5438773cee08ffa25e1cd307ab2b47c08ac81b3b93810f7db85a00f3151a13e41b92f2ec80b18097b014
@@ -1,8 +1,8 @@
1
1
  require '../lib/cloud_monitor_agent'
2
2
 
3
- API_URL = "http://localhost:9292/api/v1/push_info"
4
- CLOUD_TOKEN = "1234345"
5
- DELAY = 60
3
+ API_URL = "http://localhost:4000/api/v1/push_info"
4
+ CLOUD_TOKEN = "a2b272a1d20657568c5b6eef9eb124cd"
5
+ DELAY = 10
6
6
 
7
7
  cloud_agent = CloudMonitorAgent.new(API_URL, CLOUD_TOKEN, DELAY)
8
8
 
@@ -31,12 +31,13 @@ class CloudMonitorAgent
31
31
  def send_report
32
32
  while true
33
33
  payload = self.getPayload
34
- uri = URI('http://localhost:9292/api/v1/push_info')
34
+ uri = URI(self.api_url)
35
35
  req = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json')
36
36
  req.body = payload.to_json
37
37
  res = Net::HTTP.start(uri.hostname, uri.port) do |http|
38
38
  http.request(req)
39
39
  end
40
+ p res
40
41
  sleep @intervel
41
42
  end
42
43
  end
data/lib/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module CloudMonitor
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  OS = RUBY_PLATFORM
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud_monitor_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - G SubbaRao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-25 00:00:00.000000000 Z
11
+ date: 2016-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: usagewatch_ext