Class: TencentCloud::Tke::V20180525::Probe

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180525/models.rb

Overview

健康检查探测参数

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(initialdelayseconds = nil, timeoutseconds = nil, periodseconds = nil, successthreshold = nil, failurethreshold = nil) ⇒ Probe

Returns a new instance of Probe.



15633
15634
15635
15636
15637
15638
15639
# File 'lib/v20180525/models.rb', line 15633

def initialize(initialdelayseconds=nil, timeoutseconds=nil, periodseconds=nil, successthreshold=nil, failurethreshold=nil)
  @InitialDelaySeconds = initialdelayseconds
  @TimeoutSeconds = timeoutseconds
  @PeriodSeconds = periodseconds
  @SuccessThreshold = successthreshold
  @FailureThreshold = failurethreshold
end

Instance Attribute Details

#FailureThresholdObject

注意:此字段可能返回 null,表示取不到有效值。 Defaults to 1 second. Minimum value is 1. 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • InitialDelaySeconds:

    Number of seconds after the container has started before liveness probes are initiated.

  • TimeoutSeconds:

    Number of seconds after which the probe times out.

  • PeriodSeconds:

    How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.

  • SuccessThreshold:

    Minimum consecutive successes for the probe to be considered successful after having failed.Defaults to 1. Must be 1 for liveness. Minimum value is 1.

  • FailureThreshold:

    Minimum consecutive failures for the probe to be considered failed after having succeeded.Defaults to 3. Minimum value is 1.



15631
15632
15633
# File 'lib/v20180525/models.rb', line 15631

def FailureThreshold
  @FailureThreshold
end

#InitialDelaySecondsObject

注意:此字段可能返回 null,表示取不到有效值。 Defaults to 1 second. Minimum value is 1. 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • InitialDelaySeconds:

    Number of seconds after the container has started before liveness probes are initiated.

  • TimeoutSeconds:

    Number of seconds after which the probe times out.

  • PeriodSeconds:

    How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.

  • SuccessThreshold:

    Minimum consecutive successes for the probe to be considered successful after having failed.Defaults to 1. Must be 1 for liveness. Minimum value is 1.

  • FailureThreshold:

    Minimum consecutive failures for the probe to be considered failed after having succeeded.Defaults to 3. Minimum value is 1.



15631
15632
15633
# File 'lib/v20180525/models.rb', line 15631

def InitialDelaySeconds
  @InitialDelaySeconds
end

#PeriodSecondsObject

注意:此字段可能返回 null,表示取不到有效值。 Defaults to 1 second. Minimum value is 1. 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • InitialDelaySeconds:

    Number of seconds after the container has started before liveness probes are initiated.

  • TimeoutSeconds:

    Number of seconds after which the probe times out.

  • PeriodSeconds:

    How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.

  • SuccessThreshold:

    Minimum consecutive successes for the probe to be considered successful after having failed.Defaults to 1. Must be 1 for liveness. Minimum value is 1.

  • FailureThreshold:

    Minimum consecutive failures for the probe to be considered failed after having succeeded.Defaults to 3. Minimum value is 1.



15631
15632
15633
# File 'lib/v20180525/models.rb', line 15631

def PeriodSeconds
  @PeriodSeconds
end

#SuccessThresholdObject

注意:此字段可能返回 null,表示取不到有效值。 Defaults to 1 second. Minimum value is 1. 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • InitialDelaySeconds:

    Number of seconds after the container has started before liveness probes are initiated.

  • TimeoutSeconds:

    Number of seconds after which the probe times out.

  • PeriodSeconds:

    How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.

  • SuccessThreshold:

    Minimum consecutive successes for the probe to be considered successful after having failed.Defaults to 1. Must be 1 for liveness. Minimum value is 1.

  • FailureThreshold:

    Minimum consecutive failures for the probe to be considered failed after having succeeded.Defaults to 3. Minimum value is 1.



15631
15632
15633
# File 'lib/v20180525/models.rb', line 15631

def SuccessThreshold
  @SuccessThreshold
end

#TimeoutSecondsObject

注意:此字段可能返回 null,表示取不到有效值。 Defaults to 1 second. Minimum value is 1. 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • InitialDelaySeconds:

    Number of seconds after the container has started before liveness probes are initiated.

  • TimeoutSeconds:

    Number of seconds after which the probe times out.

  • PeriodSeconds:

    How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.

  • SuccessThreshold:

    Minimum consecutive successes for the probe to be considered successful after having failed.Defaults to 1. Must be 1 for liveness. Minimum value is 1.

  • FailureThreshold:

    Minimum consecutive failures for the probe to be considered failed after having succeeded.Defaults to 3. Minimum value is 1.



15631
15632
15633
# File 'lib/v20180525/models.rb', line 15631

def TimeoutSeconds
  @TimeoutSeconds
end

Instance Method Details

#deserialize(params) ⇒ Object



15641
15642
15643
15644
15645
15646
15647
# File 'lib/v20180525/models.rb', line 15641

def deserialize(params)
  @InitialDelaySeconds = params['InitialDelaySeconds']
  @TimeoutSeconds = params['TimeoutSeconds']
  @PeriodSeconds = params['PeriodSeconds']
  @SuccessThreshold = params['SuccessThreshold']
  @FailureThreshold = params['FailureThreshold']
end