Class: TencentCloud::Cls::V20201016::CallBackInfo

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

Overview

回调配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body = nil, headers = nil) ⇒ CallBackInfo

Returns a new instance of CallBackInfo.



987
988
989
990
# File 'lib/v20201016/models.rb', line 987

def initialize(body=nil, headers=nil)
  @Body = body
  @Headers = headers
end

Instance Attribute Details

#Body ⇒ Object

{
"TopicId": "{{ .QueryLog[0][0].topicId }}",
"key": "{{.Alarm}}",
"time": "{{ .QueryLog[0][0].time }}",
"log": "{{ .QueryLog[0][0].content.__CONTENT__ }}",
"namespace": "{{ .QueryLog[0][0].content.__TAG__.namespace }}"
}

例如:下面请求头部字段来告知服务器请求主体的内容类型为JSON。

"Content-Type: application/json"

Parameters:

  • Headers: —

    回调时的HTTP请求头部字段。



985
986
987
# File 'lib/v20201016/models.rb', line 985

def Body
  @Body
end

#Headers ⇒ Object

{
"TopicId": "{{ .QueryLog[0][0].topicId }}",
"key": "{{.Alarm}}",
"time": "{{ .QueryLog[0][0].time }}",
"log": "{{ .QueryLog[0][0].content.__CONTENT__ }}",
"namespace": "{{ .QueryLog[0][0].content.__TAG__.namespace }}"
}

例如:下面请求头部字段来告知服务器请求主体的内容类型为JSON。

"Content-Type: application/json"

Parameters:

  • Headers: —

    回调时的HTTP请求头部字段。



985
986
987
# File 'lib/v20201016/models.rb', line 985

def Headers
  @Headers
end

Instance Method Details

#deserialize(params) ⇒ Object



992
993
994
995
# File 'lib/v20201016/models.rb', line 992

def deserialize(params)
  @Body = params['Body']
  @Headers = params['Headers']
end