Class: Google::Cloud::Compute::V1::HealthCheck

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/compute/v1/compute.rb

Overview

Represents a Health Check resource. Google Compute Engine has two Health Check resources: * Global * Regional Internal HTTP(S) load balancers must use regional health checks (compute.v1.regionHealthChecks). Traffic Director must use global health checks (compute.v1.HealthChecks). Internal TCP/UDP load balancers can use either regional or global health checks (compute.v1.regionHealthChecks or compute.v1.HealthChecks). External HTTP(S), TCP proxy, and SSL proxy load balancers as well as managed instance group auto-healing must use global health checks (compute.v1.HealthChecks). Backend service-based network load balancers must use regional health checks (compute.v1.regionHealthChecks). Target pool-based network load balancers must use legacy HTTP health checks (compute.v1.httpHealthChecks). For more information, see Health checks overview.

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Attribute Details

#check_interval_sec::Integer

Returns How often (in seconds) to send a health check. The default value is 5 seconds.

Returns:

  • (::Integer)

    How often (in seconds) to send a health check. The default value is 5 seconds.



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8463

class HealthCheck
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    GRPC = 2196510

    HTTP = 2228360

    HTTP2 = 69079210

    HTTPS = 69079243

    INVALID = 530283991

    SSL = 82412

    TCP = 82881
  end
end

#creation_timestamp::String

Returns [Output Only] Creation timestamp in 3339 text format.

Returns:

  • (::String)

    [Output Only] Creation timestamp in 3339 text format.



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8463

class HealthCheck
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    GRPC = 2196510

    HTTP = 2228360

    HTTP2 = 69079210

    HTTPS = 69079243

    INVALID = 530283991

    SSL = 82412

    TCP = 82881
  end
end

#description::String

Returns An optional description of this resource. Provide this property when you create the resource.

Returns:

  • (::String)

    An optional description of this resource. Provide this property when you create the resource.



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8463

class HealthCheck
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    GRPC = 2196510

    HTTP = 2228360

    HTTP2 = 69079210

    HTTPS = 69079243

    INVALID = 530283991

    SSL = 82412

    TCP = 82881
  end
end

#grpc_health_check::Google::Cloud::Compute::V1::GRPCHealthCheck



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8463

class HealthCheck
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    GRPC = 2196510

    HTTP = 2228360

    HTTP2 = 69079210

    HTTPS = 69079243

    INVALID = 530283991

    SSL = 82412

    TCP = 82881
  end
end

#healthy_threshold::Integer

Returns A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.

Returns:

  • (::Integer)

    A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8463

class HealthCheck
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    GRPC = 2196510

    HTTP = 2228360

    HTTP2 = 69079210

    HTTPS = 69079243

    INVALID = 530283991

    SSL = 82412

    TCP = 82881
  end
end

#http2_health_check::Google::Cloud::Compute::V1::HTTP2HealthCheck



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8463

class HealthCheck
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    GRPC = 2196510

    HTTP = 2228360

    HTTP2 = 69079210

    HTTPS = 69079243

    INVALID = 530283991

    SSL = 82412

    TCP = 82881
  end
end

#http_health_check::Google::Cloud::Compute::V1::HTTPHealthCheck



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8463

class HealthCheck
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    GRPC = 2196510

    HTTP = 2228360

    HTTP2 = 69079210

    HTTPS = 69079243

    INVALID = 530283991

    SSL = 82412

    TCP = 82881
  end
end

#https_health_check::Google::Cloud::Compute::V1::HTTPSHealthCheck



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8463

class HealthCheck
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    GRPC = 2196510

    HTTP = 2228360

    HTTP2 = 69079210

    HTTPS = 69079243

    INVALID = 530283991

    SSL = 82412

    TCP = 82881
  end
end

#id::Integer

Returns [Output Only] The unique identifier for the resource. This identifier is defined by the server.

Returns:

  • (::Integer)

    [Output Only] The unique identifier for the resource. This identifier is defined by the server.



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8463

class HealthCheck
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    GRPC = 2196510

    HTTP = 2228360

    HTTP2 = 69079210

    HTTPS = 69079243

    INVALID = 530283991

    SSL = 82412

    TCP = 82881
  end
end

#kind::String

Returns Type of the resource.

Returns:

  • (::String)

    Type of the resource.



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8463

class HealthCheck
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    GRPC = 2196510

    HTTP = 2228360

    HTTP2 = 69079210

    HTTPS = 69079243

    INVALID = 530283991

    SSL = 82412

    TCP = 82881
  end
end

#log_config::Google::Cloud::Compute::V1::HealthCheckLogConfig

Returns Configure logging on this health check.

Returns:



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8463

class HealthCheck
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    GRPC = 2196510

    HTTP = 2228360

    HTTP2 = 69079210

    HTTPS = 69079243

    INVALID = 530283991

    SSL = 82412

    TCP = 82881
  end
end

#name::String

Returns Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. For example, a name that is 1-63 characters long, matches the regular expression [a-z]([-a-z0-9]*[a-z0-9])?, and otherwise complies with RFC1035. This regular expression describes a name where the first character is a lowercase letter, and all following characters are a dash, lowercase letter, or digit, except the last character, which isn't a dash.

Returns:

  • (::String)

    Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. For example, a name that is 1-63 characters long, matches the regular expression [a-z]([-a-z0-9]*[a-z0-9])?, and otherwise complies with RFC1035. This regular expression describes a name where the first character is a lowercase letter, and all following characters are a dash, lowercase letter, or digit, except the last character, which isn't a dash.



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8463

class HealthCheck
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    GRPC = 2196510

    HTTP = 2228360

    HTTP2 = 69079210

    HTTPS = 69079243

    INVALID = 530283991

    SSL = 82412

    TCP = 82881
  end
end

#region::String

Returns [Output Only] Region where the health check resides. Not applicable to global health checks.

Returns:

  • (::String)

    [Output Only] Region where the health check resides. Not applicable to global health checks.



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8463

class HealthCheck
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    GRPC = 2196510

    HTTP = 2228360

    HTTP2 = 69079210

    HTTPS = 69079243

    INVALID = 530283991

    SSL = 82412

    TCP = 82881
  end
end

Returns [Output Only] Server-defined URL for the resource.

Returns:

  • (::String)

    [Output Only] Server-defined URL for the resource.



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8463

class HealthCheck
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    GRPC = 2196510

    HTTP = 2228360

    HTTP2 = 69079210

    HTTPS = 69079243

    INVALID = 530283991

    SSL = 82412

    TCP = 82881
  end
end

#ssl_health_check::Google::Cloud::Compute::V1::SSLHealthCheck



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8463

class HealthCheck
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    GRPC = 2196510

    HTTP = 2228360

    HTTP2 = 69079210

    HTTPS = 69079243

    INVALID = 530283991

    SSL = 82412

    TCP = 82881
  end
end

#tcp_health_check::Google::Cloud::Compute::V1::TCPHealthCheck



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8463

class HealthCheck
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    GRPC = 2196510

    HTTP = 2228360

    HTTP2 = 69079210

    HTTPS = 69079243

    INVALID = 530283991

    SSL = 82412

    TCP = 82881
  end
end

#timeout_sec::Integer

Returns How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.

Returns:

  • (::Integer)

    How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8463

class HealthCheck
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    GRPC = 2196510

    HTTP = 2228360

    HTTP2 = 69079210

    HTTPS = 69079243

    INVALID = 530283991

    SSL = 82412

    TCP = 82881
  end
end

#type::String

Returns Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field. Check the Type enum for the list of possible values.

Returns:

  • (::String)

    Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field. Check the Type enum for the list of possible values.



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8463

class HealthCheck
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    GRPC = 2196510

    HTTP = 2228360

    HTTP2 = 69079210

    HTTPS = 69079243

    INVALID = 530283991

    SSL = 82412

    TCP = 82881
  end
end

#unhealthy_threshold::Integer

Returns A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.

Returns:

  • (::Integer)

    A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8463

class HealthCheck
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    GRPC = 2196510

    HTTP = 2228360

    HTTP2 = 69079210

    HTTPS = 69079243

    INVALID = 530283991

    SSL = 82412

    TCP = 82881
  end
end