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(failurethreshold = nil, initialdelayseconds = nil, periodseconds = nil, successthreshold = nil, timeoutseconds = nil) ⇒ Probe

Returns a new instance of Probe.



15975
15976
15977
15978
15979
15980
15981
# File 'lib/v20180525/models.rb', line 15975

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

Instance Attribute Details

#FailureThresholdObject

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

Parameters:

  • FailureThreshold:

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

  • InitialDelaySeconds:

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

  • 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.

  • TimeoutSeconds:

    Number of seconds after which the probe times out.



15973
15974
15975
# File 'lib/v20180525/models.rb', line 15973

def FailureThreshold
  @FailureThreshold
end

#InitialDelaySecondsObject

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

Parameters:

  • FailureThreshold:

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

  • InitialDelaySeconds:

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

  • 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.

  • TimeoutSeconds:

    Number of seconds after which the probe times out.



15973
15974
15975
# File 'lib/v20180525/models.rb', line 15973

def InitialDelaySeconds
  @InitialDelaySeconds
end

#PeriodSecondsObject

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

Parameters:

  • FailureThreshold:

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

  • InitialDelaySeconds:

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

  • 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.

  • TimeoutSeconds:

    Number of seconds after which the probe times out.



15973
15974
15975
# File 'lib/v20180525/models.rb', line 15973

def PeriodSeconds
  @PeriodSeconds
end

#SuccessThresholdObject

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

Parameters:

  • FailureThreshold:

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

  • InitialDelaySeconds:

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

  • 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.

  • TimeoutSeconds:

    Number of seconds after which the probe times out.



15973
15974
15975
# File 'lib/v20180525/models.rb', line 15973

def SuccessThreshold
  @SuccessThreshold
end

#TimeoutSecondsObject

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

Parameters:

  • FailureThreshold:

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

  • InitialDelaySeconds:

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

  • 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.

  • TimeoutSeconds:

    Number of seconds after which the probe times out.



15973
15974
15975
# File 'lib/v20180525/models.rb', line 15973

def TimeoutSeconds
  @TimeoutSeconds
end

Instance Method Details

#deserialize(params) ⇒ Object



15983
15984
15985
15986
15987
15988
15989
# File 'lib/v20180525/models.rb', line 15983

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