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.



15669
15670
15671
15672
15673
15674
15675
# File 'lib/v20180525/models.rb', line 15669

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.



15667
15668
15669
# File 'lib/v20180525/models.rb', line 15667

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.



15667
15668
15669
# File 'lib/v20180525/models.rb', line 15667

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.



15667
15668
15669
# File 'lib/v20180525/models.rb', line 15667

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.



15667
15668
15669
# File 'lib/v20180525/models.rb', line 15667

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.



15667
15668
15669
# File 'lib/v20180525/models.rb', line 15667

def TimeoutSeconds
  @TimeoutSeconds
end

Instance Method Details

#deserialize(params) ⇒ Object



15677
15678
15679
15680
15681
15682
15683
# File 'lib/v20180525/models.rb', line 15677

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