Documentation
¶
Overview ¶
Package sls is a generated protocol buffer package.
It is generated from these files:
sls.proto
It has these top-level messages:
Log LogGroup LogGroupList
Index ¶
- Constants
- type Client
- type Error
- type GroupAttribute
- type IndexConfig
- type IndexKeyConfig
- type IndexLineConfig
- type Log
- type LogGroup
- type LogGroupList
- type Log_Content
- type Logstore
- type LogstoreList
- type LogtailConfig
- type LogtailConfigList
- type LogtailInput
- type LogtailOutput
- type Machine
- type MachineGroup
- type MachineGroupList
- type MachineList
- type Project
- func (proj *Project) ApplyConfigToMachineGroup(machineGroup string, config string) error
- func (proj *Project) CreateConfig(config *LogtailConfig) error
- func (proj *Project) CreateIndex(logstore string, indexConfig *IndexConfig) error
- func (proj *Project) CreateLogstore(logstore *Logstore) error
- func (proj *Project) CreateMachineGroup(machineGroup *MachineGroup) error
- func (proj *Project) DeleteConfig(configName string) error
- func (proj *Project) DeleteIndex(logstore string) error
- func (proj *Project) DeleteLogstore(name string) error
- func (proj *Project) DeleteMachineGroup(name string) error
- func (proj *Project) GetAppliedConfigs(machineGroup string) ([]string, error)
- func (proj *Project) GetAppliedMachineGroups(configName string) ([]string, error)
- func (proj *Project) GetConfig(name string) (*LogtailConfig, error)
- func (proj *Project) GetIndex(logstore string) (*IndexConfig, error)
- func (proj *Project) GetLogstore(name string) (*Logstore, error)
- func (proj *Project) ListConfig(offset, size int) (*LogtailConfigList, error)
- func (proj *Project) ListLogstore() (*LogstoreList, error)
- func (proj *Project) ListMachineGroup(offset, size int) (*MachineGroupList, error)
- func (proj *Project) ListMachines(machineGroup string, offset, size int) (*MachineList, error)
- func (proj *Project) ListShards(logstoreName string) ([]int, error)
- func (proj *Project) MachineGroup(name string) (*MachineGroup, error)
- func (proj *Project) UpdateConfig(config *LogtailConfig) error
- func (proj *Project) UpdateIndex(logstore string, indexConfig *IndexConfig) error
- func (proj *Project) UpdateLogstore(logstore *Logstore) error
- func (proj *Project) UpdateMachineGroup(machineGroup *MachineGroup) error
- type PutLogsRequest
Constants ¶
View Source
const ( SLSDefaultEndpoint = "log.aliyuncs.com" SLSAPIVersion = "0.6.0" METHOD_GET = "GET" METHOD_POST = "POST" METHOD_PUT = "PUT" METHOD_DELETE = "DELETE" )
View Source
const HeaderSLSPrefix1 = "x-log-"
View Source
const HeaderSLSPrefix2 = "x-acs-"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClientWithEndpoint ¶
func (*Client) CreateProject ¶
func (*Client) DeleteProject ¶
func (*Client) PutLogs ¶
func (client *Client) PutLogs(putLogRequest *PutLogsRequest) error
type Error ¶
type GroupAttribute ¶
type IndexConfig ¶
type IndexConfig struct {
TTL int `json:"ttl,omitempty"`
LineConfig IndexLineConfig `json:"line,omitempty"`
KeyConfigList map[string]IndexKeyConfig `json:"keys,omitempty"`
}
type IndexKeyConfig ¶
type IndexLineConfig ¶
type Log ¶
type Log struct {
Time *uint32 `protobuf:"varint,1,req,name=time" json:"time,omitempty"`
Contents []*Log_Content `protobuf:"bytes,2,rep,name=contents" json:"contents,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*Log) Descriptor ¶
func (*Log) GetContents ¶
func (m *Log) GetContents() []*Log_Content
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
type LogGroup ¶
type LogGroup struct {
Logs []*Log `protobuf:"bytes,1,rep,name=logs" json:"logs,omitempty"`
Reserved *string `protobuf:"bytes,2,opt,name=reserved" json:"reserved,omitempty"`
Topic *string `protobuf:"bytes,3,opt,name=topic" json:"topic,omitempty"`
Source *string `protobuf:"bytes,4,opt,name=source" json:"source,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*LogGroup) Descriptor ¶
func (*LogGroup) GetReserved ¶
func (*LogGroup) ProtoMessage ¶
func (*LogGroup) ProtoMessage()
type LogGroupList ¶
type LogGroupList struct {
LogGroupList []*LogGroup `protobuf:"bytes,1,rep,name=logGroupList" json:"logGroupList,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*LogGroupList) Descriptor ¶
func (*LogGroupList) Descriptor() ([]byte, []int)
func (*LogGroupList) GetLogGroupList ¶
func (m *LogGroupList) GetLogGroupList() []*LogGroup
func (*LogGroupList) ProtoMessage ¶
func (*LogGroupList) ProtoMessage()
func (*LogGroupList) Reset ¶
func (m *LogGroupList) Reset()
func (*LogGroupList) String ¶
func (m *LogGroupList) String() string
type Log_Content ¶
type Log_Content struct {
Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
Value *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*Log_Content) Descriptor ¶
func (*Log_Content) Descriptor() ([]byte, []int)
func (*Log_Content) GetKey ¶
func (m *Log_Content) GetKey() string
func (*Log_Content) GetValue ¶
func (m *Log_Content) GetValue() string
func (*Log_Content) ProtoMessage ¶
func (*Log_Content) ProtoMessage()
func (*Log_Content) Reset ¶
func (m *Log_Content) Reset()
func (*Log_Content) String ¶
func (m *Log_Content) String() string
type LogstoreList ¶
type LogtailConfig ¶
type LogtailConfig struct {
Name string `json:"configName,omitempty"`
InputType string `json:"inputType,omitempty"`
InputDetail LogtailInput `json:"inputDetail,omitempty"`
OutputType string `json:"outputType,omitempty"`
Sample string `json:"logSample,omitempty"`
OutputDetail LogtailOutput `json:"outputDetail,omitempty"`
}
type LogtailConfigList ¶
type LogtailInput ¶
type LogtailInput struct {
LogType string `json:"logType,omitempty"`
LogPath string `json:"logPath,omitempty"`
FilePattern string `json:"filePattern,omitempty"`
LocalStorage bool `json:"localStorage"`
TimeFormat string `json:"timeFormat"`
EnableTag bool `json:"enable_tag,omitempty"`
TimeKey string `json:"timeKey"`
LogBeginRegex string `json:"logBeginRegex,omitempty"`
Regex string `json:"regex,omitempty"`
Key []string `json:"key,omitempty"`
FilterKey []string `json:"filterKey,omitempty"`
FilterRegex []string `json:"filterRegex,omitempty"`
TopicFormat string `json:"topicFormat,omitempty"`
}
type LogtailOutput ¶
type LogtailOutput struct {
LogstoreName string `json:"logstoreName,omitempty"`
}
type MachineGroup ¶
type MachineGroup struct {
Name string `json:"groupName,omitempty"`
Type string `json:"groupType,omitempty"`
MachineIdentifyType string `json:"machineIdentifyType,omitempty"`
Attribute *GroupAttribute `json:"attribute,omitempty"`
MachineList []string `json:"machineList,omitempty"`
CreateTime uint32 `json:"createTime,omitempty"`
LastModifyTime uint32 `json:"lastModifyTime,omitempty"`
}
type MachineGroupList ¶
type MachineList ¶
type Project ¶
type Project struct {
Name string `json:"projectName,omitempty"`
Description string `json:"description,omitempty"`
// contains filtered or unexported fields
}
func (*Project) ApplyConfigToMachineGroup ¶
func (*Project) CreateConfig ¶
func (proj *Project) CreateConfig(config *LogtailConfig) error
func (*Project) CreateIndex ¶
func (proj *Project) CreateIndex(logstore string, indexConfig *IndexConfig) error
func (*Project) CreateLogstore ¶
func (*Project) CreateMachineGroup ¶
func (proj *Project) CreateMachineGroup(machineGroup *MachineGroup) error
func (*Project) DeleteConfig ¶
func (*Project) DeleteIndex ¶
func (*Project) DeleteLogstore ¶
func (*Project) DeleteMachineGroup ¶
func (*Project) GetAppliedConfigs ¶
func (*Project) GetAppliedMachineGroups ¶
func (*Project) ListConfig ¶
func (proj *Project) ListConfig(offset, size int) (*LogtailConfigList, error)
func (*Project) ListLogstore ¶
func (proj *Project) ListLogstore() (*LogstoreList, error)
func (*Project) ListMachineGroup ¶
func (proj *Project) ListMachineGroup(offset, size int) (*MachineGroupList, error)
func (*Project) ListMachines ¶
func (proj *Project) ListMachines(machineGroup string, offset, size int) (*MachineList, error)
func (*Project) MachineGroup ¶
func (proj *Project) MachineGroup(name string) (*MachineGroup, error)
func (*Project) UpdateConfig ¶
func (proj *Project) UpdateConfig(config *LogtailConfig) error
func (*Project) UpdateIndex ¶
func (proj *Project) UpdateIndex(logstore string, indexConfig *IndexConfig) error
func (*Project) UpdateLogstore ¶
func (*Project) UpdateMachineGroup ¶
func (proj *Project) UpdateMachineGroup(machineGroup *MachineGroup) error
Click to show internal directories.
Click to hide internal directories.