cloudscale 0.0.4 → 0.0.5

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: 07a34393d2ffd100908ce523865bc2110c3d3f36
4
- data.tar.gz: 352f6af0a202322466cf411ff34357a4eececc67
3
+ metadata.gz: c529bae8a0dd8582082e790b37a683e7613e6194
4
+ data.tar.gz: 32e71282061effa5191e5a306c4e5a7c207898bc
5
5
  SHA512:
6
- metadata.gz: 426faf03ecdcc811bda61727dd8143a24d3c10700946138bb1414223d1a07b06ff408f88cf2151d23545072ca8264eb026dae952a1414cdbd2c743a7185aea89
7
- data.tar.gz: 184c0f8e96e05e61ec362eeda9658f2e66782a51d33c1beb052f67329f37814150deea184fea17ff533b8f611647dda36d60030f5319f37ec1137af77cdcc9e1
6
+ metadata.gz: 1fb356abee2c1ab2b91e187bb94034586bee30041e84705ad378d06b0d330f6d6af3c21ebc5856c9ef4e302ba1dee13927ef19b597c2509a9bcff76d8333c18f
7
+ data.tar.gz: 4f9cba6ac57d57d408a0244f1839f6cd8434aa14ac43aec48e5a1e0a3cdafdeed188c8dd0804d10c2de3a99d821cfab63e4b086906be3d854b0be5b2a9ead1fc
@@ -45,16 +45,6 @@ module Cloudscale
45
45
  end
46
46
  end
47
47
 
48
- def self.setup_charts
49
- if (!Plugins::PluginComponents.is_initialized())
50
- Plugins::PluginComponents.init_charts()
51
- end
52
- end
53
-
54
- def self.remove_charts
55
- Plugins::PluginComponents.remove_charts()
56
- end
57
-
58
48
  end
59
49
  end
60
50
  end
@@ -20,15 +20,13 @@ module Cloudscale
20
20
  end
21
21
 
22
22
  def self.save(config)
23
- puts config
24
23
  begin
25
24
  File.open(@@AGENT_STORE, 'w') do | h |
26
25
  h.write config.to_yaml
27
26
  end
28
27
  rescue Exception
29
28
  return nil
30
- end
31
- puts load()
29
+ end
32
30
  end
33
31
  end
34
32
  end
@@ -31,20 +31,13 @@ module Cloudscale
31
31
  resetRestEndpoint('coredatas', agentInstanceId, 'Coredata')
32
32
  resetRestEndpoint('tables', agentInstanceId, 'Table')
33
33
  resetRestEndpoint('charts', agentInstanceId, 'Chart')
34
-
35
- Monitor::InitCharts.remove_charts()
36
- Monitor::InitMenus.remove_menus()
37
-
38
- remove_measurements(agentInstanceId)
34
+
39
35
  remove_agenInstance(agentInstanceId)
40
36
  end
41
37
 
42
38
  def self.remove(agentInstanceId)
43
39
  reset(agentInstanceId)
44
40
 
45
- resetRestEndpoint('components', agentInstanceId, 'Components')
46
- resetRestEndpoint('agentInstanceMenus', agentInstanceId, 'Agent Insntance Menus')
47
-
48
41
  Constants::AgentInstance.remove()
49
42
  end
50
43
 
@@ -75,16 +68,6 @@ module Cloudscale
75
68
  puts " Deleting AgentInstance was successful \n\n"
76
69
  end
77
70
 
78
- def self.remove_measurements(agentInstanceId)
79
- rest_client = RestClientWrapper.instance
80
- puts "Removing Measurement elements for Agent (#{agentInstanceId}):\n\n"
81
- puts " Starting to delete all elements..."
82
-
83
- rest_client.customDelete("measurements", "removeByAgentInstanceId", { :agentInstanceId => agentInstanceId })
84
-
85
- puts " Deleting all elements was successful \n\n"
86
- end
87
-
88
71
  def self.plugins
89
72
  @plugins
90
73
  end
@@ -4,5 +4,5 @@
4
4
  #
5
5
  ##
6
6
  module Cloudscale
7
- VERSION = "0.0.4" unless const_defined?(:VERSION)
7
+ VERSION = "0.0.5" unless const_defined?(:VERSION)
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudscale
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johannes Hiemer
@@ -215,11 +215,7 @@ files:
215
215
  - lib/cloudscale/rest/rest_client_helper.rb
216
216
  - lib/cloudscale/schedule.rb
217
217
  - lib/cloudscale/store/agent/agent.store
218
- - lib/cloudscale/store/agent/agent_instance.store
219
218
  - lib/cloudscale/store/agent/influxdb.store
220
- - lib/cloudscale/store/plugin/host
221
- - lib/cloudscale/store/plugin/port
222
- - lib/cloudscale/store/plugin/token
223
219
  - lib/cloudscale/version.rb
224
220
  - lib/cloudscale.rb
225
221
  - lib/test/rest/rest_client_test.rb
@@ -1,11 +0,0 @@
1
- ---
2
- agent: http://localhost:8080/service/agents/532c68eca5ee0383d3a07a91
3
- agentInstanceId: de0236433156a4417943ef9f55d52234
4
- token: e2FsZz1IUzI1NiwgdHlwPUNUfQ.e3Y9MCwgZD1tb25pdG9yaW5nLCBpYXQ9MTQwNDc1NzMyNH0.rG0biCuH_-X1vulEr19H2m42i4DGRR8PGwgXastyk3Q
5
- server: jhiemer-evoila.fritz.box
6
- settings: !ruby/object:Cloudscale::Monitor::Settings
7
- measurementCollectionInterval: 15
8
- coredataCollectionInterval: 0
9
- tableCollectionInterval: 1500
10
- reportingInterval: 5
11
- started: 1440004610000
@@ -1 +0,0 @@
1
- I"localhost:ET
@@ -1 +0,0 @@
1
- I" 8080:ET
@@ -1 +0,0 @@
1
- I"{e2FsZz1IUzI1NiwgdHlwPUNUfQ.e3Y9MCwgZD1tb25pdG9yaW5nLCBpYXQ9MTQwNDc1NzMyNH0.rG0biCuH_-X1vulEr19H2m42i4DGRR8PGwgXastyk3Q:ET