Class TargetPool


  • public abstract class TargetPool
    extends Object
    • Method Detail

      • id

        public abstract String id()
      • selfLink

        public abstract URI selfLink()
      • creationTimestamp

        public abstract Date creationTimestamp()
      • name

        public abstract String name()
      • region

        public abstract URI region()
      • healthChecks

        public abstract List<URI> healthChecks()
        URL to HttpHealthCheck resources. A member VM in this pool is considered healthy if and only if the specified health checks pass. An empty list means all member virtual machines will be considered healthy at all times but the health status of this target pool will be marked as unhealthy to indicate that no health checks are being performed.
      • instances

        public abstract List<URI> instances()
        A list of resource URLs to the member VMs serving this pool. They must live in zones contained in the same region as this pool.
      • failoverRatio

        @Nullable
        public abstract Float failoverRatio()
        This field is applicable only when the target pool is serving a forwarding rule as the primary pool. The value of the a float between [0, 1]. If set, backupPool must also be set. Together, they define the fallback behavior of the primary target pool. If the ratio of the healthy VMs in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio is not set or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the force mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy.
      • backupPool

        @Nullable
        public abstract URI backupPool()
        This field is applicable only when the target pool is serving a forwarding rule as the primary pool. Must be a fully-qualified URL to a target pool that is in the same region as the primary target pool. If set, failoverRatio must also be set. Together, they define the fallback behavior of the primary target pool. If the ratio of the healthy VMs in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio is not set or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the force mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy.