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 +4 -4
- data/lib/arkaan/monitoring.rb +1 -0
- data/lib/arkaan/monitoring/route.rb +21 -0
- data/lib/arkaan/monitoring/service.rb +3 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcf70bf70d24f51fdabf6768e191af217ae488b6
|
4
|
+
data.tar.gz: 8a9f598d4c3fbc33e092de6cffd0efb06d3bffff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11a097fb178fb3290ba249b570c38b76d575b7f2af759c5b185d42f1900439e1b3adca7ab89eb40626ada76c24b833f50ab02297fb178134c8593593260e246a
|
7
|
+
data.tar.gz: 7dcccfaca1a304f5eb51eaee2a6f71d7d4f62f1e61f4ccc12073bb11e0f69739436ba0da7b0b4c12651db1e5a218bd2155339da7da589980dd7383c91ca7eab3
|
data/lib/arkaan/monitoring.rb
CHANGED
@@ -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.
|
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-
|
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
|