Class: TencentCloud::Cls::V20201016::CallBackInfo
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cls::V20201016::CallBackInfo
- Defined in:
- lib/v20201016/models.rb
Overview
回调配置
Instance Attribute Summary collapse
-
#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". -
#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".
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(body = nil, headers = nil) ⇒ CallBackInfo
constructor
A new instance of CallBackInfo.
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"
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"
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 |