Class: TencentCloud::Tke::V20180525::LivenessOrReadinessProbe

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

Overview

健康探针

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(probe = nil, exec = nil, httpget = nil, tcpsocket = nil) ⇒ LivenessOrReadinessProbe

Returns a new instance of LivenessOrReadinessProbe.



14472
14473
14474
14475
14476
14477
# File 'lib/v20180525/models.rb', line 14472

def initialize(probe=nil, exec=nil, httpget=nil, tcpsocket=nil)
  @Probe = probe
  @Exec = exec
  @HttpGet = httpget
  @TcpSocket = tcpsocket
end

Instance Attribute Details

#ExecObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Probe:

    探针参数

  • Exec:

    容器内检测命令参数

  • HttpGet:

    HttpGet检测参数

  • TcpSocket:

    TcpSocket检测的端口参数



14470
14471
14472
# File 'lib/v20180525/models.rb', line 14470

def Exec
  @Exec
end

#HttpGetObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Probe:

    探针参数

  • Exec:

    容器内检测命令参数

  • HttpGet:

    HttpGet检测参数

  • TcpSocket:

    TcpSocket检测的端口参数



14470
14471
14472
# File 'lib/v20180525/models.rb', line 14470

def HttpGet
  @HttpGet
end

#ProbeObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Probe:

    探针参数

  • Exec:

    容器内检测命令参数

  • HttpGet:

    HttpGet检测参数

  • TcpSocket:

    TcpSocket检测的端口参数



14470
14471
14472
# File 'lib/v20180525/models.rb', line 14470

def Probe
  @Probe
end

#TcpSocketObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Probe:

    探针参数

  • Exec:

    容器内检测命令参数

  • HttpGet:

    HttpGet检测参数

  • TcpSocket:

    TcpSocket检测的端口参数



14470
14471
14472
# File 'lib/v20180525/models.rb', line 14470

def TcpSocket
  @TcpSocket
end

Instance Method Details

#deserialize(params) ⇒ Object



14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
# File 'lib/v20180525/models.rb', line 14479

def deserialize(params)
  unless params['Probe'].nil?
    @Probe = Probe.new
    @Probe.deserialize(params['Probe'])
  end
  unless params['Exec'].nil?
    @Exec = Exec.new
    @Exec.deserialize(params['Exec'])
  end
  unless params['HttpGet'].nil?
    @HttpGet = HttpGet.new
    @HttpGet.deserialize(params['HttpGet'])
  end
  unless params['TcpSocket'].nil?
    @TcpSocket = TcpSocket.new
    @TcpSocket.deserialize(params['TcpSocket'])
  end
end