aptible-api 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aptible/api/account.rb +1 -0
- data/lib/aptible/api/container.rb +2 -0
- data/lib/aptible/api/metric_drain.rb +28 -0
- data/lib/aptible/api/resource.rb +1 -0
- data/lib/aptible/api/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34e6112a642fa284847a6ff4bbe4b3c6ab9396de
|
4
|
+
data.tar.gz: 2dcd0321123f0c93af6d454fd983a0d9df812ada
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b94a1dc1adcc3059c83e7ff902a53dd7571bdd8518754b278dee920fe965c8fcfb94a20412a88790104f49df9851180552d2987a1473e6f5493f13eadd067bf
|
7
|
+
data.tar.gz: 529c61f6d5049775111a31b948099472fd6860ce71c8f76e3813368870818395d909d40a039547afa5818777050376eafb3ab931f204acaa8440314c53b7da7b
|
data/lib/aptible/api/account.rb
CHANGED
@@ -4,6 +4,7 @@ module Aptible
|
|
4
4
|
belongs_to :release
|
5
5
|
belongs_to :vhost
|
6
6
|
belongs_to :log_drain
|
7
|
+
belongs_to :metric_drain
|
7
8
|
|
8
9
|
field :id
|
9
10
|
field :host
|
@@ -16,6 +17,7 @@ module Aptible
|
|
16
17
|
field :layer
|
17
18
|
field :aws_instance_id
|
18
19
|
field :port_mapping
|
20
|
+
field :mounts
|
19
21
|
end
|
20
22
|
end
|
21
23
|
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Aptible
|
2
|
+
module Api
|
3
|
+
class MetricDrain < Resource
|
4
|
+
belongs_to :account
|
5
|
+
belongs_to :database
|
6
|
+
has_many :operations
|
7
|
+
has_many :containers
|
8
|
+
|
9
|
+
field :id
|
10
|
+
|
11
|
+
field :handle
|
12
|
+
field :status
|
13
|
+
field :drain_type
|
14
|
+
field :drain_configuration
|
15
|
+
|
16
|
+
field :aggregator_ca_certificate
|
17
|
+
field :aggregator_ca_private_key_blob
|
18
|
+
field :aggregator_host
|
19
|
+
field :aggregator_port_mapping
|
20
|
+
field :aggregator_docker_name
|
21
|
+
field :aggregator_instance_id
|
22
|
+
field :aggregator_allocation
|
23
|
+
|
24
|
+
field :created_at, type: Time
|
25
|
+
field :updated_at, type: Time
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
data/lib/aptible/api/resource.rb
CHANGED
data/lib/aptible/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aptible-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank Macreery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aptible-resource
|
@@ -182,6 +182,7 @@ files:
|
|
182
182
|
- lib/aptible/api/ephemeral_session.rb
|
183
183
|
- lib/aptible/api/image.rb
|
184
184
|
- lib/aptible/api/log_drain.rb
|
185
|
+
- lib/aptible/api/metric_drain.rb
|
185
186
|
- lib/aptible/api/operation.rb
|
186
187
|
- lib/aptible/api/permission.rb
|
187
188
|
- lib/aptible/api/release.rb
|
@@ -217,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
218
|
version: '0'
|
218
219
|
requirements: []
|
219
220
|
rubyforge_project:
|
220
|
-
rubygems_version: 2.
|
221
|
+
rubygems_version: 2.4.5.3
|
221
222
|
signing_key:
|
222
223
|
specification_version: 4
|
223
224
|
summary: Ruby client for api.aptible.com
|