Class: TencentCloud::Cwp::V20180228::WebHookReceiver

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

Overview

告警接收人

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, name = nil, addr = nil, type = nil, scfregion = nil, namespace = nil, functionname = nil, functionversion = nil, _alias = nil) ⇒ WebHookReceiver

Returns a new instance of WebHookReceiver.



41218
41219
41220
41221
41222
41223
41224
41225
41226
41227
41228
# File 'lib/v20180228/models.rb', line 41218

def initialize(id=nil, name=nil, addr=nil, type=nil, scfregion=nil, namespace=nil, functionname=nil, functionversion=nil, _alias=nil)
  @Id = id
  @Name = name
  @Addr = addr
  @Type = type
  @SCFRegion = scfregion
  @Namespace = namespace
  @FunctionName = functionname
  @FunctionVersion = functionversion
  @Alias = _alias
end

Instance Attribute Details

#AddrObject

Parameters:

  • Id:

    id

  • Name:

    接收人名称

  • Addr:

    webhook地址

  • Type:

    类型

  • SCFRegion:

    目标地域

  • Namespace:

    命名空间

  • FunctionName:

    函数名称

  • FunctionVersion:

    版本

  • Alias:

    别名



41216
41217
41218
# File 'lib/v20180228/models.rb', line 41216

def Addr
  @Addr
end

#AliasObject

Parameters:

  • Id:

    id

  • Name:

    接收人名称

  • Addr:

    webhook地址

  • Type:

    类型

  • SCFRegion:

    目标地域

  • Namespace:

    命名空间

  • FunctionName:

    函数名称

  • FunctionVersion:

    版本

  • Alias:

    别名



41216
41217
41218
# File 'lib/v20180228/models.rb', line 41216

def Alias
  @Alias
end

#FunctionNameObject

Parameters:

  • Id:

    id

  • Name:

    接收人名称

  • Addr:

    webhook地址

  • Type:

    类型

  • SCFRegion:

    目标地域

  • Namespace:

    命名空间

  • FunctionName:

    函数名称

  • FunctionVersion:

    版本

  • Alias:

    别名



41216
41217
41218
# File 'lib/v20180228/models.rb', line 41216

def FunctionName
  @FunctionName
end

#FunctionVersionObject

Parameters:

  • Id:

    id

  • Name:

    接收人名称

  • Addr:

    webhook地址

  • Type:

    类型

  • SCFRegion:

    目标地域

  • Namespace:

    命名空间

  • FunctionName:

    函数名称

  • FunctionVersion:

    版本

  • Alias:

    别名



41216
41217
41218
# File 'lib/v20180228/models.rb', line 41216

def FunctionVersion
  @FunctionVersion
end

#IdObject

Parameters:

  • Id:

    id

  • Name:

    接收人名称

  • Addr:

    webhook地址

  • Type:

    类型

  • SCFRegion:

    目标地域

  • Namespace:

    命名空间

  • FunctionName:

    函数名称

  • FunctionVersion:

    版本

  • Alias:

    别名



41216
41217
41218
# File 'lib/v20180228/models.rb', line 41216

def Id
  @Id
end

#NameObject

Parameters:

  • Id:

    id

  • Name:

    接收人名称

  • Addr:

    webhook地址

  • Type:

    类型

  • SCFRegion:

    目标地域

  • Namespace:

    命名空间

  • FunctionName:

    函数名称

  • FunctionVersion:

    版本

  • Alias:

    别名



41216
41217
41218
# File 'lib/v20180228/models.rb', line 41216

def Name
  @Name
end

#NamespaceObject

Parameters:

  • Id:

    id

  • Name:

    接收人名称

  • Addr:

    webhook地址

  • Type:

    类型

  • SCFRegion:

    目标地域

  • Namespace:

    命名空间

  • FunctionName:

    函数名称

  • FunctionVersion:

    版本

  • Alias:

    别名



41216
41217
41218
# File 'lib/v20180228/models.rb', line 41216

def Namespace
  @Namespace
end

#SCFRegionObject

Parameters:

  • Id:

    id

  • Name:

    接收人名称

  • Addr:

    webhook地址

  • Type:

    类型

  • SCFRegion:

    目标地域

  • Namespace:

    命名空间

  • FunctionName:

    函数名称

  • FunctionVersion:

    版本

  • Alias:

    别名



41216
41217
41218
# File 'lib/v20180228/models.rb', line 41216

def SCFRegion
  @SCFRegion
end

#TypeObject

Parameters:

  • Id:

    id

  • Name:

    接收人名称

  • Addr:

    webhook地址

  • Type:

    类型

  • SCFRegion:

    目标地域

  • Namespace:

    命名空间

  • FunctionName:

    函数名称

  • FunctionVersion:

    版本

  • Alias:

    别名



41216
41217
41218
# File 'lib/v20180228/models.rb', line 41216

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



41230
41231
41232
41233
41234
41235
41236
41237
41238
41239
41240
# File 'lib/v20180228/models.rb', line 41230

def deserialize(params)
  @Id = params['Id']
  @Name = params['Name']
  @Addr = params['Addr']
  @Type = params['Type']
  @SCFRegion = params['SCFRegion']
  @Namespace = params['Namespace']
  @FunctionName = params['FunctionName']
  @FunctionVersion = params['FunctionVersion']
  @Alias = params['Alias']
end