public class CallBackInfo extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| CallBackInfo() | 
| CallBackInfo(CallBackInfo source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getBody()Get 回调时的Body。
可将各类告警变量放在请求内容中,详见[帮助文档](https://cloud.tencent.com/document/product/614/74718)。
如下示例:
```
{
"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 }}"
}
``` | 
| String[] | getHeaders()Get 回调时的HTTP请求头部字段。
例如:下面请求头部字段来告知服务器请求主体的内容类型为JSON。
```
"Content-Type: application/json"
``` | 
| void | setBody(String Body)Set 回调时的Body。
可将各类告警变量放在请求内容中,详见[帮助文档](https://cloud.tencent.com/document/product/614/74718)。
如下示例:
```
{
"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 }}"
}
``` | 
| void | setHeaders(String[] Headers)Set 回调时的HTTP请求头部字段。
例如:下面请求头部字段来告知服务器请求主体的内容类型为JSON。
```
"Content-Type: application/json"
``` | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic CallBackInfo()
public CallBackInfo(CallBackInfo source)
public String getBody()
public void setBody(String Body)
Body - 回调时的Body。
可将各类告警变量放在请求内容中,详见[帮助文档](https://cloud.tencent.com/document/product/614/74718)。
如下示例:
```
{
"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 }}"
}
```public String[] getHeaders()
public void setHeaders(String[] Headers)
Headers - 回调时的HTTP请求头部字段。
例如:下面请求头部字段来告知服务器请求主体的内容类型为JSON。
```
"Content-Type: application/json"
```Copyright © 2025. All rights reserved.