public sealed class HealthCheck : IMessage<HealthCheck>, IEquatable<HealthCheck>, IDeepCloneable<HealthCheck>, IBufferMessage, IMessage
Reference documentation and code samples for the Compute Engine v1 API class HealthCheck.
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.
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.
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.
Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC. Exactly one of the protocol-specific health check fields must be specified, which must match type field.
Check the Type enum for the list of possible values.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-31 UTC."],[[["The latest version available for the `Google.Cloud.Compute.V1.HealthCheck` is 3.6.0, and it provides a comprehensive list of prior versions, including 2.8.0 and all the way back to 1.0.0."],["The `HealthCheck` class in the Google Compute Engine v1 API is used to represent a health check resource, and it can be either global or regional, depending on the type of load balancer it's intended for."],["The `HealthCheck` class has several properties to define the check, such as `CheckIntervalSec` for how often to run the check, `HealthyThreshold` for how many consecutive successes before an instance is marked healthy, and `UnhealthyThreshold` for how many consecutive failures before an instance is marked unhealthy."],["The `HealthCheck` class supports different health check types, including HTTP, HTTPS, HTTP2, TCP, SSL, and GRPC, and requires that one of the protocol-specific health check fields (e.g., `HttpHealthCheck`, `HttpsHealthCheck`) must be specified and match the type field."],["The `HealthCheck` class has several implemented interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, along with inherited members such as `GetHashCode()`, `GetType()`, and `ToString()` from the base `object` class."]]],[]]