arkaan 0.5.10 → 0.5.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0457afc1c00ec42c0dfe5aea451727e30715821a
4
- data.tar.gz: 7aa9901899f699eaeea2de3acf8d2dcc62b3d9ca
3
+ metadata.gz: fcf70bf70d24f51fdabf6768e191af217ae488b6
4
+ data.tar.gz: 8a9f598d4c3fbc33e092de6cffd0efb06d3bffff
5
5
  SHA512:
6
- metadata.gz: 6a78e5a10d51061d7eea0e59b9e2a9eda77c5fb7689f73fce38264d1f97f74da6e3891a90bb9a53c0371a739e33026ec98b64f8886c4344ffac9e6026b1b37e8
7
- data.tar.gz: fc0a602f6d590bb96d5711f4844389e2bb0b3bc1cf61c00fe7a56af8c36b837c2c71bfb69c0d3ee6156eb3a5ae73f848bbeb5397f69b33c25d06e0590533fe88
6
+ metadata.gz: 11a097fb178fb3290ba249b570c38b76d575b7f2af759c5b185d42f1900439e1b3adca7ab89eb40626ada76c24b833f50ab02297fb178134c8593593260e246a
7
+ data.tar.gz: 7dcccfaca1a304f5eb51eaee2a6f71d7d4f62f1e61f4ccc12073bb11e0f69739436ba0da7b0b4c12651db1e5a218bd2155339da7da589980dd7383c91ca7eab3
@@ -5,5 +5,6 @@ module Arkaan
5
5
  autoload :Service , 'arkaan/monitoring/service'
6
6
  autoload :Instance, 'arkaan/monitoring/instance'
7
7
  autoload :Gateway , 'arkaan/monitoring/gateway'
8
+ autoload :Route , 'arkaan/monitoring/route'
8
9
  end
9
10
  end
@@ -0,0 +1,21 @@
1
+ module Arkaan
2
+ module Monitoring
3
+ # A route is an endpoint accessible in a service. Each route has to have an associated endpoint in the deeeeployed instances.
4
+ # @param Vincent Courtois <courtois.vincent@outlook.com>
5
+ class Route
6
+ include Mongoid::Document
7
+ include Mongoid::Timestamps
8
+
9
+ # @!attribute [rw] path
10
+ # @return [String] the path (URI) of the route in the service?
11
+ field :path, type: String
12
+ # @!attribute [rw] verb
13
+ # @return [String] the verb (HTTP method) of this route in the service.
14
+ field :verb, type: String
15
+
16
+ # @!attribute [rw] service
17
+ # @return [Arkaan::Monitoring::Service] the service in which this route is declared.
18
+ embedded_in :service, class_name: 'Arkaan::Monitoring::Service', inverse_of: :routes
19
+ end
20
+ end
21
+ end
@@ -23,6 +23,9 @@ module Arkaan
23
23
  # @!attribute [rw] instances
24
24
  # @return [Array<Arkaan::Monitoring::Instance>] the instances of this service currently deployed.
25
25
  embeds_many :instances, class_name: 'Arkaan::Monitoring::Instance', inverse_of: :service
26
+ # @!attribute [rw] routes
27
+ # @return [Array<Arkaan::Monitoring::Route>] the routes associated to this service, accessible from the gateway.
28
+ embeds_many :routes, class_name: 'Arkaan::Monitoring::Route', inverse_of: :service
26
29
 
27
30
  validates :key, uniqueness: {message: 'service.key.uniq'}
28
31
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arkaan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.10
4
+ version: 0.5.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Courtois
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-26 00:00:00.000000000 Z
11
+ date: 2017-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -167,6 +167,7 @@ files:
167
167
  - lib/arkaan/monitoring.rb
168
168
  - lib/arkaan/monitoring/gateway.rb
169
169
  - lib/arkaan/monitoring/instance.rb
170
+ - lib/arkaan/monitoring/route.rb
170
171
  - lib/arkaan/monitoring/service.rb
171
172
  - lib/arkaan/oauth.rb
172
173
  - lib/arkaan/oauth/access_token.rb