File: get_health_check.rb

package info (click to toggle)
ruby-fog-aws 3.3.0-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,816 kB
  • sloc: ruby: 68,587; makefile: 6
file content (41 lines) | stat: -rw-r--r-- 1,366 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module Fog
  module AWS
    class DNS
      class Real
        require 'fog/aws/parsers/dns/health_check'

        # This action gets information about a specified health check.
        #http://docs.aws.amazon.com/Route53/latest/APIReference/API_GetHealthCheck.html
        #
        # ==== Parameters
        # * id<~String> - The ID of the health check
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'HealthCheck'<~Hash>:
        #       * 'Id'<~String> -
        #       * 'CallerReference'<~String>
        #       * 'HealthCheckConfig'<~Hash>:
        #         * 'IPAddress'<~String> -
        #         * 'Port'<~String> -
        #         * 'Type'<~String> -
        #         * 'ResourcePath'<~String> -
        #         * 'FullyQualifiedDomainName'<~String> -
        #         * 'SearchString'<~String> -
        #         * 'RequestInterval'<~Integer> -
        #         * 'FailureThreshold'<~String> -
        #       * 'HealthCheckVersion'<~Integer> -
        #   * status<~Integer> - 200 when successful
        def get_health_check(id)
          request({
            :expects => 200,
            :parser  => Fog::Parsers::AWS::DNS::HealthCheck.new,
            :method  => 'GET',
            :path    => "healthcheck/#{id}"
          })
        end
      end
    end
  end
end