public class LogHubService extends Object
| 构造器和说明 |
|---|
LogHubService() |
| 限定符和类型 | 方法和说明 |
|---|---|
static LogHubService |
create() |
com.aliyun.openservices.log.response.PutLogsResponse |
pushLogHub(Map<String,String> data)
单条日志推送
|
com.aliyun.openservices.log.response.PutLogsResponse |
pushLogHub(Map<String,String> data,
String level,
String logData,
Exception throwable)
单条异常日志推送
|
com.aliyun.openservices.log.response.PutLogsResponse |
pushLogHub(Object data)
单条日志推送
|
com.aliyun.openservices.log.response.PutLogsResponse |
pushLogHub(String data)
单条日志推送
|
com.aliyun.openservices.log.response.PutLogsResponse |
pushLogHub(String key,
Object data)
单条日志推送
|
com.aliyun.openservices.log.response.PutLogsResponse |
pushLogHub(String key,
String data)
单条日志推送
|
com.aliyun.openservices.log.response.PutLogsResponse |
pushLogHubBatch(List<Map<String,String>> data)
批量日志推送
|
com.aliyun.openservices.log.response.PutLogsResponse |
pushLogHubListBatch(List<String> data)
批量日志推送
|
com.aliyun.openservices.log.response.PutLogsResponse |
pushLogHubListBatch(String key,
List<String> data)
批量日志推送
|
com.aliyun.openservices.log.response.PutLogsResponse |
pushLogHubListObjectBatch(List<Object> data)
批量日志推送
|
com.aliyun.openservices.log.response.PutLogsResponse |
pushLogHubListObjectBatch(String key,
List<Object> data)
批量日志推送
|
LogHubService |
source(String source)
接收数据
|
LogHubService |
topic(String topic)
接收数据
|
public static LogHubService create()
public LogHubService topic(String topic)
topic - 来源public LogHubService source(String source)
source - 主题public com.aliyun.openservices.log.response.PutLogsResponse pushLogHub(Object data)
data - 数据public com.aliyun.openservices.log.response.PutLogsResponse pushLogHub(String data)
data - 数据public com.aliyun.openservices.log.response.PutLogsResponse pushLogHubListObjectBatch(List<Object> data)
data - 数据public com.aliyun.openservices.log.response.PutLogsResponse pushLogHubListBatch(List<String> data)
data - 数据public com.aliyun.openservices.log.response.PutLogsResponse pushLogHubListObjectBatch(String key, List<Object> data)
key - loghub中数据键,类似于map中的keydata - 数据public com.aliyun.openservices.log.response.PutLogsResponse pushLogHubListBatch(String key, List<String> data)
key - loghub中数据键,类似于map中的keydata - 数据public com.aliyun.openservices.log.response.PutLogsResponse pushLogHub(String key, Object data)
key - loghub中数据键,类似于map中的keydata - 数据public com.aliyun.openservices.log.response.PutLogsResponse pushLogHub(String key, String data)
data - 数据public com.aliyun.openservices.log.response.PutLogsResponse pushLogHub(Map<String,String> data)
data - 数据com.aliyun.openservices.log.exception.LogExceptionpublic com.aliyun.openservices.log.response.PutLogsResponse pushLogHubBatch(List<Map<String,String>> data)
data - 数据com.aliyun.openservices.log.exception.LogExceptionCopyright © 2020 Pivotal Software, Inc.. All rights reserved.