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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: badb2a83972ce6b05b50ec1ee107f45b41eb1817
4
- data.tar.gz: bb991020c5af70cd9f2655122c54fe7d0ed95555
3
+ metadata.gz: 34e6112a642fa284847a6ff4bbe4b3c6ab9396de
4
+ data.tar.gz: 2dcd0321123f0c93af6d454fd983a0d9df812ada
5
5
  SHA512:
6
- metadata.gz: 5c3d799644752a869c4467431520d73c9878b270519c9e137ee54da5e01787b621f098af164a8d4b7c7683786322c45e71b01bd40b55bff4e08c94c53ec403f7
7
- data.tar.gz: a319e8406cf1cbbf80108ecae77396b5931cc642446bc98a9fca67c27f0babf6fa38b5923bb4afd1bf82ceda2d0862d9f6c3b721e640f6cbac0171d6cdaf5b2f
6
+ metadata.gz: 6b94a1dc1adcc3059c83e7ff902a53dd7571bdd8518754b278dee920fe965c8fcfb94a20412a88790104f49df9851180552d2987a1473e6f5493f13eadd067bf
7
+ data.tar.gz: 529c61f6d5049775111a31b948099472fd6860ce71c8f76e3813368870818395d909d40a039547afa5818777050376eafb3ab931f204acaa8440314c53b7da7b
@@ -12,6 +12,7 @@ module Aptible
12
12
  has_many :disks
13
13
  has_many :services
14
14
  has_many :permissions
15
+ has_many :metric_drains
15
16
  embeds_many :log_drains
16
17
 
17
18
  field :id
@@ -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
@@ -35,3 +35,4 @@ require 'aptible/api/stack'
35
35
  require 'aptible/api/database_credential'
36
36
  require 'aptible/api/ephemeral_session'
37
37
  require 'aptible/api/ephemeral_container'
38
+ require 'aptible/api/metric_drain'
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Api
3
- VERSION = '1.0.2'.freeze
3
+ VERSION = '1.1.0'.freeze
4
4
  end
5
5
  end
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.2
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: 2017-10-24 00:00:00.000000000 Z
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.6.13
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