Documentation ¶
Overview ¶
Package alils implements the SDK(v0.5.0) of Simple Log Service(abbr. SLS).
For more description about SLS, please read this article: http://gitlab.alibaba-inc.com/sls/doc.
Index ¶
Constants ¶
View Source
const ( // OffsetNewest stands for the log head offset, i.e. the offset that will be // assigned to the next message that will be produced to the shard. OffsetNewest = "end" // OffsetOldest stands for the oldest offset available on the logstore for a // shard. OffsetOldest = "begin" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InputDetail ¶
type InputDetail struct { LogType string `json:"logType"` LogPath string `json:"logPath"` FilePattern string `json:"filePattern"` LocalStorage bool `json:"localStorage"` TimeFormat string `json:"timeFormat"` LogBeginRegex string `json:"logBeginRegex"` Regex string `json:"regex"` Keys []string `json:"key"` FilterKeys []string `json:"filterKey"` FilterRegex []string `json:"filterRegex"` TopicFormat string `json:"topicFormat"` }
InputDetail define log detail
type LogConfig ¶
type LogConfig struct { Name string `json:"configName"` InputType string `json:"inputType"` InputDetail InputDetail `json:"inputDetail"` OutputType string `json:"outputType"` OutputDetail OutputDetail `json:"outputDetail"` CreateTime uint32 LastModifyTime uint32 }
LogConfig define Log Config
type OutputDetail ¶
type OutputDetail struct { Endpoint string `json:"endpoint"` LogStoreName string `json:"logstoreName"` }
OutputDetail define the output detail
Click to show internal directories.
Click to hide internal directories.