Documentation ¶
Index ¶
- Variables
- func CreatIndex(ProjectName, LogStoreName string) error
- func CreateLogStore(ProjectName, LogStoreName string) error
- func DeleteLog(ProjectName, LogStoreName string)
- func GetHistograms(ProjectName, LogStoreName string) error
- func GetLogByQueryExp(ProjectName, LogStoreName, topic, QueryExp string, num, offset int64) error
- func PutLogs(ProjectName, LogStoreName, Ip, topic string, logs []*sls.Log) error
- func SendKafka(logsByte []byte)
- type SlsLogFormt
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProjectName = "teams-api" AccessKeyID = config.C.Oss.AccessKeyId AccessKeySecret = config.C.Oss.AccessKeySecret Endpoint = "cn-zhangjiakou.log.aliyuncs.com" // just like cn-hangzhou.log.aliyuncs.com LogStoreName = "api-log-store" Client sls.ClientInterface )
Functions ¶
func CreatIndex ¶
func CreateLogStore ¶
func GetHistograms ¶
func GetLogByQueryExp ¶
Types ¶
type SlsLogFormt ¶
func (SlsLogFormt) PrintLogToSls ¶
func (slsF SlsLogFormt) PrintLogToSls(nowTime int64)
将运行日志写入 阿里云sls 中
Click to show internal directories.
Click to hide internal directories.