Class: TencentCloud::Tione::V20211111::ProbeAction

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

Overview

探针行为

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(httpget = nil, exec = nil, tcpsocket = nil, actiontype = nil) ⇒ ProbeAction

Returns a new instance of ProbeAction.



7231
7232
7233
7234
7235
7236
# File 'lib/v20211111/models.rb', line 7231

def initialize(httpget=nil, exec=nil, tcpsocket=nil, actiontype=nil)
  @HTTPGet = httpget
  @Exec = exec
  @TCPSocket = tcpsocket
  @ActionType = actiontype
end

Instance Attribute Details

#ActionTypeObject

Parameters:

  • HTTPGet:

    http get 行为

  • Exec:

    执行命令检查 行为

  • TCPSocket:

    tcp socket 检查行为

  • ActionType:

    探针类型,默认 HTTPGet,可选值:HTTPGet、Exec、TCPSocket



7229
7230
7231
# File 'lib/v20211111/models.rb', line 7229

def ActionType
  @ActionType
end

#ExecObject

Parameters:

  • HTTPGet:

    http get 行为

  • Exec:

    执行命令检查 行为

  • TCPSocket:

    tcp socket 检查行为

  • ActionType:

    探针类型,默认 HTTPGet,可选值:HTTPGet、Exec、TCPSocket



7229
7230
7231
# File 'lib/v20211111/models.rb', line 7229

def Exec
  @Exec
end

#HTTPGetObject

Parameters:

  • HTTPGet:

    http get 行为

  • Exec:

    执行命令检查 行为

  • TCPSocket:

    tcp socket 检查行为

  • ActionType:

    探针类型,默认 HTTPGet,可选值:HTTPGet、Exec、TCPSocket



7229
7230
7231
# File 'lib/v20211111/models.rb', line 7229

def HTTPGet
  @HTTPGet
end

#TCPSocketObject

Parameters:

  • HTTPGet:

    http get 行为

  • Exec:

    执行命令检查 行为

  • TCPSocket:

    tcp socket 检查行为

  • ActionType:

    探针类型,默认 HTTPGet,可选值:HTTPGet、Exec、TCPSocket



7229
7230
7231
# File 'lib/v20211111/models.rb', line 7229

def TCPSocket
  @TCPSocket
end

Instance Method Details

#deserialize(params) ⇒ Object



7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
# File 'lib/v20211111/models.rb', line 7238

def deserialize(params)
  unless params['HTTPGet'].nil?
    @HTTPGet = HTTPGetAction.new
    @HTTPGet.deserialize(params['HTTPGet'])
  end
  unless params['Exec'].nil?
    @Exec = ExecAction.new
    @Exec.deserialize(params['Exec'])
  end
  unless params['TCPSocket'].nil?
    @TCPSocket = TCPSocketAction.new
    @TCPSocket.deserialize(params['TCPSocket'])
  end
  @ActionType = params['ActionType']
end