Documentation ¶
Index ¶
- Constants
- Variables
- func AddNecessaryApsaraLogInputConfigField(inputConfigDetail map[string]interface{})
- func AddNecessaryDelimiterLogInputConfigField(inputConfigDetail map[string]interface{})
- func AddNecessaryInputConfigField(inputConfigDetail map[string]interface{})
- func AddNecessaryJSONLogInputConfigField(inputConfigDetail map[string]interface{})
- func AddNecessaryLocalFileInputConfigField(inputConfigDetail map[string]interface{})
- func AddNecessaryRegexLogInputConfigField(inputConfigDetail map[string]interface{})
- func BoolPtrToStringNum(b *bool) string
- func BoolToInt64(b bool) int64
- func GenResourceId(project string, subResourceId string) string
- func GenerateInnerLogger(logFileName, isJsonType, logMaxSize, logFileBackupCount, allowLogLevel string) log.Logger
- func GetFileConfigInputDetailType(detail InputDetailInterface) (string, bool)
- func InitApsaraLogConfigInputDetail(detail *ApsaraLogConfigInputDetail)
- func InitCommonConfigInputDetail(detail *CommonConfigInputDetail)
- func InitDelimiterConfigInputDetail(detail *DelimiterConfigInputDetail)
- func InitJSONConfigInputDetail(detail *JSONConfigInputDetail)
- func InitLocalFileConfigInputDetail(detail *LocalFileConfigInputDetail)
- func InitPluginLogConfigInputDetail(detail *PluginLogConfigInputDetail)
- func InitRegexConfigInputDetail(detail *RegexConfigInputDetail)
- func InitStreamLogConfigInputDetail(detail *StreamLogConfigInputDetail)
- func Int64PtrToString(i *int64) string
- func IsDebugLevelMatched(level int) bool
- func IsTokenError(err error) bool
- func IsValidInputType(inputType string) bool
- func JsonMarshal(v interface{}) string
- func ParseHeaderInt(r *http.Response, headerName string) (int, error)
- func Retry(ctx context.Context, o backoff.Operation) error
- func RetryWithAttempt(ctx context.Context, maxAttempt int, o ConditionOperation) error
- func RetryWithBackOff(ctx context.Context, b backoff.BackOff, o backoff.Operation) error
- func RetryWithCondition(ctx context.Context, b backoff.BackOff, o ConditionOperation) error
- func SetZstdCompressor(compressor LogCompressor) error
- func UpdateInputConfigField(detail InputDetailInterface, key string, val interface{}) error
- type Alert
- type AlertConfiguration
- type AlertQuery
- type AliyunBssSource
- type AliyunCloudMonitorSource
- type AliyunGeneralSink
- type AliyunMaxComputeSource
- type AliyunODPSSink
- type AliyunOSSSink
- type AliyunOSSSource
- type ApsaraLogConfigInputDetail
- type AuthVersionType
- type BadResponseError
- type BaseJob
- type Chart
- type ChartDisplay
- type ChartSearch
- type Client
- func (c *Client) ApplyConfigToMachineGroup(project string, confName, groupName string) (err error)
- func (c *Client) CheckConfigExist(project string, config string) (ok bool, err error)
- func (c *Client) CheckLogstoreExist(project string, logstore string) (bool, error)
- func (c *Client) CheckMachineGroupExist(project string, machineGroup string) (bool, error)
- func (c *Client) CheckProjectExist(name string) (bool, error)
- func (c *Client) Close() error
- func (c *Client) CreateAlert(project string, alert *Alert) error
- func (c *Client) CreateAlertString(project string, alert string) error
- func (c *Client) CreateChart(project, dashboardName string, chart Chart) error
- func (c *Client) CreateConfig(project string, config *LogConfig) (err error)
- func (c *Client) CreateConfigString(project string, config string) (err error)
- func (c *Client) CreateConsumerGroup(project, logstore string, cg ConsumerGroup) (err error)
- func (c *Client) CreateDashboard(project string, dashboard Dashboard) error
- func (c *Client) CreateDashboardString(project string, dashboardStr string) error
- func (c *Client) CreateETL(project string, etljob ETL) error
- func (c *Client) CreateEtlMeta(project string, etlMeta *EtlMeta) (err error)
- func (c *Client) CreateEventStore(project string, eventStore *LogStore) error
- func (c *Client) CreateExport(project string, export *Export) error
- func (c *Client) CreateIndex(project, logstore string, index Index) error
- func (c *Client) CreateIndexString(project, logstore string, index string) error
- func (c *Client) CreateIngestion(project string, ingestion *Ingestion) error
- func (c *Client) CreateLogStore(project string, logstore string, ttl, shardCnt int, autoSplit bool, ...) error
- func (c *Client) CreateLogStoreV2(project string, logstore *LogStore) error
- func (c *Client) CreateLogging(project string, detail *Logging) error
- func (c *Client) CreateMachineGroup(project string, m *MachineGroup) error
- func (c *Client) CreateMetricAggRules(project string, aggRules *MetricAggRules) error
- func (c *Client) CreateMetricStore(project string, metricStore *LogStore) error
- func (c *Client) CreateProject(name, description string) (*LogProject, error)
- func (c *Client) CreateProjectV2(name, description, dataRedundancyType string) (*LogProject, error)
- func (c *Client) CreateResource(resource *Resource) error
- func (c *Client) CreateResourceRecord(resourceName string, record *ResourceRecord) error
- func (c *Client) CreateResourceRecordString(resourceName, recordStr string) error
- func (c *Client) CreateResourceString(resourceStr string) error
- func (c *Client) CreateSavedSearch(project string, savedSearch *SavedSearch) error
- func (c *Client) CreateScheduledSQL(project string, scheduledsql *ScheduledSQL) error
- func (c *Client) CreateStoreView(project string, storeView *StoreView) error
- func (c *Client) CreateSubStore(project, logstore string, sss *SubStore) (err error)
- func (c *Client) DeleteAlert(project string, alertName string) error
- func (c *Client) DeleteChart(project, dashboardName, chartName string) error
- func (c *Client) DeleteConfig(project string, config string) (err error)
- func (c *Client) DeleteConsumerGroup(project, logstore string, cgName string) (err error)
- func (c *Client) DeleteDashboard(project, name string) error
- func (c *Client) DeleteETL(project string, etlName string) error
- func (c *Client) DeleteEtlMeta(project string, etlMetaName, etlMetaKey string) (err error)
- func (c *Client) DeleteEventStore(project, name string) error
- func (c *Client) DeleteExport(project string, name string) error
- func (c *Client) DeleteIndex(project, logstore string) error
- func (c *Client) DeleteIngestion(project string, name string) error
- func (c *Client) DeleteLogStore(project string, logstore string) (err error)
- func (c *Client) DeleteLogging(project string) error
- func (c *Client) DeleteMachineGroup(project string, machineGroup string) (err error)
- func (c *Client) DeleteMetricAggRules(project string, ruleID string) error
- func (c *Client) DeleteMetricStore(project, name string) error
- func (c *Client) DeleteProject(name string) error
- func (c *Client) DeleteProjectPolicy(project string) error
- func (c *Client) DeleteResource(name string) error
- func (c *Client) DeleteResourceRecord(resourceName, recordId string) error
- func (c *Client) DeleteSavedSearch(project string, savedSearchName string) error
- func (c *Client) DeleteScheduledSQL(project string, name string) error
- func (c *Client) DeleteStoreView(project string, storeViewName string) error
- func (c *Client) DeleteSubStore(project, logstore string, name string) (err error)
- func (c *Client) DisableAlert(project string, alertName string) error
- func (c *Client) EnableAlert(project string, alertName string) error
- func (c *Client) GetAlert(project string, alertName string) (*Alert, error)
- func (c *Client) GetAlertString(project string, alertName string) (string, error)
- func (c *Client) GetAppliedConfigs(project string, groupName string) (confNames []string, err error)
- func (c *Client) GetAppliedMachineGroups(project string, confName string) (groupNames []string, err error)
- func (c *Client) GetChart(project, dashboardName, chartName string) (chart *Chart, err error)
- func (c *Client) GetCheckpoint(project, logstore string, cgName string) (checkPointList []*ConsumerGroupCheckPoint, err error)
- func (c *Client) GetConfig(project string, config string) (logConfig *LogConfig, err error)
- func (c *Client) GetConfigString(project string, config string) (logConfig string, err error)
- func (c *Client) GetCursor(project, logstore string, shardID int, from string) (cursor string, err error)
- func (c *Client) GetCursorTime(project, logstore string, shardID int, cursor string) (cursorTime time.Time, err error)
- func (c *Client) GetDashboard(project, name string) (dashboard *Dashboard, err error)
- func (c *Client) GetDashboardString(project, name string) (dashboard string, err error)
- func (c *Client) GetETL(project string, etlName string) (ETLJob *ETL, err error)
- func (c *Client) GetEtlMeta(project string, etlMetaName, etlMetaKey string) (etlMeta *EtlMeta, err error)
- func (c *Client) GetEventStore(project, name string) (*LogStore, error)
- func (c *Client) GetExport(project, name string) (*Export, error)
- func (c *Client) GetHistograms(project, logstore string, topic string, from int64, to int64, queryExp string) (*GetHistogramsResponse, error)
- func (c *Client) GetHistogramsToCompleted(project, logstore string, topic string, from int64, to int64, queryExp string) (*GetHistogramsResponse, error)
- func (c *Client) GetIndex(project, logstore string) (*Index, error)
- func (c *Client) GetIndexString(project, logstore string) (string, error)
- func (c *Client) GetIngestion(project string, name string) (*Ingestion, error)
- func (c *Client) GetLogLines(project, logstore string, topic string, from int64, to int64, queryExp string, ...) (*GetLogLinesResponse, error)
- func (c *Client) GetLogLinesByNano(project, logstore string, topic string, fromInNs int64, toInNs int64, ...) (*GetLogLinesResponse, error)
- func (c *Client) GetLogLinesV2(project, logstore string, req *GetLogRequest) (*GetLogLinesResponse, error)
- func (c *Client) GetLogStore(project string, logstore string) (*LogStore, error)
- func (c *Client) GetLogStoreMeteringMode(project string, logstore string) (*GetMeteringModeResponse, error)
- func (c *Client) GetLogging(project string) (*Logging, error)
- func (c *Client) GetLogs(project, logstore string, topic string, from int64, to int64, queryExp string, ...) (*GetLogsResponse, error)
- func (c *Client) GetLogsByNano(project, logstore string, topic string, fromInNs int64, toInNs int64, ...) (*GetLogsResponse, error)
- func (c *Client) GetLogsBytes(project, logstore string, shardID int, cursor, endCursor string, ...) (out []byte, nextCursor string, err error)
- func (c *Client) GetLogsBytesV2(plr *PullLogRequest) (out []byte, nextCursor string, err error)
- func (c *Client) GetLogsBytesWithQuery(plr *PullLogRequest) (out []byte, plm *PullLogMeta, err error)
- func (c *Client) GetLogsToCompleted(project, logstore string, topic string, from int64, to int64, queryExp string, ...) (*GetLogsResponse, error)
- func (c *Client) GetLogsToCompletedV2(project, logstore string, req *GetLogRequest) (*GetLogsResponse, error)
- func (c *Client) GetLogsToCompletedV3(project, logstore string, req *GetLogRequest) (*GetLogsV3Response, error)
- func (c *Client) GetLogsV2(project, logstore string, req *GetLogRequest) (*GetLogsResponse, error)
- func (c *Client) GetLogsV3(project, logstore string, req *GetLogRequest) (*GetLogsV3Response, error)
- func (c *Client) GetMachineGroup(project string, machineGroup string) (m *MachineGroup, err error)
- func (c *Client) GetMetricAggRules(project string, ruleID string) (*MetricAggRules, error)
- func (c *Client) GetMetricStore(project, name string) (*LogStore, error)
- func (c *Client) GetPrevCursorTime(project, logstore string, shardID int, cursor string) (cursorTime time.Time, err error)
- func (c *Client) GetProject(name string) (*LogProject, error)
- func (c *Client) GetProjectPolicy(project string) (policy string, err error)
- func (c *Client) GetResource(name string) (resource *Resource, err error)
- func (c *Client) GetResourceRecord(resourceName, recordId string) (record *ResourceRecord, err error)
- func (c *Client) GetResourceRecordString(resourceName, recordId string) (recordStr string, err error)
- func (c *Client) GetResourceString(name string) (resource string, err error)
- func (c *Client) GetSavedSearch(project string, savedSearchName string) (*SavedSearch, error)
- func (c *Client) GetScheduledSQL(project string, name string) (*ScheduledSQL, error)
- func (c *Client) GetScheduledSQLJobInstance(projectName, jobName, instanceId string, result bool) (*ScheduledSQLJobInstance, error)
- func (c *Client) GetStoreView(project string, storeViewName string) (*StoreView, error)
- func (c *Client) GetStoreViewIndex(project string, storeViewName string) (*GetStoreViewIndexResponse, error)
- func (c *Client) GetSubStore(project, logstore, name string) (sortedSubStore *SubStore, err error)
- func (c *Client) GetSubStoreTTL(project, logstore string) (ttl int, err error)
- func (c *Client) HeartBeat(project, logstore string, cgName, consumer string, heartBeatShardIDs []int) (shardIDs []int, err error)
- func (c *Client) ListAlert(project, alertName, dashboard string, offset, size int) (alerts []*Alert, total int, count int, err error)
- func (c *Client) ListConfig(project string, offset, size int) (cfgNames []string, total int, err error)
- func (c *Client) ListConsumerGroup(project, logstore string) (cgList []*ConsumerGroup, err error)
- func (c *Client) ListDashboard(project string, dashboardName string, offset, size int) (dashboardList []string, count, total int, err error)
- func (c *Client) ListDashboardV2(project string, dashboardName string, offset, size int) (dashboardList []string, dashboardItems []ResponseDashboardItem, ...)
- func (c *Client) ListETL(project string, offset int, size int) (*ListETLResponse, error)
- func (c *Client) ListEtlMeta(project string, etlMetaName string, offset, size int) (total int, count int, etlMetaList []*EtlMeta, err error)
- func (c *Client) ListEtlMetaName(project string, offset, size int) (total int, count int, etlMetaNameList []string, err error)
- func (c *Client) ListEtlMetaWithTag(project string, etlMetaName, etlMetaTag string, offset, size int) (total int, count int, etlMetaList []*EtlMeta, err error)
- func (c *Client) ListEventStore(project string, offset, size int) ([]string, error)
- func (c *Client) ListExport(project, logstore, name, displayName string, offset, size int) (exports []*Export, total, count int, error error)
- func (c *Client) ListIngestion(project, logstore, name, displayName string, offset, size int) (ingestions []*Ingestion, total, count int, error error)
- func (c *Client) ListLogStore(project string) ([]string, error)
- func (c *Client) ListLogStoreV2(project string, offset, size int, telemetryType string) ([]string, error)
- func (c *Client) ListMachineGroup(project string, offset, size int) (m []string, total int, err error)
- func (c *Client) ListMachines(project, machineGroupName string) (ms []*Machine, total int, err error)
- func (c *Client) ListMachinesV2(project, machineGroupName string, offset, size int) (ms []*Machine, total int, err error)
- func (c *Client) ListMetricAggRules(project string, offset int, size int) ([]*MetricAggRules, error)
- func (c *Client) ListProject() (projectNames []string, err error)
- func (c *Client) ListProjectV2(offset, size int) (projects []LogProject, count, total int, err error)
- func (c *Client) ListResource(resourceType string, resourceName string, offset, size int) (resourceList []*Resource, count, total int, err error)
- func (c *Client) ListResourceRecord(resourceName string, offset, size int) (recordList []*ResourceRecord, count, total int, err error)
- func (c *Client) ListSavedSearch(project string, savedSearchName string, offset, size int) (savedSearches []string, total int, count int, err error)
- func (c *Client) ListSavedSearchV2(project string, savedSearchName string, offset, size int) (savedSearches []string, savedsearchItems []ResponseSavedSearchItem, total int, ...)
- func (c *Client) ListScheduledSQL(project, name, displayName string, offset, size int) (scheduledsqls []*ScheduledSQL, total, count int, error error)
- func (c *Client) ListScheduledSQLJobInstances(projectName, jobName string, status *InstanceStatus) (instances []*ScheduledSQLJobInstance, total, count int64, err error)
- func (c *Client) ListShards(project, logstore string) (shardIDs []*Shard, err error)
- func (c *Client) ListStoreViews(project string, req *ListStoreViewsRequest) (*ListStoreViewsResponse, error)
- func (c *Client) ListSubStore(project, logstore string) (sortedSubStores []string, err error)
- func (c *Client) ListSystemTagResources(project string, resourceType string, resourceIDs []string, ...) (respTags []*ResourceTagResponse, respNextToken string, err error)
- func (c *Client) ListTagResources(project string, resourceType string, resourceIDs []string, ...) (respTags []*ResourceTagResponse, respNextToken string, err error)
- func (c *Client) MergeShards(project, logstore string, shardID int) (shards []*Shard, err error)
- func (c *Client) ModifyScheduledSQLJobInstanceState(projectName, jobName, instanceId string, state ScheduledSQLState) error
- func (c *Client) PostLogStoreLogs(project, logstore string, lg *LogGroup, hashKey *string) (err error)
- func (c *Client) PostLogStoreLogsV2(project, logstore string, req *PostLogStoreLogsRequest) (err error)
- func (c *Client) PostRawLogWithCompressType(project, logstore string, rawLogData []byte, compressType int, hashKey *string) (err error)
- func (c *Client) PublishAlertEvent(project string, alertResult []byte) error
- func (c *Client) PullLogs(project, logstore string, shardID int, cursor, endCursor string, ...) (gl *LogGroupList, nextCursor string, err error)
- func (c *Client) PullLogsV2(plr *PullLogRequest) (gl *LogGroupList, nextCursor string, err error)
- func (c *Client) PullLogsWithQuery(plr *PullLogRequest) (gl *LogGroupList, plm *PullLogMeta, err error)
- func (c *Client) PutLogs(project, logstore string, lg *LogGroup) (err error)
- func (c *Client) PutLogsWithCompressType(project, logstore string, lg *LogGroup, compressType int) (err error)
- func (c *Client) PutLogsWithMetricStoreURL(project, logstore string, lg *LogGroup) (err error)
- func (c *Client) PutRawLogWithCompressType(project, logstore string, rawLogData []byte, compressType int) (err error)
- func (c *Client) RemoveConfigFromMachineGroup(project string, confName, groupName string) (err error)
- func (c *Client) ResetAccessKeyToken(accessKeyID, accessKeySecret, securityToken string)
- func (c *Client) RestartETL(project string, etljob ETL) error
- func (c *Client) RestartExport(project string, export *Export) error
- func (c *Client) SetAuthVersion(version AuthVersionType)
- func (c *Client) SetHTTPClient(client *http.Client)
- func (c *Client) SetRegion(region string)
- func (c *Client) SetRetryTimeout(timeout time.Duration)
- func (c *Client) SetUserAgent(userAgent string)
- func (c *Client) SplitNumShard(project, logstore string, shardID, shardsNum int) (shards []*Shard, err error)
- func (c *Client) SplitShard(project, logstore string, shardID int, splitKey string) (shards []*Shard, err error)
- func (c *Client) StartETL(project, name string) error
- func (c *Client) StopETL(project, name string) error
- func (c *Client) TagResources(project string, tags *ResourceTags) error
- func (c *Client) TagResourcesSystemTags(project string, tags *ResourceSystemTags) error
- func (c *Client) UnTagResources(project string, tags *ResourceUnTags) error
- func (c *Client) UnTagResourcesSystemTags(project string, tags *ResourceUnSystemTags) error
- func (c *Client) UpdateAlert(project string, alert *Alert) error
- func (c *Client) UpdateAlertString(project string, alertName, alert string) error
- func (c *Client) UpdateChart(project, dashboardName string, chart Chart) error
- func (c *Client) UpdateCheckpoint(project, logstore string, cgName string, consumer string, shardID int, ...) (err error)
- func (c *Client) UpdateConfig(project string, config *LogConfig) (err error)
- func (c *Client) UpdateConfigString(project string, configName, configDetail string) (err error)
- func (c *Client) UpdateConsumerGroup(project, logstore string, cg ConsumerGroup) (err error)
- func (c *Client) UpdateDashboard(project string, dashboard Dashboard) error
- func (c *Client) UpdateDashboardString(project string, dashboardName, dashboardStr string) error
- func (c *Client) UpdateETL(project string, etljob ETL) error
- func (c *Client) UpdateEtlMeta(project string, etlMeta *EtlMeta) (err error)
- func (c *Client) UpdateEventStore(project string, eventStore *LogStore) error
- func (c *Client) UpdateExport(project string, export *Export) error
- func (c *Client) UpdateIndex(project, logstore string, index Index) error
- func (c *Client) UpdateIndexString(project, logstore string, index string) error
- func (c *Client) UpdateIngestion(project string, ingestion *Ingestion) error
- func (c *Client) UpdateLogStore(project string, logstore string, ttl, shardCnt int) (err error)
- func (c *Client) UpdateLogStoreMeteringMode(project string, logstore string, meteringMode string) error
- func (c *Client) UpdateLogStoreV2(project string, logstore *LogStore) (err error)
- func (c *Client) UpdateLogging(project string, detail *Logging) error
- func (c *Client) UpdateMachineGroup(project string, m *MachineGroup) (err error)
- func (c *Client) UpdateMetricAggRules(project string, aggRules *MetricAggRules) error
- func (c *Client) UpdateMetricStore(project string, metricStore *LogStore) error
- func (c *Client) UpdateProject(name, description string) (*LogProject, error)
- func (c *Client) UpdateProjectPolicy(project string, policy string) error
- func (c *Client) UpdateResource(resource *Resource) error
- func (c *Client) UpdateResourceRecord(resourceName string, record *ResourceRecord) error
- func (c *Client) UpdateResourceRecordString(resourceName, recordStr string) error
- func (c *Client) UpdateResourceString(resourceName, resourceStr string) error
- func (c *Client) UpdateSavedSearch(project string, savedSearch *SavedSearch) error
- func (c *Client) UpdateScheduledSQL(project string, scheduledsql *ScheduledSQL) error
- func (c *Client) UpdateStoreView(project string, storeView *StoreView) error
- func (c *Client) UpdateSubStore(project, logstore string, sss *SubStore) (err error)
- func (c *Client) UpdateSubStoreTTL(project, logstore string, ttl int) (err error)
- func (c *Client) WithCredentialsProvider(provider CredentialsProvider) *Client
- type ClientInterface
- func CreateNormalInterface(endpoint, accessKeyID, accessKeySecret, securityToken string) ClientInterfacedeprecated
- func CreateNormalInterfaceV2(endpoint string, credentialsProvider CredentialsProvider) ClientInterface
- func CreateTokenAutoUpdateClient(endpoint string, tokenUpdateFunc UpdateTokenFunction, shutdown <-chan struct{}) (client ClientInterface, err error)deprecated
- type Column
- type ColumnStorageContentDetail
- type CommonConfigInputDetail
- type ConditionConfiguration
- type ConditionOperation
- type ConfigPluginCanal
- type ConfigPluginDockerStdout
- type ConsumerGroup
- type ConsumerGroupCheckPoint
- type Credentials
- type CredentialsFetcher
- type CredentialsProvider
- type CsvContentDetail
- type Dashboard
- type DataFormat
- type DataSink
- type DataSinkType
- type DataSource
- type DataSourceType
- type DelimitedTextFormat
- type DelimiterConfigInputDetail
- type ETL
- type ETLConfiguration
- type ETLJob
- type ETLSchedule
- type ETLSink
- type EncryptConf
- type EncryptUserCmkConf
- type Error
- type EtlMeta
- type Export
- type ExportConfiguration
- type ExportVersion
- type FunctionConfig
- type GetContextLogsResponse
- type GetHistogramsResponse
- type GetLogLinesResponse
- type GetLogRequest
- type GetLogsResponse
- type GetLogsV3Response
- type GetLogsV3ResponseMeta
- type GetMeteringModeResponse
- type GetStoreViewIndexResponse
- type GlobalConfig
- type GroupConfiguration
- type Index
- type IndexKey
- type IndexLine
- type Ingestion
- type IngestionConfiguration
- type IngestionGeneralSource
- type InputDetail
- type InputDetailInterface
- type InstanceStatus
- type JSONConfigInputDetail
- type JSONFormat
- type JobLogConfig
- type JobType
- type JoinConfiguration
- type JsonContentDetail
- type JsonKey
- type KafkaPosition
- type KafkaSource
- type KafkaValueType
- type LineFormat
- type ListETLResponse
- type ListStoreViewsRequest
- type ListStoreViewsResponse
- type LocalFileConfigInputDetail
- type Log
- func (*Log) Descriptor() ([]byte, []int)
- func (m *Log) GetContents() []*LogContent
- func (m *Log) GetTime() uint32
- func (m *Log) GetTimeNs() uint32
- func (m *Log) Marshal() (dAtA []byte, err error)
- func (m *Log) MarshalTo(dAtA []byte) (int, error)
- func (m *Log) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Log) ProtoMessage()
- func (m *Log) Reset()
- func (m *Log) Size() (n int)
- func (m *Log) String() string
- func (m *Log) Unmarshal(dAtA []byte) error
- func (m *Log) XXX_DiscardUnknown()
- func (m *Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Log) XXX_Merge(src proto.Message)
- func (m *Log) XXX_Size() int
- func (m *Log) XXX_Unmarshal(b []byte) error
- type LogCompressor
- type LogConfig
- type LogConfigPluginInput
- type LogContent
- func (*LogContent) Descriptor() ([]byte, []int)
- func (m *LogContent) GetKey() string
- func (m *LogContent) GetValue() string
- func (m *LogContent) Marshal() (dAtA []byte, err error)
- func (m *LogContent) MarshalTo(dAtA []byte) (int, error)
- func (m *LogContent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LogContent) ProtoMessage()
- func (m *LogContent) Reset()
- func (m *LogContent) Size() (n int)
- func (m *LogContent) String() string
- func (m *LogContent) Unmarshal(dAtA []byte) error
- func (m *LogContent) XXX_DiscardUnknown()
- func (m *LogContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogContent) XXX_Merge(src proto.Message)
- func (m *LogContent) XXX_Size() int
- func (m *LogContent) XXX_Unmarshal(b []byte) error
- type LogGroup
- func (*LogGroup) Descriptor() ([]byte, []int)
- func (m *LogGroup) GetCategory() string
- func (m *LogGroup) GetLogTags() []*LogTag
- func (m *LogGroup) GetLogs() []*Log
- func (m *LogGroup) GetMachineUUID() string
- func (m *LogGroup) GetSource() string
- func (m *LogGroup) GetTopic() string
- func (m *LogGroup) Marshal() (dAtA []byte, err error)
- func (m *LogGroup) MarshalTo(dAtA []byte) (int, error)
- func (m *LogGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LogGroup) ProtoMessage()
- func (m *LogGroup) Reset()
- func (m *LogGroup) Size() (n int)
- func (m *LogGroup) String() string
- func (m *LogGroup) Unmarshal(dAtA []byte) error
- func (m *LogGroup) XXX_DiscardUnknown()
- func (m *LogGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogGroup) XXX_Merge(src proto.Message)
- func (m *LogGroup) XXX_Size() int
- func (m *LogGroup) XXX_Unmarshal(b []byte) error
- type LogGroupList
- func (*LogGroupList) Descriptor() ([]byte, []int)
- func (m *LogGroupList) GetLogGroups() []*LogGroup
- func (m *LogGroupList) Marshal() (dAtA []byte, err error)
- func (m *LogGroupList) MarshalTo(dAtA []byte) (int, error)
- func (m *LogGroupList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LogGroupList) ProtoMessage()
- func (m *LogGroupList) Reset()
- func (m *LogGroupList) Size() (n int)
- func (m *LogGroupList) String() string
- func (m *LogGroupList) Unmarshal(dAtA []byte) error
- func (m *LogGroupList) XXX_DiscardUnknown()
- func (m *LogGroupList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogGroupList) XXX_Merge(src proto.Message)
- func (m *LogGroupList) XXX_Size() int
- func (m *LogGroupList) XXX_Unmarshal(b []byte) error
- type LogProject
- func (p *LogProject) ApplyConfigToMachineGroup(confName, groupName string) (err error)
- func (p *LogProject) CheckConfigExist(name string) (bool, error)
- func (p *LogProject) CheckLogstoreExist(name string) (bool, error)
- func (p *LogProject) CheckMachineGroupExist(name string) (bool, error)
- func (p *LogProject) CreateConfig(c *LogConfig) (err error)
- func (p *LogProject) CreateConfigString(c string) (err error)
- func (p *LogProject) CreateETLJob(j *ETLJob) error
- func (p *LogProject) CreateEtlMeta(etlMeta *EtlMeta) (err error)
- func (p *LogProject) CreateLogStore(name string, ttl, shardCnt int, autoSplit bool, maxSplitShard int) error
- func (p *LogProject) CreateLogStoreV2(logstore *LogStore) error
- func (p *LogProject) CreateLogging(detail *Logging) (err error)
- func (p *LogProject) CreateMachineGroup(m *MachineGroup) error
- func (p *LogProject) DeleteConfig(name string) (err error)
- func (p *LogProject) DeleteETLJob(name string) error
- func (p *LogProject) DeleteEtlMeta(etlMetaName, etlMetaKey string) (err error)
- func (p *LogProject) DeleteLogStore(name string) (err error)
- func (p *LogProject) DeleteLogging() (err error)
- func (p *LogProject) DeleteMachineGroup(name string) (err error)
- func (p *LogProject) GetAppliedConfigs(groupName string) (confNames []string, err error)
- func (p *LogProject) GetAppliedMachineGroups(confName string) (groupNames []string, err error)
- func (p *LogProject) GetConfig(name string) (c *LogConfig, err error)
- func (p *LogProject) GetConfigString(name string) (c string, err error)
- func (p *LogProject) GetETLJob(name string) (*ETLJob, error)
- func (p *LogProject) GetEtlMeta(etlMetaName, etlMetaKey string) (etlMeta *EtlMeta, err error)
- func (p *LogProject) GetLogStore(name string) (*LogStore, error)
- func (p *LogProject) GetLogging() (c *Logging, err error)
- func (p *LogProject) GetMachineGroup(name string) (m *MachineGroup, err error)
- func (p *LogProject) ListConfig(offset, size int) (cfgNames []string, total int, err error)
- func (p *LogProject) ListETLJobs() ([]string, error)
- func (p *LogProject) ListEtlMeta(etlMetaName string, offset, size int) (total int, count int, etlMetaList []*EtlMeta, err error)
- func (p *LogProject) ListEtlMetaName(offset, size int) (total int, count int, etlMetaNameList []string, err error)
- func (p *LogProject) ListEtlMetaWithTag(etlMetaName, etlMetaTag string, offset, size int) (total int, count int, etlMetaList []*EtlMeta, err error)
- func (p *LogProject) ListLogStore() ([]string, error)
- func (p *LogProject) ListLogStoreV2(offset, size int, telemetryType string) ([]string, error)
- func (p *LogProject) ListMachineGroup(offset, size int) (m []string, total int, err error)
- func (p *LogProject) RawRequest(method, uri string, headers map[string]string, body []byte) (*http.Response, error)
- func (p *LogProject) RemoveConfigFromMachineGroup(confName, groupName string) (err error)
- func (p *LogProject) UpdateConfig(c *LogConfig) (err error)
- func (p *LogProject) UpdateConfigString(configName, c string) (err error)
- func (p *LogProject) UpdateETLJob(name string, job *ETLJob) error
- func (p *LogProject) UpdateEtlMeta(etlMeta *EtlMeta) (err error)
- func (p *LogProject) UpdateLogStore(name string, ttl, shardCnt int) (err error)
- func (p *LogProject) UpdateLogStoreV2(logstore *LogStore) (err error)
- func (p *LogProject) UpdateLogging(detail *Logging) (err error)
- func (p *LogProject) UpdateMachineGroup(m *MachineGroup) (err error)
- func (p *LogProject) WithCredentialsProvider(provider CredentialsProvider) *LogProject
- func (p *LogProject) WithRequestTimeout(timeout time.Duration) *LogProject
- func (p *LogProject) WithRetryTimeout(timeout time.Duration) *LogProject
- func (p *LogProject) WithToken(token string) (*LogProject, error)
- type LogStore
- func (s *LogStore) CheckIndexExist() (bool, error)
- func (s *LogStore) CreateIndex(index Index) error
- func (s *LogStore) CreateIndexString(indexStr string) error
- func (s *LogStore) CreateShipper(shipper *Shipper) error
- func (s *LogStore) DeleteIndex() error
- func (s *LogStore) DeleteShipper(shipperName string) error
- func (s *LogStore) GetContextLogs(backLines int32, forwardLines int32, packID string, packMeta string) (*GetContextLogsResponse, error)
- func (s *LogStore) GetCursor(shardID int, from string) (cursor string, err error)
- func (s *LogStore) GetHistograms(topic string, from int64, to int64, queryExp string) (*GetHistogramsResponse, error)
- func (s *LogStore) GetHistogramsToCompleted(topic string, from int64, to int64, queryExp string) (*GetHistogramsResponse, error)
- func (s *LogStore) GetIndex() (*Index, error)
- func (s *LogStore) GetIndexString() (string, error)
- func (s *LogStore) GetLogLines(topic string, from int64, to int64, queryExp string, maxLineNum int64, ...) (*GetLogLinesResponse, error)
- func (s *LogStore) GetLogLinesByNano(topic string, fromInNS int64, toInNs int64, queryExp string, maxLineNum int64, ...) (*GetLogLinesResponse, error)
- func (s *LogStore) GetLogLinesV2(req *GetLogRequest) (*GetLogLinesResponse, error)
- func (s *LogStore) GetLogs(topic string, from int64, to int64, queryExp string, maxLineNum int64, ...) (*GetLogsResponse, error)
- func (s *LogStore) GetLogsByNano(topic string, fromInNS int64, toInNs int64, queryExp string, maxLineNum int64, ...) (*GetLogsResponse, error)
- func (s *LogStore) GetLogsBytes(shardID int, cursor, endCursor string, logGroupMaxCount int) (out []byte, nextCursor string, err error)
- func (s *LogStore) GetLogsBytesV2(plr *PullLogRequest) ([]byte, string, error)deprecated
- func (s *LogStore) GetLogsBytesWithQuery(plr *PullLogRequest) ([]byte, *PullLogMeta, error)
- func (s *LogStore) GetLogsToCompleted(topic string, from int64, to int64, queryExp string, maxLineNum int64, ...) (*GetLogsResponse, error)
- func (s *LogStore) GetLogsToCompletedV2(req *GetLogRequest) (*GetLogsResponse, error)
- func (s *LogStore) GetLogsToCompletedV3(req *GetLogRequest) (*GetLogsV3Response, error)
- func (s *LogStore) GetLogsV2(req *GetLogRequest) (*GetLogsResponse, error)
- func (s *LogStore) GetLogsV3(req *GetLogRequest) (*GetLogsV3Response, error)
- func (s *LogStore) GetMeteringMode() (*GetMeteringModeResponse, error)
- func (s *LogStore) GetShipper(shipperName string) (*Shipper, error)
- func (s *LogStore) ListShards() (shardIDs []*Shard, err error)
- func (s *LogStore) ListShipper() ([]string, error)
- func (s *LogStore) PostLogStoreLogs(lg *LogGroup, hashKey *string) (err error)
- func (s *LogStore) PostRawLogs(body []byte, hashKey *string) (err error)
- func (s *LogStore) PullLogs(shardID int, cursor, endCursor string, logGroupMaxCount int) (gl *LogGroupList, nextCursor string, err error)
- func (s *LogStore) PullLogsV2(plr *PullLogRequest) (*LogGroupList, string, error)deprecated
- func (s *LogStore) PullLogsWithQuery(plr *PullLogRequest) (gl *LogGroupList, plm *PullLogMeta, err error)
- func (s *LogStore) PutLogs(lg *LogGroup) (err error)
- func (s *LogStore) PutRawLog(rawLogData []byte) (err error)
- func (s *LogStore) SetPutLogCompressType(compressType int) error
- func (s *LogStore) UpdateIndex(index Index) error
- func (s *LogStore) UpdateIndexString(indexStr string) error
- func (s *LogStore) UpdateMeteringMode(meteringMode string) error
- func (s *LogStore) UpdateShipper(shipper *Shipper) error
- type LogTag
- func (*LogTag) Descriptor() ([]byte, []int)
- func (m *LogTag) GetKey() string
- func (m *LogTag) GetValue() string
- func (m *LogTag) Marshal() (dAtA []byte, err error)
- func (m *LogTag) MarshalTo(dAtA []byte) (int, error)
- func (m *LogTag) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LogTag) ProtoMessage()
- func (m *LogTag) Reset()
- func (m *LogTag) Size() (n int)
- func (m *LogTag) String() string
- func (m *LogTag) Unmarshal(dAtA []byte) error
- func (m *LogTag) XXX_DiscardUnknown()
- func (m *LogTag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogTag) XXX_Merge(src proto.Message)
- func (m *LogTag) XXX_Size() int
- func (m *LogTag) XXX_Unmarshal(b []byte) error
- type Logging
- type LoggingDetail
- type MachinGroupAttribute
- type Machine
- type MachineGroup
- type MachineList
- type MetaTerm
- type MetricAggRuleItem
- type MetricAggRules
- type MultiLineFormat
- type Notification
- type OSSCompressionType
- type OSSContentType
- type OSSDataFormat
- type OSSDataFormatType
- type OSSShipperConfig
- type OrcContentDetail
- type OssStorageJsonDetail
- type OssStoreageCsvDetail
- type OssStoreageParquet
- type OutputDetail
- type ParquetConfig
- type ParquetContentDetail
- type ParquetFormat
- type PhraseQueryInfoV2
- type PhraseQueryInfoV3
- type PluginInputItem
- type PluginInterface
- type PluginLogConfigInputDetail
- type PolicyConfiguration
- type PostLogStoreLogsRequest
- type PowerSqlMode
- type PullLogMeta
- type PullLogRequest
- type QueryInfoV2
- type RegexConfigInputDetail
- type Resource
- type ResourceActionPolicy
- type ResourceAlertPolicy
- type ResourceContentTemplate
- type ResourceFilterTag
- type ResourcePool
- type ResourceRecord
- type ResourceSchema
- type ResourceSchemaItem
- type ResourceSystemTags
- type ResourceTag
- type ResourceTagResponse
- type ResourceTags
- type ResourceTemplate
- type ResourceTemplates
- type ResourceUnSystemTags
- type ResourceUnTags
- type ResourceUser
- type ResourceUserGroup
- type ResourceWebhookHeader
- type ResponseDashboardItem
- type ResponseSavedSearchItem
- type S3Source
- type SavedSearch
- type Schedule
- type ScheduledJob
- type ScheduledSQL
- type ScheduledSQLConfiguration
- type ScheduledSQLJobInstance
- type ScheduledSQLParameters
- type ScheduledSQLState
- type SensitiveKey
- type Severity
- type SeverityConfiguration
- type Shard
- type Shipper
- type ShipperStorage
- type Signer
- type SignerV0
- type SignerV1
- type SignerV4
- type SingleHistogram
- type SinkAlerthubConfiguration
- type SinkCmsConfiguration
- type SinkEventStoreConfiguration
- type SlsLogPackage
- func (*SlsLogPackage) Descriptor() ([]byte, []int)
- func (m *SlsLogPackage) GetData() []byte
- func (m *SlsLogPackage) GetUncompressSize() int32
- func (m *SlsLogPackage) Marshal() (dAtA []byte, err error)
- func (m *SlsLogPackage) MarshalTo(dAtA []byte) (int, error)
- func (m *SlsLogPackage) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SlsLogPackage) ProtoMessage()
- func (m *SlsLogPackage) Reset()
- func (m *SlsLogPackage) Size() (n int)
- func (m *SlsLogPackage) String() string
- func (m *SlsLogPackage) Unmarshal(dAtA []byte) error
- func (m *SlsLogPackage) XXX_DiscardUnknown()
- func (m *SlsLogPackage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SlsLogPackage) XXX_Merge(src proto.Message)
- func (m *SlsLogPackage) XXX_Size() int
- func (m *SlsLogPackage) XXX_Unmarshal(b []byte) error
- type SlsLogPackageList
- func (*SlsLogPackageList) Descriptor() ([]byte, []int)
- func (m *SlsLogPackageList) GetPackages() []*SlsLogPackage
- func (m *SlsLogPackageList) Marshal() (dAtA []byte, err error)
- func (m *SlsLogPackageList) MarshalTo(dAtA []byte) (int, error)
- func (m *SlsLogPackageList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SlsLogPackageList) ProtoMessage()
- func (m *SlsLogPackageList) Reset()
- func (m *SlsLogPackageList) Size() (n int)
- func (m *SlsLogPackageList) String() string
- func (m *SlsLogPackageList) Unmarshal(dAtA []byte) error
- func (m *SlsLogPackageList) XXX_DiscardUnknown()
- func (m *SlsLogPackageList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SlsLogPackageList) XXX_Merge(src proto.Message)
- func (m *SlsLogPackageList) XXX_Size() int
- func (m *SlsLogPackageList) XXX_Unmarshal(b []byte) error
- type SourceConfig
- type SqlType
- type StaticCredentialsProvider
- type Status
- type StoreView
- type StoreViewErrors
- type StoreViewIndex
- type StoreViewStore
- type StreamLogConfigInputDetail
- type StructureDataFormat
- type SubStore
- type SubStoreKey
- type Tag
- type TemplateConfiguration
- type Token
- type TokenAutoUpdateClient
- func (c *TokenAutoUpdateClient) ApplyConfigToMachineGroup(project string, confName, groupName string) (err error)
- func (c *TokenAutoUpdateClient) CheckConfigExist(project string, config string) (ok bool, err error)
- func (c *TokenAutoUpdateClient) CheckLogstoreExist(project string, logstore string) (ok bool, err error)
- func (c *TokenAutoUpdateClient) CheckMachineGroupExist(project string, machineGroup string) (ok bool, err error)
- func (c *TokenAutoUpdateClient) CheckProjectExist(name string) (ok bool, err error)
- func (c *TokenAutoUpdateClient) Close() error
- func (c *TokenAutoUpdateClient) CreateAlert(project string, alert *Alert) (err error)
- func (c *TokenAutoUpdateClient) CreateAlertString(project string, alert string) (err error)
- func (c *TokenAutoUpdateClient) CreateChart(project, dashboardName string, chart Chart) (err error)
- func (c *TokenAutoUpdateClient) CreateConfig(project string, config *LogConfig) (err error)
- func (c *TokenAutoUpdateClient) CreateConfigString(project string, config string) (err error)
- func (c *TokenAutoUpdateClient) CreateConsumerGroup(project, logstore string, cg ConsumerGroup) (err error)
- func (c *TokenAutoUpdateClient) CreateDashboard(project string, dashboard Dashboard) (err error)
- func (c *TokenAutoUpdateClient) CreateDashboardString(project string, dashboardStr string) (err error)
- func (c *TokenAutoUpdateClient) CreateETL(project string, etljob ETL) (err error)
- func (c *TokenAutoUpdateClient) CreateEtlMeta(project string, etlMeta *EtlMeta) (err error)
- func (c *TokenAutoUpdateClient) CreateEventStore(project string, eventStore *LogStore) (err error)
- func (c *TokenAutoUpdateClient) CreateExport(project string, export *Export) (err error)
- func (c *TokenAutoUpdateClient) CreateIndex(project, logstore string, index Index) (err error)
- func (c *TokenAutoUpdateClient) CreateIndexString(project, logstore string, index string) (err error)
- func (c *TokenAutoUpdateClient) CreateIngestion(project string, ingestion *Ingestion) (err error)
- func (c *TokenAutoUpdateClient) CreateLogStore(project string, logstore string, ttl, shardCnt int, autoSplit bool, ...) (err error)
- func (c *TokenAutoUpdateClient) CreateLogStoreV2(project string, logstore *LogStore) (err error)
- func (c *TokenAutoUpdateClient) CreateMachineGroup(project string, m *MachineGroup) (err error)
- func (c *TokenAutoUpdateClient) CreateMetricStore(project string, metricStore *LogStore) (err error)
- func (c *TokenAutoUpdateClient) CreateProject(name, description string) (prj *LogProject, err error)
- func (c *TokenAutoUpdateClient) CreateProjectV2(name, description, dataRedundancyType string) (prj *LogProject, err error)
- func (c *TokenAutoUpdateClient) CreateResource(resource *Resource) (err error)
- func (c *TokenAutoUpdateClient) CreateResourceRecord(resourceName string, record *ResourceRecord) (err error)
- func (c *TokenAutoUpdateClient) CreateResourceRecordString(resourceName, recordStr string) (err error)
- func (c *TokenAutoUpdateClient) CreateResourceString(resourceStr string) (err error)
- func (c *TokenAutoUpdateClient) CreateSavedSearch(project string, savedSearch *SavedSearch) (err error)
- func (c *TokenAutoUpdateClient) CreateScheduledSQL(project string, scheduledsql *ScheduledSQL) (err error)
- func (c *TokenAutoUpdateClient) CreateStoreView(project string, storeView *StoreView) (err error)
- func (c *TokenAutoUpdateClient) DeleteAlert(project string, alertName string) (err error)
- func (c *TokenAutoUpdateClient) DeleteChart(project, dashboardName, chartName string) (err error)
- func (c *TokenAutoUpdateClient) DeleteConfig(project string, config string) (err error)
- func (c *TokenAutoUpdateClient) DeleteConsumerGroup(project, logstore string, cgName string) (err error)
- func (c *TokenAutoUpdateClient) DeleteDashboard(project, name string) (err error)
- func (c *TokenAutoUpdateClient) DeleteETL(project string, etlName string) (err error)
- func (c *TokenAutoUpdateClient) DeleteEtlMeta(project string, etlMetaName, etlMetaKey string) (err error)
- func (c *TokenAutoUpdateClient) DeleteEventStore(project, name string) (err error)
- func (c *TokenAutoUpdateClient) DeleteExport(project string, name string) (err error)
- func (c *TokenAutoUpdateClient) DeleteIndex(project, logstore string) (err error)
- func (c *TokenAutoUpdateClient) DeleteIngestion(project string, name string) (err error)
- func (c *TokenAutoUpdateClient) DeleteLogStore(project string, logstore string) (err error)
- func (c *TokenAutoUpdateClient) DeleteMachineGroup(project string, machineGroup string) (err error)
- func (c *TokenAutoUpdateClient) DeleteMetricStore(project, name string) (err error)
- func (c *TokenAutoUpdateClient) DeleteProject(name string) (err error)
- func (c *TokenAutoUpdateClient) DeleteProjectPolicy(project string) (err error)
- func (c *TokenAutoUpdateClient) DeleteResource(name string) (err error)
- func (c *TokenAutoUpdateClient) DeleteResourceRecord(resourceName, recordId string) (err error)
- func (c *TokenAutoUpdateClient) DeleteSavedSearch(project string, savedSearchName string) (err error)
- func (c *TokenAutoUpdateClient) DeleteScheduledSQL(project string, name string) (err error)
- func (c *TokenAutoUpdateClient) DeleteStoreView(project string, storeViewName string) (err error)
- func (c *TokenAutoUpdateClient) DisableAlert(project string, alertName string) (err error)
- func (c *TokenAutoUpdateClient) EnableAlert(project string, alertName string) (err error)
- func (c *TokenAutoUpdateClient) GetAlert(project string, alertName string) (alert *Alert, err error)
- func (c *TokenAutoUpdateClient) GetAlertString(project string, alertName string) (alert string, err error)
- func (c *TokenAutoUpdateClient) GetAppliedConfigs(project string, groupName string) (confNames []string, err error)
- func (c *TokenAutoUpdateClient) GetAppliedMachineGroups(project string, confName string) (groupNames []string, err error)
- func (c *TokenAutoUpdateClient) GetChart(project, dashboardName, chartName string) (chart *Chart, err error)
- func (c *TokenAutoUpdateClient) GetCheckpoint(project, logstore string, cgName string) (checkPointList []*ConsumerGroupCheckPoint, err error)
- func (c *TokenAutoUpdateClient) GetConfig(project string, config string) (logConfig *LogConfig, err error)
- func (c *TokenAutoUpdateClient) GetConfigString(project string, config string) (logConfig string, err error)
- func (c *TokenAutoUpdateClient) GetCursor(project, logstore string, shardID int, from string) (cursor string, err error)
- func (c *TokenAutoUpdateClient) GetCursorTime(project, logstore string, shardID int, cursor string) (cursorTime time.Time, err error)
- func (c *TokenAutoUpdateClient) GetDashboard(project, name string) (dashboard *Dashboard, err error)
- func (c *TokenAutoUpdateClient) GetDashboardString(project, name string) (dashboard string, err error)
- func (c *TokenAutoUpdateClient) GetETL(project string, etlName string) (ETLJob *ETL, err error)
- func (c *TokenAutoUpdateClient) GetEtlMeta(project string, etlMetaName, etlMetaKey string) (etlMeta *EtlMeta, err error)
- func (c *TokenAutoUpdateClient) GetEventStore(project, name string) (eventStore *LogStore, err error)
- func (c *TokenAutoUpdateClient) GetExport(project, name string) (export *Export, err error)
- func (c *TokenAutoUpdateClient) GetHistograms(project, logstore string, topic string, from int64, to int64, queryExp string) (h *GetHistogramsResponse, err error)
- func (c *TokenAutoUpdateClient) GetHistogramsToCompleted(project, logstore string, topic string, from int64, to int64, queryExp string) (h *GetHistogramsResponse, err error)
- func (c *TokenAutoUpdateClient) GetIndex(project, logstore string) (index *Index, err error)
- func (c *TokenAutoUpdateClient) GetIndexString(project, logstore string) (index string, err error)
- func (c *TokenAutoUpdateClient) GetIngestion(project string, name string) (ingestion *Ingestion, err error)
- func (c *TokenAutoUpdateClient) GetLogLines(project, logstore string, topic string, from int64, to int64, queryExp string, ...) (r *GetLogLinesResponse, err error)
- func (c *TokenAutoUpdateClient) GetLogLinesByNano(project, logstore string, topic string, fromInNs int64, toInNS int64, ...) (r *GetLogLinesResponse, err error)
- func (c *TokenAutoUpdateClient) GetLogLinesV2(project, logstore string, req *GetLogRequest) (r *GetLogLinesResponse, err error)
- func (c *TokenAutoUpdateClient) GetLogStore(project string, logstore string) (logstoreRst *LogStore, err error)
- func (c *TokenAutoUpdateClient) GetLogStoreMeteringMode(project string, logstore string) (res *GetMeteringModeResponse, err error)
- func (c *TokenAutoUpdateClient) GetLogs(project, logstore string, topic string, from int64, to int64, queryExp string, ...) (r *GetLogsResponse, err error)
- func (c *TokenAutoUpdateClient) GetLogsByNano(project, logstore string, topic string, fromInNs int64, toInNs int64, ...) (r *GetLogsResponse, err error)
- func (c *TokenAutoUpdateClient) GetLogsBytes(project, logstore string, shardID int, cursor, endCursor string, ...) (out []byte, nextCursor string, err error)
- func (c *TokenAutoUpdateClient) GetLogsBytesV2(plr *PullLogRequest) (out []byte, nextCursor string, err error)deprecated
- func (c *TokenAutoUpdateClient) GetLogsBytesWithQuery(plr *PullLogRequest) (out []byte, plm *PullLogMeta, err error)
- func (c *TokenAutoUpdateClient) GetLogsToCompleted(project, logstore string, topic string, from int64, to int64, queryExp string, ...) (r *GetLogsResponse, err error)
- func (c *TokenAutoUpdateClient) GetLogsToCompletedV2(project, logstore string, req *GetLogRequest) (r *GetLogsResponse, err error)
- func (c *TokenAutoUpdateClient) GetLogsToCompletedV3(project, logstore string, req *GetLogRequest) (r *GetLogsV3Response, err error)
- func (c *TokenAutoUpdateClient) GetLogsV2(project, logstore string, req *GetLogRequest) (r *GetLogsResponse, err error)
- func (c *TokenAutoUpdateClient) GetLogsV3(project, logstore string, req *GetLogRequest) (r *GetLogsV3Response, err error)
- func (c *TokenAutoUpdateClient) GetMachineGroup(project string, machineGroup string) (m *MachineGroup, err error)
- func (c *TokenAutoUpdateClient) GetMetricStore(project, name string) (metricStore *LogStore, err error)
- func (c *TokenAutoUpdateClient) GetProject(name string) (prj *LogProject, err error)
- func (c *TokenAutoUpdateClient) GetProjectPolicy(project string) (policy string, err error)
- func (c *TokenAutoUpdateClient) GetResource(name string) (resource *Resource, err error)
- func (c *TokenAutoUpdateClient) GetResourceRecord(resourceName, recordId string) (record *ResourceRecord, err error)
- func (c *TokenAutoUpdateClient) GetResourceRecordString(resourceName, name string) (record string, err error)
- func (c *TokenAutoUpdateClient) GetResourceString(name string) (resource string, err error)
- func (c *TokenAutoUpdateClient) GetSavedSearch(project string, savedSearchName string) (savedSearch *SavedSearch, err error)
- func (c *TokenAutoUpdateClient) GetScheduledSQL(project string, name string) (s *ScheduledSQL, err error)
- func (c *TokenAutoUpdateClient) GetScheduledSQLJobInstance(projectName, jobName, instanceId string, result bool) (instance *ScheduledSQLJobInstance, err error)
- func (c *TokenAutoUpdateClient) GetStoreView(project string, storeViewName string) (storeView *StoreView, err error)
- func (c *TokenAutoUpdateClient) GetStoreViewIndex(project string, storeViewName string) (resp *GetStoreViewIndexResponse, err error)
- func (c *TokenAutoUpdateClient) HeartBeat(project, logstore string, cgName, consumer string, heartBeatShardIDs []int) (shardIDs []int, err error)
- func (c *TokenAutoUpdateClient) ListAlert(project string, alertName string, dashboard string, offset, size int) (alerts []*Alert, total int, count int, err error)
- func (c *TokenAutoUpdateClient) ListConfig(project string, offset, size int) (cfgNames []string, total int, err error)
- func (c *TokenAutoUpdateClient) ListConsumerGroup(project, logstore string) (cgList []*ConsumerGroup, err error)
- func (c *TokenAutoUpdateClient) ListDashboard(project string, dashboardName string, offset, size int) (dashboardList []string, count, total int, err error)
- func (c *TokenAutoUpdateClient) ListDashboardV2(project string, dashboardName string, offset, size int) (dashboardList []string, dashboardItems []ResponseDashboardItem, ...)
- func (c *TokenAutoUpdateClient) ListETL(project string, offset int, size int) (ETLResponse *ListETLResponse, err error)
- func (c *TokenAutoUpdateClient) ListEtlMeta(project string, etlMetaName string, offset, size int) (total int, count int, etlMetaList []*EtlMeta, err error)
- func (c *TokenAutoUpdateClient) ListEtlMetaName(project string, offset, size int) (total int, count int, etlMetaNameList []string, err error)
- func (c *TokenAutoUpdateClient) ListEtlMetaWithTag(project string, etlMetaName, etlMetaTag string, offset, size int) (total int, count int, etlMetaList []*EtlMeta, err error)
- func (c *TokenAutoUpdateClient) ListEventStore(project string, offset, size int) (eventStores []string, err error)
- func (c *TokenAutoUpdateClient) ListExport(project, logstore, name, displayName string, offset, size int) (exports []*Export, total, count int, err error)
- func (c *TokenAutoUpdateClient) ListIngestion(project, logstore, name, displayName string, offset, size int) (ingestions []*Ingestion, total, count int, err error)
- func (c *TokenAutoUpdateClient) ListLogStore(project string) (logstoreList []string, err error)
- func (c *TokenAutoUpdateClient) ListMachineGroup(project string, offset, size int) (m []string, total int, err error)
- func (c *TokenAutoUpdateClient) ListMachines(project, machineGroupName string) (ms []*Machine, total int, err error)
- func (c *TokenAutoUpdateClient) ListMachinesV2(project, machineGroupName string, offset, size int) (ms []*Machine, total int, err error)
- func (c *TokenAutoUpdateClient) ListProject() (projectNames []string, err error)
- func (c *TokenAutoUpdateClient) ListProjectV2(offset, size int) (projects []LogProject, count, total int, err error)
- func (c *TokenAutoUpdateClient) ListResource(resourceType string, resourceName string, offset, size int) (resourceList []*Resource, count, total int, err error)
- func (c *TokenAutoUpdateClient) ListResourceRecord(resourceName string, offset, size int) (recordList []*ResourceRecord, count, total int, err error)
- func (c *TokenAutoUpdateClient) ListSavedSearch(project string, savedSearchName string, offset, size int) (savedSearches []string, total int, count int, err error)
- func (c *TokenAutoUpdateClient) ListSavedSearchV2(project string, savedSearchName string, offset, size int) (savedSearches []string, savedsearchItems []ResponseSavedSearchItem, total int, ...)
- func (c *TokenAutoUpdateClient) ListScheduledSQL(project, name, displayName string, offset, size int) (scheduledsqls []*ScheduledSQL, total, count int, err error)
- func (c *TokenAutoUpdateClient) ListScheduledSQLJobInstances(projectName, jobName string, status *InstanceStatus) (instances []*ScheduledSQLJobInstance, total, count int64, err error)
- func (c *TokenAutoUpdateClient) ListShards(project, logstore string) (shardIDs []*Shard, err error)
- func (c *TokenAutoUpdateClient) ListStoreViews(project string, req *ListStoreViewsRequest) (resp *ListStoreViewsResponse, err error)
- func (c *TokenAutoUpdateClient) ListSystemTagResources(project string, resourceType string, resourceIDs []string, ...) (respTags []*ResourceTagResponse, respNextToken string, err error)
- func (c *TokenAutoUpdateClient) ListTagResources(project string, resourceType string, resourceIDs []string, ...) (respTags []*ResourceTagResponse, respNextToken string, err error)
- func (c *TokenAutoUpdateClient) MergeShards(project, logstore string, shardID int) (shards []*Shard, err error)
- func (c *TokenAutoUpdateClient) ModifyScheduledSQLJobInstanceState(projectName, jobName, instanceId string, state ScheduledSQLState) (err error)
- func (c *TokenAutoUpdateClient) PostLogStoreLogs(project, logstore string, lg *LogGroup, hashKey *string) (err error)
- func (c *TokenAutoUpdateClient) PostLogStoreLogsV2(project, logstore string, req *PostLogStoreLogsRequest) (err error)
- func (c *TokenAutoUpdateClient) PostRawLogWithCompressType(project, logstore string, rawLogData []byte, compressType int, hashKey *string) (err error)
- func (c *TokenAutoUpdateClient) PublishAlertEvent(project string, alertResult []byte) error
- func (c *TokenAutoUpdateClient) PullLogs(project, logstore string, shardID int, cursor, endCursor string, ...) (gl *LogGroupList, nextCursor string, err error)
- func (c *TokenAutoUpdateClient) PullLogsV2(plr *PullLogRequest) (gl *LogGroupList, nextCursor string, err error)deprecated
- func (c *TokenAutoUpdateClient) PullLogsWithQuery(plr *PullLogRequest) (gl *LogGroupList, plm *PullLogMeta, err error)
- func (c *TokenAutoUpdateClient) PutLogs(project, logstore string, lg *LogGroup) (err error)
- func (c *TokenAutoUpdateClient) PutLogsWithCompressType(project, logstore string, lg *LogGroup, compressType int) (err error)
- func (c *TokenAutoUpdateClient) PutLogsWithMetricStoreURL(project, logstore string, lg *LogGroup) (err error)
- func (c *TokenAutoUpdateClient) PutRawLogWithCompressType(project, logstore string, rawLogData []byte, compressType int) (err error)
- func (c *TokenAutoUpdateClient) RemoveConfigFromMachineGroup(project string, confName, groupName string) (err error)
- func (c *TokenAutoUpdateClient) ResetAccessKeyToken(accessKeyID, accessKeySecret, securityToken string)
- func (c *TokenAutoUpdateClient) RestartETL(project string, etljob ETL) (err error)
- func (c *TokenAutoUpdateClient) RestartExport(project string, export *Export) (err error)
- func (c *TokenAutoUpdateClient) SetAuthVersion(version AuthVersionType)
- func (c *TokenAutoUpdateClient) SetHTTPClient(client *http.Client)
- func (c *TokenAutoUpdateClient) SetRegion(region string)
- func (c *TokenAutoUpdateClient) SetRetryTimeout(timeout time.Duration)
- func (c *TokenAutoUpdateClient) SetUserAgent(userAgent string)
- func (c *TokenAutoUpdateClient) SplitNumShard(project, logstore string, shardID, shardNum int) (shards []*Shard, err error)
- func (c *TokenAutoUpdateClient) SplitShard(project, logstore string, shardID int, splitKey string) (shards []*Shard, err error)
- func (c *TokenAutoUpdateClient) StartETL(project string, name string) (err error)
- func (c *TokenAutoUpdateClient) StopETL(project string, name string) (err error)
- func (c *TokenAutoUpdateClient) TagResources(project string, tags *ResourceTags) (err error)
- func (c *TokenAutoUpdateClient) TagResourcesSystemTags(project string, tags *ResourceSystemTags) (err error)
- func (c *TokenAutoUpdateClient) UnTagResources(project string, tags *ResourceUnTags) (err error)
- func (c *TokenAutoUpdateClient) UnTagResourcesSystemTags(project string, tags *ResourceUnSystemTags) (err error)
- func (c *TokenAutoUpdateClient) UpdateAlert(project string, alert *Alert) (err error)
- func (c *TokenAutoUpdateClient) UpdateAlertString(project string, alertName, alert string) (err error)
- func (c *TokenAutoUpdateClient) UpdateChart(project, dashboardName string, chart Chart) (err error)
- func (c *TokenAutoUpdateClient) UpdateCheckpoint(project, logstore string, cgName string, consumer string, shardID int, ...) (err error)
- func (c *TokenAutoUpdateClient) UpdateConfig(project string, config *LogConfig) (err error)
- func (c *TokenAutoUpdateClient) UpdateConfigString(project string, configName, configDetail string) (err error)
- func (c *TokenAutoUpdateClient) UpdateConsumerGroup(project, logstore string, cg ConsumerGroup) (err error)
- func (c *TokenAutoUpdateClient) UpdateDashboard(project string, dashboard Dashboard) (err error)
- func (c *TokenAutoUpdateClient) UpdateDashboardString(project string, dashboardName, dashboardStr string) (err error)
- func (c *TokenAutoUpdateClient) UpdateETL(project string, etljob ETL) (err error)
- func (c *TokenAutoUpdateClient) UpdateEtlMeta(project string, etlMeta *EtlMeta) (err error)
- func (c *TokenAutoUpdateClient) UpdateEventStore(project string, eventStore *LogStore) (err error)
- func (c *TokenAutoUpdateClient) UpdateExport(project string, export *Export) (err error)
- func (c *TokenAutoUpdateClient) UpdateIndex(project, logstore string, index Index) (err error)
- func (c *TokenAutoUpdateClient) UpdateIndexString(project, logstore string, index string) (err error)
- func (c *TokenAutoUpdateClient) UpdateIngestion(project string, ingestion *Ingestion) (err error)
- func (c *TokenAutoUpdateClient) UpdateLogStore(project string, logstore string, ttl, shardCnt int) (err error)
- func (c *TokenAutoUpdateClient) UpdateLogStoreMeteringMode(project string, logstore string, meteringMode string) (err error)
- func (c *TokenAutoUpdateClient) UpdateLogStoreV2(project string, logstore *LogStore) (err error)
- func (c *TokenAutoUpdateClient) UpdateMachineGroup(project string, m *MachineGroup) (err error)
- func (c *TokenAutoUpdateClient) UpdateMetricStore(project string, metricStore *LogStore) (err error)
- func (c *TokenAutoUpdateClient) UpdateProject(name, description string) (prj *LogProject, err error)
- func (c *TokenAutoUpdateClient) UpdateProjectPolicy(project, policy string) (err error)
- func (c *TokenAutoUpdateClient) UpdateResource(resource *Resource) (err error)
- func (c *TokenAutoUpdateClient) UpdateResourceRecord(resourceName string, record *ResourceRecord) (err error)
- func (c *TokenAutoUpdateClient) UpdateResourceRecordString(resourceName, recordStr string) (err error)
- func (c *TokenAutoUpdateClient) UpdateResourceString(resourceName, resourceStr string) (err error)
- func (c *TokenAutoUpdateClient) UpdateSavedSearch(project string, savedSearch *SavedSearch) (err error)
- func (c *TokenAutoUpdateClient) UpdateScheduledSQL(project string, scheduledsql *ScheduledSQL) (err error)
- func (c *TokenAutoUpdateClient) UpdateStoreView(project string, storeView *StoreView) (err error)
- type TriggerConfig
- type UpdateFuncProviderAdapter
- type UpdateTokenFunction
- type WebhookIntegration
- type ZstdCompressor
Constants ¶
const ( Compress_LZ4 = iota // 0 Compress_None // 1 Compress_ZSTD // 2 Compress_Max // max compress type(just for filter invalid compress type) )
compress type
const ( NotificationTypeSMS = "SMS" NotificationTypeWebhook = "Webhook" NotificationTypeDingTalk = "DingTalk" NotificationTypeEmail = "Email" NotificationTypeMessageCenter = "MessageCenter" )
const ( JoinTypeCross = "cross_join" JoinTypeInner = "inner_join" JoinTypeLeft = "left_join" JoinTypeRight = "right_join" JoinTypeFull = "full_join" JoinTypeLeftExclude = "left_exclude" JoinTypeRightExclude = "right_exclude" JoinTypeConcat = "concat" JoinTypeNo = "no_join" )
const ( GroupTypeNoGroup = "no_group" GroupTypeLabelsAuto = "labels_auto" GroupTypeCustom = "custom" )
const ( ScheduleTypeFixedRate = "FixedRate" ScheduleTypeHourly = "Hourly" ScheduleTypeDaily = "Daily" ScheduleTypeWeekly = "Weekly" ScheduleTypeCron = "Cron" ScheduleTypeDayRun = "DryRun" ScheduleTypeResident = "Resident" )
const ( StoreTypeLog = "log" StoreTypeMetric = "metric" StoreTypeMeta = "meta" )
const ( ResourceNameAlertPolicy = "sls.alert.alert_policy" ResourceNameActionPolicy = "sls.alert.action_policy" ResourceNameUser = "sls.common.user" ResourceNameUserGroup = "sls.common.user_group" ResourceNameContentTemplate = "sls.alert.content_template" ResourceNameGlobalConfig = "sls.alert.global_config" ResourceNameWebhookIntegration = "sls.alert.action_webhook" )
const ( EventStoreTelemetryType = "Event" EventStoreIndex = `` /* 3395-byte string literal not displayed */ )
const ( DataSourceOSS DataSourceType = "AliyunOSS" DataSourceBSS DataSourceType = "AliyunBSS" DataSourceMaxCompute DataSourceType = "AliyunMaxCompute" DataSourceJDBC DataSourceType = "JDBC" DataSourceKafka DataSourceType = "Kafka" DataSourceCMS DataSourceType = "AliyunCloudMonitor" DataSourceGeneral DataSourceType = "General" DataSourceS3 DataSourceType = "S3" OSSDataFormatTypeLine OSSDataFormatType = "Line" OSSDataFormatTypeMultiline OSSDataFormatType = "Multiline" OSSDataFormatTypeJSON OSSDataFormatType = "JSON" OSSDataFormatTypeParquet OSSDataFormatType = "Parquet" OSSDataFormatTypeDelimitedText OSSDataFormatType = "DelimitedText" KafkaValueTypeText KafkaValueType = "Text" KafkaValueTypeJSON KafkaValueType = "JSON" KafkaPositionGroupOffsets KafkaPosition = "GROUP_OFFSETS" KafkaPositionEarliest KafkaPosition = "EARLIEST" KafkaPositionLatest KafkaPosition = "LATEST" KafkaPositionTimeStamp KafkaPosition = "TIMESTAMP" DataSinkLOG DataSinkType = "AliyunLOG" DataSinkOSS DataSinkType = "AliyunOSS" DataSinkADB DataSinkType = "AliyunADB" DataSinkTSDB DataSinkType = "AliyunTSDB" DataSinkODPS DataSinkType = "AliyunODPS" DataSinkGENERAL DataSinkType = "General" OSSContentDetailTypeParquet OSSContentType = "parquet" OSSContentDetailTypeORC OSSContentType = "orc" OSSContentDetailTypeCSV OSSContentType = "csv" OSSContentDetailTypeJSON OSSContentType = "json" OSSCompressionTypeNone OSSCompressionType = "none" OSSCompressionTypeZstd OSSCompressionType = "zstd" OSSCompressionTypeGzip OSSCompressionType = "gzip" OSSCompressionTypeSnappy OSSCompressionType = "snappy" ExportVersion2 ExportVersion = "v2.0" // new versions of OSSExport, ODPSExport Version property must use this field, otherwise the service may be unavailable or incomplete )
const ( // MetricAggRulesSQL sql type MetricAggRulesSQL = "sql" // MetricAggRulesPromQL promql type MetricAggRulesPromQL = "promql" )
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" // ProgressHeader stands for the progress header in GetLogs response ProgressHeader = "X-Log-Progress" ProcessedRows = "x-log-processed-rows" ProcessedBytes = "x-log-processed-bytes" ElapsedMillisecond = "x-log-elapsed-millisecond" TelemetryType = "x-tlm-type" WhereQuery = "x-log-where-query" AggQuery = "x-log-agg-query" CpuSec = "x-log-cpu-sec" CpuCores = "x-log-cpu-cores" PowerSql = "x-log-power-sql" InsertedSql = "x-log-insertedsql" // GetLogsCountHeader stands for the count header in GetLogs response GetLogsCountHeader = "X-Log-Count" // RequestIDHeader stands for the requestID in all response RequestIDHeader = "x-log-requestid" GetLogsQueryInfo = "X-Log-Query-Info" BodyRawSize = "X-Log-Bodyrawsize" HasSQLHeader = "x-log-has-sql" ETLVersion = 2 ETLType = "ETL" ETLSinksType = "AliyunLOG" )
const ( //EtlMetaURI is etl meta uri EtlMetaURI = "etlmetas" //EtlMetaNameURI is etl meta name uri EtlMetaNameURI = "etlmetanames" //EtlMetaAllTagMatch is for search meta without tag filtering EtlMetaAllTagMatch = "__all_etl_meta_tag_match__" )
const ( InputTypeSyslog = "syslog" InputTypeStreamlog = "streamlog" InputTypePlugin = "plugin" InputTypeFile = "file" )
const InputTypes
const ( LogFileTypeApsaraLog = "apsara_log" LogFileTypeRegexLog = "common_reg_log" LogFileTypeJSONLog = "json_log" LogFileTypeDelimiterLog = "delimiter_log" )
const LogFileTypes
const ( MergeTypeTopic = "topic" MergeTypeLogstore = "logstore" )
const MergeType
const ( TopicFormatNone = "none" // no topic TopicFormatMachineGroup = "group_topic" // machine group's topic )
const ( PluginInputTypeDockerStdout = "service_docker_stdout" PPluginInputTypeCanal = "service_canal" )
const PluginInputType
const ( PROJECT_DATA_REDUNDANCY_TYPE_UNKNOWN = "Unknown" PROJECT_DATA_REDUNDANCY_TYPE_LRS = "LRS" PROJECT_DATA_REDUNDANCY_TYPE_ZRS = "ZRS" )
DataRedundancyType
const ( MachineIDTypeIP = "ip" MachineIDTypeUserDefined = "userdefined" )
const MachineIDTypes
const ( CHARGE_BY_FUNCTION = "ChargeByFunction" CHARGE_BY_DATA_INGEST = "ChargeByDataIngest" )
const ( STORE_VIEW_STORE_TYPE_LOGSTORE = "logstore" STORE_VIEW_STORE_TYPE_METRICSTORE = "metricstore" )
storeType of storeView
const ( HTTPHeaderAuthorization = "Authorization" HTTPHeaderContentMD5 = "Content-MD5" HTTPHeaderContentType = "Content-Type" HTTPHeaderContentLength = "Content-Length" HTTPHeaderDate = "Date" HTTPHeaderHost = "Host" HTTPHeaderUserAgent = "User-Agent" HTTPHeaderAcsSecurityToken = "x-acs-security-token" HTTPHeaderAPIVersion = "x-log-apiversion" HTTPHeaderLogDate = "x-log-date" HTTPHeaderLogContentSha256 = "x-log-content-sha256" HTTPHeaderSignatureMethod = "x-log-signaturemethod" HTTPHeaderBodyRawSize = "x-log-bodyrawsize" )
const BAD_REQUEST = "BadRequest"
const CONFIG_ALREADY_EXIST = "ConfigAlreadyExist"
const CONFIG_NOT_EXIST = "ConfigNotExist"
const (
CountConditionKey = "__count__"
)
const DefaultLogUserAgent = "golang-sdk-v0.1.0"
const ECS_RAM_ROLE_RETRY_TIMES = 3
const ECS_RAM_ROLE_URL_PREFIX = "http://100.100.100.200/latest/meta-data/ram/security-credentials/"
const GROUP_ALREADY_EXIST = "GroupAlreadyExist"
const GROUP_NOT_EXIST = "GroupNotExist"
const INTERNAL_SERVER_ERROR = "InternalServerError"
const INVALID_API_VERSION = "InvalidAPIVersion"
const INVALID_BODY_RAW_SIZE = "InvalidBodyRawSize"
const INVALID_COMPRESS_TYPE = "InvalidCompressType"
const INVALID_CONTENT_TYPE = "InvalidContentType"
const INVALID_CURSOR = "InvalidCursor"
const INVALID_DATE_FORMAT = "InvalidDateFormat"
const INVALID_ENCODING = "InvalidEncoding"
const INVALID_KEY = "InvalidKey"
const INVALID_LINE = "InvalidLine"
const INVALID_LOGSTORE_QUERY = "InvalidLogStoreQuery"
const INVALID_OFFSET = "InvalidOffset"
const INVALID_PARAMETER = "InvalidParameter"
const INVALID_QUERY_STRING = "InvalidQueryString"
const INVALID_REVERSE = "InvalidReverse"
const INVALID_SIGNATURE_METHOD = "InvalidSignatureMethod"
const INVALID_TIMESTAMP = "InvalidTimestamp"
const INVALID_TIME_RANGE = "InvalidTimeRange"
const (
ISO8601 = "20060102T150405Z"
)
const LOGSTORE_ALREADY_EXIST = "LogStoreAlreadyExist"
const LOGSTORE_INFO_INVALID = "LogstoreInfoInvalid"
const LOGSTORE_NOT_EXIST = "LogStoreNotExist"
const LOGSTORE_WITHOUT_SHARD = "LogStoreWithoutShard"
const (
LoggingURI = "logging"
)
const MISSING_API_VERSION = "MissingAPIVersion"
const MISSING_BODY_RAW_SIZE = "MissingBodyRawSize"
const MISSING_CONTENT_LENGTH = "MissingContentLength"
const MISSING_CONTENT_TYPE = "MissingContentType"
const MISSING_DATE = "MissingDate"
const MISSING_HOST = "MissingHost"
const MISSING_SIGNATURE_METHOD = "MissingSignatureMethod"
const MISS_ACCESS_KEY_ID = "MissAccessKeyId"
const NOT_SUPPORTED = "NotSupported"
const (
OSSShipperType = "oss"
)
const (
OutputTypeLogService = "LogService"
)
const OutputType
const PARAMETER_INVALID = "ParameterInvalid"
const POST_BODY_INVALID = "PostBodyInvalid"
const POST_BODY_TOO_LARGE = "PostBodyTooLarge"
const POST_BODY_UNCOMPRESS_ERROR = "PostBodyUncompressError"
const PROJECT_FORBIDDEN = "ProjectForbidden"
const PROJECT_NOT_EXIST = "ProjectNotExist"
const PROJECT_QUOTA_EXCEED = "ProjectQuotaExceed"
const READ_QUOTA_EXCEED = "ReadQuotaExceed"
const REQUEST_TIME_TOO_SKEWED = "RequestTimeTooSkewed"
const ResourceTypeUserDefine = "userdefine"
const SERVER_BUSY = "ServerBusy"
const SHARD_NOT_EXIST = "ShardNotExist"
const SHARD_READ_QUOTA_EXCEED = "ShardReadQuotaExceed"
const SHARD_WRITE_QUOTA_EXCEED = "ShardWriteQuotaExceed"
const SHIPPER_NOT_EXIST = "ShipperNotExist"
const SIGNATURE_NOT_MATCH = "SignatureNotMatch"
const UN_AUTHORIZED = "Unauthorized"
const UPDATE_FUNC_RETRY_TIMES = 3
const WRITE_QUOTA_EXCEED = "WriteQuotaExceed"
Variables ¶
var ( ErrInvalidLengthLog = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLog = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupLog = fmt.Errorf("proto: unexpected end of group") )
var GlobalDebugLevel = 0
var GlobalForceUsingHTTP = false
GlobalForceUsingHTTP if GlobalForceUsingHTTP is true, then all request will use HTTP(ignore LogProject's UsingHTTP flag)
var InvalidCompressError = errors.New("Invalid Compress Type")
var InvalidTypeError = errors.New("invalid config type")
var Logger = initDefaultSLSLogger()
var MaxCompletedRetryCount = 20
var MaxCompletedRetryLatency = 5 * time.Minute
var NoConfigFieldError = errors.New("no this config field")
var RetryOnServerErrorEnabled = true
RetryOnServerErrorEnabled if RetryOnServerErrorEnabled is false, then all error requests will not be retried
Functions ¶
func AddNecessaryApsaraLogInputConfigField ¶
func AddNecessaryApsaraLogInputConfigField(inputConfigDetail map[string]interface{})
func AddNecessaryDelimiterLogInputConfigField ¶
func AddNecessaryDelimiterLogInputConfigField(inputConfigDetail map[string]interface{})
func AddNecessaryInputConfigField ¶
func AddNecessaryInputConfigField(inputConfigDetail map[string]interface{})
AddNecessaryInputConfigField ...
func AddNecessaryJSONLogInputConfigField ¶
func AddNecessaryJSONLogInputConfigField(inputConfigDetail map[string]interface{})
func AddNecessaryLocalFileInputConfigField ¶
func AddNecessaryLocalFileInputConfigField(inputConfigDetail map[string]interface{})
func AddNecessaryRegexLogInputConfigField ¶
func AddNecessaryRegexLogInputConfigField(inputConfigDetail map[string]interface{})
func BoolPtrToStringNum ¶ added in v0.1.55
func BoolToInt64 ¶ added in v0.1.55
func GenResourceId ¶ added in v0.1.46
GenResourceId generate the resource id to tag (not used for project)
func GenerateInnerLogger ¶ added in v0.1.6
func GetFileConfigInputDetailType ¶
func GetFileConfigInputDetailType(detail InputDetailInterface) (string, bool)
func InitApsaraLogConfigInputDetail ¶
func InitApsaraLogConfigInputDetail(detail *ApsaraLogConfigInputDetail)
InitApsaraLogConfigInputDetail ...
func InitCommonConfigInputDetail ¶
func InitCommonConfigInputDetail(detail *CommonConfigInputDetail)
InitCommonConfigInputDetail ...
func InitDelimiterConfigInputDetail ¶
func InitDelimiterConfigInputDetail(detail *DelimiterConfigInputDetail)
InitDelimiterConfigInputDetail ...
func InitJSONConfigInputDetail ¶
func InitJSONConfigInputDetail(detail *JSONConfigInputDetail)
InitJSONConfigInputDetail ...
func InitLocalFileConfigInputDetail ¶
func InitLocalFileConfigInputDetail(detail *LocalFileConfigInputDetail)
InitLocalFileConfigInputDetail ...
func InitPluginLogConfigInputDetail ¶
func InitPluginLogConfigInputDetail(detail *PluginLogConfigInputDetail)
InitPluginLogConfigInputDetail ...
func InitRegexConfigInputDetail ¶
func InitRegexConfigInputDetail(detail *RegexConfigInputDetail)
InitRegexConfigInputDetail ...
func InitStreamLogConfigInputDetail ¶
func InitStreamLogConfigInputDetail(detail *StreamLogConfigInputDetail)
InitStreamLogConfigInputDetail ...
func Int64PtrToString ¶ added in v0.1.55
func IsDebugLevelMatched ¶ added in v0.1.6
func IsTokenError ¶
func IsValidInputType ¶
IsValidInputType check if specific inputType is valid
func JsonMarshal ¶ added in v0.1.22
func JsonMarshal(v interface{}) string
func ParseHeaderInt ¶ added in v0.1.69
func Retry ¶
Retry execute the input operation immediately at first, and do an exponential backoff retry when failed. The default max elapsed time is 15 minutes. The default retry intervals are shown below, in seconds.
1 0.5 [0.25, 0.75] 2 0.75 [0.375, 1.125] 3 1.125 [0.562, 1.687] 4 1.687 [0.8435, 2.53] 5 2.53 [1.265, 3.795] 6 3.795 [1.897, 5.692] 7 5.692 [2.846, 8.538] 8 8.538 [4.269, 12.807] 9 12.807 [6.403, 19.210]
... The signature of backoff.Operation is "func() error".
func RetryWithAttempt ¶
func RetryWithAttempt(ctx context.Context, maxAttempt int, o ConditionOperation) error
RetryWithAttempt ...
func RetryWithBackOff ¶
RetryWithBackOff ...
func RetryWithCondition ¶
RetryWithCondition ...
func SetZstdCompressor ¶ added in v0.1.81
func SetZstdCompressor(compressor LogCompressor) error
func UpdateInputConfigField ¶
func UpdateInputConfigField(detail InputDetailInterface, key string, val interface{}) error
UpdateInputConfigField ...
Types ¶
type Alert ¶
type Alert struct { Name string `json:"name"` DisplayName string `json:"displayName"` Description string `json:"description"` State string `json:"state"` Status string `json:"status"` Configuration *AlertConfiguration `json:"configuration"` Schedule *Schedule `json:"schedule"` CreateTime int64 `json:"createTime,omitempty"` LastModifiedTime int64 `json:"lastModifiedTime,omitempty"` }
func (*Alert) MarshalJSON ¶
type AlertConfiguration ¶
type AlertConfiguration struct { Condition string `json:"condition"` MuteUntil int64 `json:"muteUntil,omitempty"` NotificationList []*Notification `json:"notificationList"` NotifyThreshold int32 `json:"notifyThreshold"` Throttling string `json:"throttling"` Version string `json:"version"` Type string `json:"type"` TemplateConfiguration *TemplateConfiguration `json:"templateConfiguration"` Dashboard string `json:"dashboard"` Threshold int `json:"threshold"` NoDataFire bool `json:"noDataFire"` NoDataSeverity Severity `json:"noDataSeverity"` SendResolved bool `json:"sendResolved"` QueryList []*AlertQuery `json:"queryList"` Annotations []*Tag `json:"annotations"` Labels []*Tag `json:"labels"` SeverityConfigurations []*SeverityConfiguration `json:"severityConfigurations"` JoinConfigurations []*JoinConfiguration `json:"joinConfigurations"` GroupConfiguration GroupConfiguration `json:"groupConfiguration"` PolicyConfiguration PolicyConfiguration `json:"policyConfiguration"` AutoAnnotation bool `json:"autoAnnotation"` SinkEventStore *SinkEventStoreConfiguration `json:"sinkEventStore"` SinkCms *SinkCmsConfiguration `json:"sinkCms"` SinkAlerthub *SinkAlerthubConfiguration `json:"sinkAlerthub"` Tags []string `json:"tags,omitempty"` }
type AlertQuery ¶
type AlertQuery struct { ChartTitle string `json:"chartTitle"` LogStore string `json:"logStore"` Query string `json:"query"` TimeSpanType string `json:"timeSpanType"` Start string `json:"start"` End string `json:"end"` StoreType string `json:"storeType"` Project string `json:"project"` Store string `json:"store"` Region string `json:"region"` RoleArn string `json:"roleArn"` DashboardId string `json:"dashboardId"` PowerSqlMode PowerSqlMode `json:"powerSqlMode"` }
type AliyunBssSource ¶ added in v0.1.28
type AliyunBssSource struct { DataSource RoleArn string `json:"roleARN"` HistoryMonth int64 `json:"historyMonth"` }
ingestion JDBC source
type AliyunCloudMonitorSource ¶ added in v0.1.28
type AliyunCloudMonitorSource struct { DataSource AccessKeyID string `json:"accessKeyID"` AccessKeySecret string `json:"accessKeySecret"` StartTime int64 `json:"startTime"` Namespaces []string `json:"namespaces"` OutputType string `json:"outputType"` DelayTime int64 `json:"delayTime"` }
ingestion cloud monitor source
type AliyunGeneralSink ¶ added in v0.1.30
type AliyunGeneralSink struct { Type DataSinkType `json:"type"` Fields map[string]interface{} `json:"fields"` }
func (*AliyunGeneralSink) DataSinkType ¶ added in v0.1.30
func (_ *AliyunGeneralSink) DataSinkType() DataSinkType
type AliyunMaxComputeSource ¶ added in v0.1.28
type AliyunMaxComputeSource struct { DataSource AccessKeyID string `json:"accessKeyID"` AccessKeySecret string `json:"accessKeySecret"` Endpoint string `json:"endpoint"` TunnelEndpoint string `json:"tunnelEndpoint,omitempty"` Project string `json:"project"` Table string `json:"table"` PartitionSpec string `json:"partitionSpec"` TimeField string `json:"timeField"` TimeFormat string `json:"timeFormat"` TimeZone string `json:"timeZone"` }
ingestion maxcompute source >>>
type AliyunODPSSink ¶ added in v0.1.30
type AliyunODPSSink struct { Type DataSinkType `json:"type"` OdpsRolearn string `json:"odpsRolearn"` OdpsEndpoint string `json:"odpsEndpoint"` OdpsTunnelEndpoint string `json:"odpsTunnelEndpoint"` OdpsProject string `json:"odpsProject"` OdpsTable string `json:"odpsTable"` TimeZone string `json:"timeZone"` PartitionTimeFormat string `json:"partitionTimeFormat"` Fields []string `json:"fields"` PartitionColumn []string `json:"partitionColumn"` OdpsAccessKeyId string `json:"odpsAccessKeyId"` OdpsAccessSecret string `json:"odpsAccessAecret"` }
func (*AliyunODPSSink) DataSinkType ¶ added in v0.1.30
func (_ *AliyunODPSSink) DataSinkType() DataSinkType
type AliyunOSSSink ¶ added in v0.1.30
type AliyunOSSSink struct { Type DataSinkType `json:"type"` RoleArn string `json:"roleArn"` Bucket string `json:"bucket"` Prefix string `json:"prefix"` Suffix string `json:"suffix"` PathFormat string `json:"pathFormat"` PathFormatType string `json:"pathFormatType"` BufferSize int64 `json:"bufferSize"` BufferInterval int64 `json:"bufferInterval"` TimeZone string `json:"timeZone"` ContentType OSSContentType `json:"contentType"` CompressionType OSSCompressionType `json:"compressionType"` //CsvContentDetail, JsonContentDetail, ParquetContentDetail, OrcContentDetail // the old version ContentDetail is st ring(struct serialized string), and now we highly recommend you use the struct ContentDetail directly ContentDetail interface{} `json:"contentDetail"` }
func (*AliyunOSSSink) DataSinkType ¶ added in v0.1.30
func (_ *AliyunOSSSink) DataSinkType() DataSinkType
type AliyunOSSSource ¶ added in v0.1.28
type AliyunOSSSource struct { DataSource Bucket string `json:"bucket"` Endpoint string `json:"endpoint"` RoleArn string `json:"roleARN"` Prefix string `json:"prefix,omitempty"` Pattern string `json:"pattern,omitempty"` CompressionCodec string `json:"compressionCodec,omitempty"` Encoding string `json:"encoding,omitempty"` Format interface{} `json:"format,omitempty"` RestoreObjectEnable bool `json:"restoreObjectEnable"` LastModifyTimeAsLogTime bool `json:"lastModifyTimeAsLogTime"` }
type ApsaraLogConfigInputDetail ¶
type ApsaraLogConfigInputDetail struct { LocalFileConfigInputDetail LogBeginRegex string `json:"logBeginRegex"` }
ApsaraLogConfigInputDetail apsara log config
func ConvertToApsaraLogConfigInputDetail ¶
func ConvertToApsaraLogConfigInputDetail(detail InputDetailInterface) (*ApsaraLogConfigInputDetail, bool)
type AuthVersionType ¶ added in v0.1.42
type AuthVersionType string
AuthVersionType the version of auth
const ( AuthV0 AuthVersionType = "v0" // AuthV1 v1 AuthV1 AuthVersionType = "v1" // AuthV4 v4 AuthV4 AuthVersionType = "v4" )
type BadResponseError ¶
BadResponseError : special sls error, not valid json format
func NewBadResponseError ¶
func NewBadResponseError(body string, header map[string][]string, httpCode int) *BadResponseError
NewBadResponseError ...
func (BadResponseError) Error ¶
func (e BadResponseError) Error() string
func (BadResponseError) String ¶
func (e BadResponseError) String() string
type Chart ¶
type Chart struct { Title string `json:"title"` Type string `json:"type"` Search ChartSearch `json:"search"` Display ChartDisplay `json:"display"` }
type ChartDisplay ¶
type ChartSearch ¶
type Client ¶
type Client struct { Endpoint string // IP or hostname of SLS endpoint AccessKeyID string // Deprecated: use credentialsProvider instead AccessKeySecret string // Deprecated: use credentialsProvider instead SecurityToken string // Deprecated: use credentialsProvider instead UserAgent string // default defaultLogUserAgent RequestTimeOut time.Duration RetryTimeOut time.Duration HTTPClient *http.Client Region string AuthVersion AuthVersionType // v1 or v4 signature,default is v1 // User defined common headers. // When conflict with sdk pre-defined headers, the value will // be ignored CommonHeaders map[string]string InnerHeaders map[string]string // contains filtered or unexported fields }
Client ...
func (*Client) ApplyConfigToMachineGroup ¶
ApplyConfigToMachineGroup applies config to machine group.
func (*Client) CheckConfigExist ¶
CheckConfigExist check config exist or not
func (*Client) CheckLogstoreExist ¶
CheckLogstoreExist check logstore exist or not
func (*Client) CheckMachineGroupExist ¶
CheckMachineGroupExist check machine group exist or not
func (*Client) CheckProjectExist ¶
CheckProjectExist check project exist or not
func (*Client) CreateAlertString ¶ added in v0.1.19
func (*Client) CreateChart ¶
func (*Client) CreateConfig ¶
CreateConfig creates a new config in SLS.
func (*Client) CreateConfigString ¶
CreateConfigString creates a new config in SLS.
func (*Client) CreateConsumerGroup ¶
func (c *Client) CreateConsumerGroup(project, logstore string, cg ConsumerGroup) (err error)
CreateConsumerGroup ...
func (*Client) CreateDashboard ¶
func (*Client) CreateDashboardString ¶
func (*Client) CreateEtlMeta ¶
func (*Client) CreateEventStore ¶ added in v0.1.49
func (*Client) CreateExport ¶ added in v0.1.30
func (*Client) CreateIndex ¶
CreateIndex ...
func (*Client) CreateIndexString ¶
CreateIndexString ...
func (*Client) CreateIngestion ¶ added in v0.1.28
func (*Client) CreateLogStore ¶
func (c *Client) CreateLogStore(project string, logstore string, ttl, shardCnt int, autoSplit bool, maxSplitShard int) error
CreateLogStore creates a new logstore in SLS, where name is logstore name, and ttl is time-to-live(in day) of logs, and shardCnt is the number of shards, and autoSplit is auto split, and maxSplitShard is the max number of shard.
func (*Client) CreateLogStoreV2 ¶
CreateLogStoreV2 creates a new logstore in SLS
func (*Client) CreateLogging ¶ added in v0.1.7
func (*Client) CreateMachineGroup ¶
func (c *Client) CreateMachineGroup(project string, m *MachineGroup) error
CreateMachineGroup creates a new machine group in SLS.
func (*Client) CreateMetricAggRules ¶ added in v0.1.19
func (c *Client) CreateMetricAggRules(project string, aggRules *MetricAggRules) error
func (*Client) CreateMetricStore ¶ added in v0.1.37
CreateMetricStore .
func (*Client) CreateProject ¶
func (c *Client) CreateProject(name, description string) (*LogProject, error)
CreateProject create a new loghub project.
func (*Client) CreateProjectV2 ¶ added in v0.1.55
func (c *Client) CreateProjectV2(name, description, dataRedundancyType string) (*LogProject, error)
CreateProjectV2 create a new loghub project, with dataRedundancyType option.
func (*Client) CreateResource ¶ added in v0.1.22
func (*Client) CreateResourceRecord ¶ added in v0.1.22
func (c *Client) CreateResourceRecord(resourceName string, record *ResourceRecord) error
func (*Client) CreateResourceRecordString ¶ added in v0.1.22
func (*Client) CreateResourceString ¶ added in v0.1.22
func (*Client) CreateSavedSearch ¶
func (c *Client) CreateSavedSearch(project string, savedSearch *SavedSearch) error
func (*Client) CreateScheduledSQL ¶ added in v0.1.22
func (c *Client) CreateScheduledSQL(project string, scheduledsql *ScheduledSQL) error
func (*Client) CreateStoreView ¶ added in v0.1.77
func (*Client) CreateSubStore ¶ added in v0.1.9
CreateSubStore ...
func (*Client) DeleteChart ¶
func (*Client) DeleteConfig ¶
DeleteConfig deletes a config according by config name.
func (*Client) DeleteConsumerGroup ¶
DeleteConsumerGroup ...
func (*Client) DeleteDashboard ¶
func (*Client) DeleteEtlMeta ¶
func (*Client) DeleteEventStore ¶ added in v0.1.49
func (*Client) DeleteExport ¶ added in v0.1.30
func (*Client) DeleteIndex ¶
DeleteIndex ...
func (*Client) DeleteIngestion ¶ added in v0.1.28
func (*Client) DeleteLogStore ¶
DeleteLogStore deletes a logstore according by logstore name.
func (*Client) DeleteLogging ¶ added in v0.1.7
func (*Client) DeleteMachineGroup ¶
DeleteMachineGroup deletes machine group according machine group name.
func (*Client) DeleteMetricAggRules ¶ added in v0.1.19
func (*Client) DeleteMetricStore ¶ added in v0.1.37
DeleteMetricStore .
func (*Client) DeleteProjectPolicy ¶ added in v0.1.39
func (*Client) DeleteResource ¶ added in v0.1.22
func (*Client) DeleteResourceRecord ¶ added in v0.1.22
func (*Client) DeleteSavedSearch ¶
func (*Client) DeleteScheduledSQL ¶ added in v0.1.22
func (*Client) DeleteStoreView ¶ added in v0.1.77
func (*Client) DeleteSubStore ¶ added in v0.1.9
DeleteSubStore ...
func (*Client) GetAlertString ¶ added in v0.1.19
func (*Client) GetAppliedConfigs ¶
func (c *Client) GetAppliedConfigs(project string, groupName string) (confNames []string, err error)
GetAppliedConfigs returns applied config names list according machine group name groupName.
func (*Client) GetAppliedMachineGroups ¶
func (c *Client) GetAppliedMachineGroups(project string, confName string) (groupNames []string, err error)
GetAppliedMachineGroups returns applied machine group names list according config name.
func (*Client) GetCheckpoint ¶
func (c *Client) GetCheckpoint(project, logstore string, cgName string) (checkPointList []*ConsumerGroupCheckPoint, err error)
GetCheckpoint ...
func (*Client) GetConfigString ¶
GetConfigString returns config according by config name.
func (*Client) GetCursor ¶
func (c *Client) GetCursor(project, logstore string, shardID int, from string) (cursor string, err error)
GetCursor gets log cursor of one shard specified by shardId. The from can be in three form: a) unix timestamp in seccond, b) "begin", c) "end". For more detail please read: https://help.aliyun.com/document_detail/29024.html
func (*Client) GetCursorTime ¶
func (c *Client) GetCursorTime(project, logstore string, shardID int, cursor string) (cursorTime time.Time, err error)
GetCursorTime ...
func (*Client) GetDashboard ¶
func (*Client) GetDashboardString ¶
func (*Client) GetEtlMeta ¶
func (*Client) GetEventStore ¶ added in v0.1.49
func (*Client) GetHistograms ¶
func (c *Client) GetHistograms(project, logstore string, topic string, from int64, to int64, queryExp string) (*GetHistogramsResponse, error)
GetHistograms query logs with [from, to) time range
func (*Client) GetHistogramsToCompleted ¶ added in v0.1.41
func (c *Client) GetHistogramsToCompleted(project, logstore string, topic string, from int64, to int64, queryExp string) (*GetHistogramsResponse, error)
GetHistogramsToCompleted query logs with [from, to) time range to completed
func (*Client) GetIndexString ¶
GetIndexString ...
func (*Client) GetIngestion ¶ added in v0.1.28
func (*Client) GetLogLines ¶ added in v0.1.17
func (c *Client) GetLogLines(project, logstore string, topic string, from int64, to int64, queryExp string, maxLineNum int64, offset int64, reverse bool) (*GetLogLinesResponse, error)
GetLogLines ...
func (*Client) GetLogLinesByNano ¶ added in v0.1.50
func (*Client) GetLogLinesV2 ¶ added in v0.1.24
func (c *Client) GetLogLinesV2(project, logstore string, req *GetLogRequest) (*GetLogLinesResponse, error)
GetLogLinesV2 ...
func (*Client) GetLogStore ¶
GetLogStore returns logstore according by logstore name.
func (*Client) GetLogStoreMeteringMode ¶ added in v0.1.59
func (c *Client) GetLogStoreMeteringMode(project string, logstore string) (*GetMeteringModeResponse, error)
GetLogStoreMeteringMode get the metering mode of logstore, eg. ChargeByFunction / ChargeByDataIngest
func (*Client) GetLogging ¶ added in v0.1.7
func (*Client) GetLogs ¶
func (c *Client) GetLogs(project, logstore string, topic string, from int64, to int64, queryExp string, maxLineNum int64, offset int64, reverse bool) (*GetLogsResponse, error)
GetLogs query logs with [from, to) time range
func (*Client) GetLogsByNano ¶ added in v0.1.50
func (*Client) GetLogsBytes ¶
func (c *Client) GetLogsBytes(project, logstore string, shardID int, cursor, endCursor string, logGroupMaxCount int) (out []byte, nextCursor string, err error)
GetLogsBytes gets logs binary data from shard specified by shardId according cursor and endCursor. The logGroupMaxCount is the max number of logGroup could be returned. The nextCursor is the next curosr can be used to read logs at next time.
func (*Client) GetLogsBytesV2 ¶ added in v0.1.53
func (c *Client) GetLogsBytesV2(plr *PullLogRequest) (out []byte, nextCursor string, err error)
func (*Client) GetLogsBytesWithQuery ¶ added in v0.1.69
func (c *Client) GetLogsBytesWithQuery(plr *PullLogRequest) (out []byte, plm *PullLogMeta, err error)
func (*Client) GetLogsToCompleted ¶ added in v0.1.41
func (c *Client) GetLogsToCompleted(project, logstore string, topic string, from int64, to int64, queryExp string, maxLineNum int64, offset int64, reverse bool) (*GetLogsResponse, error)
GetLogsToCompleted query logs with [from, to) time range to completed
func (*Client) GetLogsToCompletedV2 ¶ added in v0.1.41
func (c *Client) GetLogsToCompletedV2(project, logstore string, req *GetLogRequest) (*GetLogsResponse, error)
GetLogsToCompletedV2 ...
func (*Client) GetLogsToCompletedV3 ¶ added in v0.1.56
func (c *Client) GetLogsToCompletedV3(project, logstore string, req *GetLogRequest) (*GetLogsV3Response, error)
GetLogsToCompletedV3 ...
func (*Client) GetLogsV2 ¶ added in v0.1.24
func (c *Client) GetLogsV2(project, logstore string, req *GetLogRequest) (*GetLogsResponse, error)
GetLogsV2 ...
func (*Client) GetLogsV3 ¶ added in v0.1.45
func (c *Client) GetLogsV3(project, logstore string, req *GetLogRequest) (*GetLogsV3Response, error)
GetLogsV3 ...
func (*Client) GetMachineGroup ¶
func (c *Client) GetMachineGroup(project string, machineGroup string) (m *MachineGroup, err error)
GetMachineGroup retruns machine group according by machine group name.
func (*Client) GetMetricAggRules ¶ added in v0.1.19
func (c *Client) GetMetricAggRules(project string, ruleID string) (*MetricAggRules, error)
func (*Client) GetMetricStore ¶ added in v0.1.37
GetMetricStore .
func (*Client) GetPrevCursorTime ¶
func (c *Client) GetPrevCursorTime(project, logstore string, shardID int, cursor string) (cursorTime time.Time, err error)
GetPrevCursorTime ...
func (*Client) GetProject ¶
func (c *Client) GetProject(name string) (*LogProject, error)
GetProject ...
func (*Client) GetProjectPolicy ¶ added in v0.1.39
func (*Client) GetResource ¶ added in v0.1.22
func (*Client) GetResourceRecord ¶ added in v0.1.22
func (c *Client) GetResourceRecord(resourceName, recordId string) (record *ResourceRecord, err error)
func (*Client) GetResourceRecordString ¶ added in v0.1.22
func (*Client) GetResourceString ¶ added in v0.1.22
func (*Client) GetSavedSearch ¶
func (c *Client) GetSavedSearch(project string, savedSearchName string) (*SavedSearch, error)
func (*Client) GetScheduledSQL ¶ added in v0.1.22
func (c *Client) GetScheduledSQL(project string, name string) (*ScheduledSQL, error)
func (*Client) GetScheduledSQLJobInstance ¶ added in v0.1.22
func (c *Client) GetScheduledSQLJobInstance(projectName, jobName, instanceId string, result bool) (*ScheduledSQLJobInstance, error)
func (*Client) GetStoreView ¶ added in v0.1.77
func (*Client) GetStoreViewIndex ¶ added in v0.1.77
func (c *Client) GetStoreViewIndex(project string, storeViewName string) (*GetStoreViewIndexResponse, error)
func (*Client) GetSubStore ¶ added in v0.1.9
GetSubStore ...
func (*Client) GetSubStoreTTL ¶ added in v0.1.9
GetSubStoreTTL ...
func (*Client) HeartBeat ¶
func (c *Client) HeartBeat(project, logstore string, cgName, consumer string, heartBeatShardIDs []int) (shardIDs []int, err error)
HeartBeat ...
func (*Client) ListConfig ¶
func (c *Client) ListConfig(project string, offset, size int) (cfgNames []string, total int, err error)
ListConfig returns config names list and the total number of configs. The offset starts from 0 and the size is the max number of configs could be returned.
func (*Client) ListConsumerGroup ¶
func (c *Client) ListConsumerGroup(project, logstore string) (cgList []*ConsumerGroup, err error)
ListConsumerGroup ...
func (*Client) ListDashboard ¶
func (*Client) ListDashboardV2 ¶ added in v0.1.14
func (*Client) ListEtlMeta ¶
func (*Client) ListEtlMetaName ¶
func (*Client) ListEtlMetaWithTag ¶
func (*Client) ListEventStore ¶ added in v0.1.49
func (*Client) ListExport ¶ added in v0.1.30
func (*Client) ListIngestion ¶ added in v0.1.28
func (*Client) ListLogStore ¶
ListLogStore returns all logstore names of project p.
func (*Client) ListLogStoreV2 ¶ added in v0.1.9
func (c *Client) ListLogStoreV2(project string, offset, size int, telemetryType string) ([]string, error)
ListLogStoreV2 list logstores with params :
offset: start offset size: max return size telemetryType : telemetry type filter
func (*Client) ListMachineGroup ¶
func (c *Client) ListMachineGroup(project string, offset, size int) (m []string, total int, err error)
ListMachineGroup returns machine group name list and the total number of machine groups. The offset starts from 0 and the size is the max number of machine groups could be returned.
func (*Client) ListMachines ¶
func (*Client) ListMachinesV2 ¶ added in v0.1.51
func (*Client) ListMetricAggRules ¶ added in v0.1.19
func (*Client) ListProject ¶
ListProject list all projects in specific region the region is related with the client's endpoint
func (*Client) ListProjectV2 ¶
func (c *Client) ListProjectV2(offset, size int) (projects []LogProject, count, total int, err error)
ListProjectV2 list all projects in specific region the region is related with the client's endpoint ref https://www.alibabacloud.com/help/doc-detail/74955.htm
func (*Client) ListResource ¶ added in v0.1.22
func (*Client) ListResourceRecord ¶ added in v0.1.22
func (*Client) ListSavedSearch ¶
func (*Client) ListSavedSearchV2 ¶ added in v0.1.14
func (*Client) ListScheduledSQL ¶ added in v0.1.22
func (*Client) ListScheduledSQLJobInstances ¶ added in v0.1.22
func (c *Client) ListScheduledSQLJobInstances(projectName, jobName string, status *InstanceStatus) (instances []*ScheduledSQLJobInstance, total, count int64, err error)
func (*Client) ListShards ¶
ListShards returns shard id list of this logstore.
func (*Client) ListStoreViews ¶ added in v0.1.77
func (c *Client) ListStoreViews(project string, req *ListStoreViewsRequest) (*ListStoreViewsResponse, error)
func (*Client) ListSubStore ¶ added in v0.1.9
ListSubStore ...
func (*Client) ListSystemTagResources ¶ added in v0.1.62
func (c *Client) ListSystemTagResources(project string, resourceType string, resourceIDs []string, tags []ResourceFilterTag, tagOwnerUid string, category string, scope string, nextToken string) (respTags []*ResourceTagResponse, respNextToken string, err error)
ListSystemTagResources list system tag resources
func (*Client) ListTagResources ¶ added in v0.1.13
func (c *Client) ListTagResources(project string, resourceType string, resourceIDs []string, tags []ResourceFilterTag, nextToken string) (respTags []*ResourceTagResponse, respNextToken string, err error)
ListTagResources list rag resources
func (*Client) MergeShards ¶
MergeShards https://help.aliyun.com/document_detail/29022.html
func (*Client) ModifyScheduledSQLJobInstanceState ¶ added in v0.1.22
func (c *Client) ModifyScheduledSQLJobInstanceState(projectName, jobName, instanceId string, state ScheduledSQLState) error
func (*Client) PostLogStoreLogs ¶
func (c *Client) PostLogStoreLogs(project, logstore string, lg *LogGroup, hashKey *string) (err error)
PostLogStoreLogs put logs into Shard logstore by hashKey. The callers should transform user logs into LogGroup.
func (*Client) PostLogStoreLogsV2 ¶ added in v0.1.73
func (c *Client) PostLogStoreLogsV2(project, logstore string, req *PostLogStoreLogsRequest) (err error)
func (*Client) PostRawLogWithCompressType ¶ added in v0.1.51
func (c *Client) PostRawLogWithCompressType(project, logstore string, rawLogData []byte, compressType int, hashKey *string) (err error)
PostRawLogWithCompressType put raw log data to log service, no marshal
func (*Client) PublishAlertEvent ¶ added in v0.1.43
func (*Client) PullLogs ¶
func (c *Client) PullLogs(project, logstore string, shardID int, cursor, endCursor string, logGroupMaxCount int) (gl *LogGroupList, nextCursor string, err error)
PullLogs gets logs from shard specified by shardId according cursor and endCursor. The logGroupMaxCount is the max number of logGroup could be returned. The nextCursor is the next cursor can be used to read logs at next time. @note if you want to pull logs continuous, set endCursor = ""
func (*Client) PullLogsV2 ¶ added in v0.1.53
func (c *Client) PullLogsV2(plr *PullLogRequest) (gl *LogGroupList, nextCursor string, err error)
func (*Client) PullLogsWithQuery ¶ added in v0.1.69
func (c *Client) PullLogsWithQuery(plr *PullLogRequest) (gl *LogGroupList, plm *PullLogMeta, err error)
func (*Client) PutLogs ¶
PutLogs put logs into logstore. The callers should transform user logs into LogGroup.
func (*Client) PutLogsWithCompressType ¶
func (c *Client) PutLogsWithCompressType(project, logstore string, lg *LogGroup, compressType int) (err error)
PutLogsWithCompressType put logs into logstore with specific compress type. The callers should transform user logs into LogGroup.
func (*Client) PutLogsWithMetricStoreURL ¶ added in v0.1.72
func (*Client) PutRawLogWithCompressType ¶
func (c *Client) PutRawLogWithCompressType(project, logstore string, rawLogData []byte, compressType int) (err error)
PutRawLogWithCompressType put raw log data to log service, no marshal
func (*Client) RemoveConfigFromMachineGroup ¶
func (c *Client) RemoveConfigFromMachineGroup(project string, confName, groupName string) (err error)
RemoveConfigFromMachineGroup removes config from machine group.
func (*Client) ResetAccessKeyToken ¶
ResetAccessKeyToken reset client's access key token
func (*Client) RestartETL ¶ added in v0.1.39
func (*Client) RestartExport ¶ added in v0.1.38
func (*Client) SetAuthVersion ¶ added in v0.1.42
func (c *Client) SetAuthVersion(version AuthVersionType)
SetAuthVersion set signature version that the client used
func (*Client) SetHTTPClient ¶ added in v0.1.31
SetHTTPClient set a custom http client, all request will send to sls by this client
func (*Client) SetRegion ¶ added in v0.1.42
SetRegion set a region, must be set if using signature version v4
func (*Client) SetRetryTimeout ¶ added in v0.1.66
SetRetryTimeout set retry timeout
func (*Client) SetUserAgent ¶ added in v0.1.34
SetUserAgent set a custom userAgent
func (*Client) SplitNumShard ¶ added in v0.1.38
func (c *Client) SplitNumShard(project, logstore string, shardID, shardsNum int) (shards []*Shard, err error)
SplitNumShard https://help.aliyun.com/document_detail/29021.html
func (*Client) SplitShard ¶
func (c *Client) SplitShard(project, logstore string, shardID int, splitKey string) (shards []*Shard, err error)
SplitShard https://help.aliyun.com/document_detail/29021.html
func (*Client) TagResources ¶ added in v0.1.13
func (c *Client) TagResources(project string, tags *ResourceTags) error
TagResources tag specific resource
func (*Client) TagResourcesSystemTags ¶ added in v0.1.62
func (c *Client) TagResourcesSystemTags(project string, tags *ResourceSystemTags) error
TagResourcesSystemTags tag specific resource
func (*Client) UnTagResources ¶ added in v0.1.13
func (c *Client) UnTagResources(project string, tags *ResourceUnTags) error
UnTagResources untag specific resource
func (*Client) UnTagResourcesSystemTags ¶ added in v0.1.62
func (c *Client) UnTagResourcesSystemTags(project string, tags *ResourceUnSystemTags) error
TagResourcesSystemTags untag specific resource
func (*Client) UpdateAlertString ¶ added in v0.1.19
func (*Client) UpdateChart ¶
func (*Client) UpdateCheckpoint ¶
func (c *Client) UpdateCheckpoint(project, logstore string, cgName string, consumer string, shardID int, checkpoint string, forceSuccess bool) (err error)
UpdateCheckpoint ...
func (*Client) UpdateConfig ¶
UpdateConfig updates a config.
func (*Client) UpdateConfigString ¶
UpdateConfigString updates a config.
func (*Client) UpdateConsumerGroup ¶
func (c *Client) UpdateConsumerGroup(project, logstore string, cg ConsumerGroup) (err error)
UpdateConsumerGroup ...
func (*Client) UpdateDashboard ¶
func (*Client) UpdateDashboardString ¶
func (*Client) UpdateEtlMeta ¶
func (*Client) UpdateEventStore ¶ added in v0.1.49
func (*Client) UpdateExport ¶ added in v0.1.30
func (*Client) UpdateIndex ¶
UpdateIndex ...
func (*Client) UpdateIndexString ¶
UpdateIndexString ...
func (*Client) UpdateIngestion ¶ added in v0.1.28
func (*Client) UpdateLogStore ¶
UpdateLogStore updates a logstore according by logstore name, obviously we can't modify the logstore name itself.
func (*Client) UpdateLogStoreMeteringMode ¶ added in v0.1.59
func (c *Client) UpdateLogStoreMeteringMode(project string, logstore string, meteringMode string) error
GetLogStoreMeteringMode update the metering mode of logstore, eg. ChargeByFunction / ChargeByDataIngest Warning: this method may affect your billings, for more details ref: https://www.aliyun.com/price/detail/sls
func (*Client) UpdateLogStoreV2 ¶
UpdateLogStoreV2 updates a logstore according by logstore name, obviously we can't modify the logstore name itself.
func (*Client) UpdateLogging ¶ added in v0.1.7
func (*Client) UpdateMachineGroup ¶
func (c *Client) UpdateMachineGroup(project string, m *MachineGroup) (err error)
UpdateMachineGroup updates a machine group.
func (*Client) UpdateMetricAggRules ¶ added in v0.1.19
func (c *Client) UpdateMetricAggRules(project string, aggRules *MetricAggRules) error
func (*Client) UpdateMetricStore ¶ added in v0.1.37
UpdateMetricStore .
func (*Client) UpdateProject ¶
func (c *Client) UpdateProject(name, description string) (*LogProject, error)
UpdateProject create a new loghub project.
func (*Client) UpdateProjectPolicy ¶ added in v0.1.39
func (*Client) UpdateResource ¶ added in v0.1.22
func (*Client) UpdateResourceRecord ¶ added in v0.1.22
func (c *Client) UpdateResourceRecord(resourceName string, record *ResourceRecord) error
func (*Client) UpdateResourceRecordString ¶ added in v0.1.22
func (*Client) UpdateResourceString ¶ added in v0.1.22
func (*Client) UpdateSavedSearch ¶
func (c *Client) UpdateSavedSearch(project string, savedSearch *SavedSearch) error
func (*Client) UpdateScheduledSQL ¶ added in v0.1.22
func (c *Client) UpdateScheduledSQL(project string, scheduledsql *ScheduledSQL) error
func (*Client) UpdateStoreView ¶ added in v0.1.77
func (*Client) UpdateSubStore ¶ added in v0.1.9
UpdateSubStore ...
func (*Client) UpdateSubStoreTTL ¶ added in v0.1.9
UpdateSubStoreTTL ...
func (*Client) WithCredentialsProvider ¶ added in v0.1.55
func (c *Client) WithCredentialsProvider(provider CredentialsProvider) *Client
Set credentialsProvider for client and returns the same client.
type ClientInterface ¶
type ClientInterface interface { // SetUserAgent set userAgent for sls client SetUserAgent(userAgent string) // SetHTTPClient set a custom http client, all request will send to sls by this client SetHTTPClient(client *http.Client) // SetRetryTimeout set retry timeout, client will retry util retry timeout SetRetryTimeout(timeout time.Duration) // #################### Client Operations ##################### // ResetAccessKeyToken reset client's access key token ResetAccessKeyToken(accessKeyID, accessKeySecret, securityToken string) // SetRegion Set region for signature v4 SetRegion(region string) // SetAuthVersion Set signature version SetAuthVersion(version AuthVersionType) // Close the client Close() error // #################### Project Operations ##################### // CreateProject create a new loghub project. CreateProject(name, description string) (*LogProject, error) // CreateProject create a new loghub project, with dataRedundancyType option. CreateProjectV2(name, description, dataRedundancyType string) (*LogProject, error) GetProject(name string) (*LogProject, error) // UpdateProject create a new loghub project. UpdateProject(name, description string) (*LogProject, error) // ListProject list all projects in specific region // the region is related with the client's endpoint ListProject() (projectNames []string, err error) // ListProjectV2 list all projects in specific region // the region is related with the client's endpoint // ref https://www.alibabacloud.com/help/doc-detail/74955.htm ListProjectV2(offset, size int) (projects []LogProject, count, total int, err error) // CheckProjectExist check project exist or not CheckProjectExist(name string) (bool, error) // DeleteProject ... DeleteProject(name string) error // #################### Logstore Operations ##################### // ListLogStore returns all logstore names of project p. ListLogStore(project string) ([]string, error) // GetLogStore returns logstore according by logstore name. GetLogStore(project string, logstore string) (*LogStore, error) // CreateLogStore creates a new logstore in SLS // where name is logstore name, // and ttl is time-to-live(in day) of logs, // and shardCnt is the number of shards, // and autoSplit is auto split, // and maxSplitShard is the max number of shard. CreateLogStore(project string, logstore string, ttl, shardCnt int, autoSplit bool, maxSplitShard int) error // CreateLogStoreV2 creates a new logstore in SLS CreateLogStoreV2(project string, logstore *LogStore) error // DeleteLogStore deletes a logstore according by logstore name. DeleteLogStore(project string, logstore string) (err error) // UpdateLogStore updates a logstore according by logstore name, // obviously we can't modify the logstore name itself. UpdateLogStore(project string, logstore string, ttl, shardCnt int) (err error) // UpdateLogStoreV2 updates a logstore according by logstore name, // obviously we can't modify the logstore name itself. UpdateLogStoreV2(project string, logstore *LogStore) error // CheckLogstoreExist check logstore exist or not CheckLogstoreExist(project string, logstore string) (bool, error) // GetLogStoreMeteringMode get the metering mode of logstore, eg. ChargeByFunction / ChargeByDataIngest GetLogStoreMeteringMode(project string, logstore string) (*GetMeteringModeResponse, error) // GetLogStoreMeteringMode update the metering mode of logstore, eg. ChargeByFunction / ChargeByDataIngest // // Warning: this method may affect your billings, for more details ref: https://www.aliyun.com/price/detail/sls UpdateLogStoreMeteringMode(project string, logstore string, meteringMode string) error // #################### MetricStore Operations ##################### // CreateMetricStore creates a new metric store in SLS. CreateMetricStore(project string, metricStore *LogStore) error // UpdateMetricStore updates a metric store. UpdateMetricStore(project string, metricStore *LogStore) error // DeleteMetricStore deletes a metric store. DeleteMetricStore(project, name string) error // GetMetricStore return a metric store. GetMetricStore(project, name string) (*LogStore, error) // #################### EventStore Operations ##################### // CreateEventStore creates a new event store in SLS. CreateEventStore(project string, eventStore *LogStore) error // UpdateEventStore updates a event store. UpdateEventStore(project string, eventStore *LogStore) error // DeleteEventStore deletes a event store. DeleteEventStore(project, name string) error // GetEventStore return a event store. GetEventStore(project, name string) (*LogStore, error) // ListEventStore returns all eventStore names of project p. ListEventStore(project string, offset, size int) ([]string, error) // #################### StoreView Operations ##################### // CreateStoreView creates a new storeView. CreateStoreView(project string, storeView *StoreView) error // UpdateStoreView updates a storeView. UpdateStoreView(project string, storeView *StoreView) error // DeleteStoreView deletes a storeView. DeleteStoreView(project string, storeViewName string) error // GetStoreView returns storeView. GetStoreView(project string, storeViewName string) (*StoreView, error) // ListStoreViews returns all storeView names of a project. ListStoreViews(project string, req *ListStoreViewsRequest) (*ListStoreViewsResponse, error) // GetStoreViewIndex returns all index config of logstores in the storeView, only support storeType logstore. GetStoreViewIndex(project string, storeViewName string) (*GetStoreViewIndexResponse, error) // #################### Logtail Operations ##################### // ListMachineGroup returns machine group name list and the total number of machine groups. // The offset starts from 0 and the size is the max number of machine groups could be returned. ListMachineGroup(project string, offset, size int) (m []string, total int, err error) // ListMachines list all machines in machineGroupName ListMachines(project, machineGroupName string) (ms []*Machine, total int, err error) ListMachinesV2(project, machineGroupName string, offset, size int) (ms []*Machine, total int, err error) // CheckMachineGroupExist check machine group exist or not CheckMachineGroupExist(project string, machineGroup string) (bool, error) // GetMachineGroup retruns machine group according by machine group name. GetMachineGroup(project string, machineGroup string) (m *MachineGroup, err error) // CreateMachineGroup creates a new machine group in SLS. CreateMachineGroup(project string, m *MachineGroup) error // UpdateMachineGroup updates a machine group. UpdateMachineGroup(project string, m *MachineGroup) (err error) // DeleteMachineGroup deletes machine group according machine group name. DeleteMachineGroup(project string, machineGroup string) (err error) // ListConfig returns config names list and the total number of configs. // The offset starts from 0 and the size is the max number of configs could be returned. ListConfig(project string, offset, size int) (cfgNames []string, total int, err error) // CheckConfigExist check config exist or not CheckConfigExist(project string, config string) (ok bool, err error) // GetConfig returns config according by config name. GetConfig(project string, config string) (logConfig *LogConfig, err error) // GetConfigString returns config according by config name. GetConfigString(name string, config string) (c string, err error) // UpdateConfig updates a config. UpdateConfig(project string, config *LogConfig) (err error) // UpdateConfigString updates a config. UpdateConfigString(project string, configName, configDetail string) (err error) // CreateConfig creates a new config in SLS. CreateConfig(project string, config *LogConfig) (err error) // CreateConfigString creates a new config in SLS. CreateConfigString(project string, config string) (err error) // DeleteConfig deletes a config according by config name. DeleteConfig(project string, config string) (err error) // GetAppliedMachineGroups returns applied machine group names list according config name. GetAppliedMachineGroups(project string, confName string) (groupNames []string, err error) // GetAppliedConfigs returns applied config names list according machine group name groupName. GetAppliedConfigs(project string, groupName string) (confNames []string, err error) // ApplyConfigToMachineGroup applies config to machine group. ApplyConfigToMachineGroup(project string, confName, groupName string) (err error) // RemoveConfigFromMachineGroup removes config from machine group. RemoveConfigFromMachineGroup(project string, confName, groupName string) (err error) // #################### ETL Operations ##################### CreateETL(project string, etljob ETL) error UpdateETL(project string, etljob ETL) error GetETL(project string, etlName string) (ETLJob *ETL, err error) ListETL(project string, offset int, size int) (*ListETLResponse, error) DeleteETL(project string, etlName string) error StartETL(project, name string) error StopETL(project, name string) error RestartETL(project string, etljob ETL) error CreateEtlMeta(project string, etlMeta *EtlMeta) (err error) UpdateEtlMeta(project string, etlMeta *EtlMeta) (err error) DeleteEtlMeta(project string, etlMetaName, etlMetaKey string) (err error) GetEtlMeta(project string, etlMetaName, etlMetaKey string) (etlMeta *EtlMeta, err error) ListEtlMeta(project string, etlMetaName string, offset, size int) (total int, count int, etlMetaList []*EtlMeta, err error) ListEtlMetaWithTag(project string, etlMetaName, etlMetaTag string, offset, size int) (total int, count int, etlMetaList []*EtlMeta, err error) ListEtlMetaName(project string, offset, size int) (total int, count int, etlMetaNameList []string, err error) // #################### Shard Operations ##################### // ListShards returns shard id list of this logstore. ListShards(project, logstore string) (shards []*Shard, err error) // SplitShard https://help.aliyun.com/document_detail/29021.html, SplitShard(project, logstore string, shardID int, splitKey string) (shards []*Shard, err error) // SplitNumShard https://help.aliyun.com/document_detail/29021.html, SplitNumShard(project, logstore string, shardID, shardsNum int) (shards []*Shard, err error) // MergeShards https://help.aliyun.com/document_detail/29022.html MergeShards(project, logstore string, shardID int) (shards []*Shard, err error) // #################### Log Operations ##################### PutLogsWithMetricStoreURL(project, logstore string, lg *LogGroup) (err error) // PutLogs put logs into logstore. // The callers should transform user logs into LogGroup. PutLogs(project, logstore string, lg *LogGroup) (err error) // PostLogStoreLogs put logs into Shard logstore by hashKey. // The callers should transform user logs into LogGroup. PostLogStoreLogs(project, logstore string, lg *LogGroup, hashKey *string) (err error) PostLogStoreLogsV2(project, logstore string, req *PostLogStoreLogsRequest) (err error) // PostRawLogWithCompressType put logs into logstore with specific compress type and hashKey. PostRawLogWithCompressType(project, logstore string, rawLogData []byte, compressType int, hashKey *string) (err error) // PutLogsWithCompressType put logs into logstore with specific compress type. // The callers should transform user logs into LogGroup. PutLogsWithCompressType(project, logstore string, lg *LogGroup, compressType int) (err error) // PutRawLogWithCompressType put raw log data to log service, no marshal PutRawLogWithCompressType(project, logstore string, rawLogData []byte, compressType int) (err error) // GetCursor gets log cursor of one shard specified by shardId. // The from can be in three form: a) unix timestamp in seccond, b) "begin", c) "end". // For more detail please read: https://help.aliyun.com/document_detail/29024.html GetCursor(project, logstore string, shardID int, from string) (cursor string, err error) // GetCursorTime gets the server time based on the cursor. // For more detail please read: https://help.aliyun.com/document_detail/113274.html GetCursorTime(project, logstore string, shardID int, cursor string) (cursorTime time.Time, err error) // GetLogsBytes gets logs binary data from shard specified by shardId according cursor and endCursor. // The logGroupMaxCount is the max number of logGroup could be returned. // The nextCursor is the next curosr can be used to read logs at next time. GetLogsBytes(project, logstore string, shardID int, cursor, endCursor string, logGroupMaxCount int) (out []byte, nextCursor string, err error) // Deprecated: Use GetLogsBytesWithQuery instead. GetLogsBytesV2(plr *PullLogRequest) (out []byte, nextCursor string, err error) GetLogsBytesWithQuery(plr *PullLogRequest) (out []byte, plm *PullLogMeta, err error) // PullLogs gets logs from shard specified by shardId according cursor and endCursor. // The logGroupMaxCount is the max number of logGroup could be returned. // The nextCursor is the next cursor can be used to read logs at next time. // @note if you want to pull logs continuous, set endCursor = "" PullLogs(project, logstore string, shardID int, cursor, endCursor string, logGroupMaxCount int) (gl *LogGroupList, nextCursor string, err error) // Deprecated: Use PullLogsWithQuery instead. PullLogsV2(plr *PullLogRequest) (gl *LogGroupList, nextCursor string, err error) PullLogsWithQuery(plr *PullLogRequest) (gl *LogGroupList, plm *PullLogMeta, err error) // GetHistograms query logs with [from, to) time range GetHistograms(project, logstore string, topic string, from int64, to int64, queryExp string) (*GetHistogramsResponse, error) // GetLogs query logs with [from, to) time range GetLogs(project, logstore string, topic string, from int64, to int64, queryExp string, maxLineNum int64, offset int64, reverse bool) (*GetLogsResponse, error) GetLogLines(project, logstore string, topic string, from int64, to int64, queryExp string, maxLineNum int64, offset int64, reverse bool) (*GetLogLinesResponse, error) // GetLogsByNano query logs with [fromInNs, toInNs) nano time range GetLogsByNano(project, logstore string, topic string, fromInNs int64, toInNs int64, queryExp string, maxLineNum int64, offset int64, reverse bool) (*GetLogsResponse, error) GetLogLinesByNano(project, logstore string, topic string, fromInNs int64, toInNs int64, queryExp string, maxLineNum int64, offset int64, reverse bool) (*GetLogLinesResponse, error) GetLogsV2(project, logstore string, req *GetLogRequest) (*GetLogsResponse, error) GetLogLinesV2(project, logstore string, req *GetLogRequest) (*GetLogLinesResponse, error) GetLogsV3(project, logstore string, req *GetLogRequest) (*GetLogsV3Response, error) // GetHistogramsToCompleted query logs with [from, to) time range to completed GetHistogramsToCompleted(project, logstore string, topic string, from int64, to int64, queryExp string) (*GetHistogramsResponse, error) // GetLogsToCompleted query logs with [from, to) time range to completed GetLogsToCompleted(project, logstore string, topic string, from int64, to int64, queryExp string, maxLineNum int64, offset int64, reverse bool) (*GetLogsResponse, error) // GetLogsToCompletedV2 query logs with [from, to) time range to completed GetLogsToCompletedV2(project, logstore string, req *GetLogRequest) (*GetLogsResponse, error) // GetLogsToCompletedV3 query logs with [from, to) time range to completed GetLogsToCompletedV3(project, logstore string, req *GetLogRequest) (*GetLogsV3Response, error) // #################### Index Operations ##################### // CreateIndex ... CreateIndex(project, logstore string, index Index) error // CreateIndexString ... CreateIndexString(project, logstore string, indexStr string) error // UpdateIndex ... UpdateIndex(project, logstore string, index Index) error // UpdateIndexString ... UpdateIndexString(project, logstore string, indexStr string) error // DeleteIndex ... DeleteIndex(project, logstore string) error // GetIndex ... GetIndex(project, logstore string) (*Index, error) // GetIndexString ... GetIndexString(project, logstore string) (string, error) // #################### Chart&Dashboard Operations ##################### ListDashboard(project string, dashboardName string, offset, size int) (dashboardList []string, count, total int, err error) ListDashboardV2(project string, dashboardName string, offset, size int) (dashboardList []string, dashboardItems []ResponseDashboardItem, count, total int, err error) GetDashboard(project, name string) (dashboard *Dashboard, err error) GetDashboardString(project, name string) (dashboard string, err error) DeleteDashboard(project, name string) error UpdateDashboard(project string, dashboard Dashboard) error UpdateDashboardString(project string, dashboardName, dashboardStr string) error CreateDashboard(project string, dashboard Dashboard) error CreateDashboardString(project string, dashboardStr string) error GetChart(project, dashboardName, chartName string) (chart *Chart, err error) DeleteChart(project, dashboardName, chartName string) error UpdateChart(project, dashboardName string, chart Chart) error CreateChart(project, dashboardName string, chart Chart) error // #################### SavedSearch&Alert Operations ##################### CreateSavedSearch(project string, savedSearch *SavedSearch) error UpdateSavedSearch(project string, savedSearch *SavedSearch) error DeleteSavedSearch(project string, savedSearchName string) error GetSavedSearch(project string, savedSearchName string) (*SavedSearch, error) ListSavedSearch(project string, savedSearchName string, offset, size int) (savedSearches []string, total int, count int, err error) ListSavedSearchV2(project string, savedSearchName string, offset, size int) (savedSearches []string, savedsearchItems []ResponseSavedSearchItem, total int, count int, err error) CreateAlert(project string, alert *Alert) error UpdateAlert(project string, alert *Alert) error DeleteAlert(project string, alertName string) error GetAlert(project string, alertName string) (*Alert, error) DisableAlert(project string, alertName string) error EnableAlert(project string, alertName string) error ListAlert(project, alertName, dashboard string, offset, size int) (alerts []*Alert, total int, count int, err error) CreateAlertString(project string, alert string) error UpdateAlertString(project string, alertName, alert string) error GetAlertString(project string, alertName string) (string, error) // #################### Consumer Operations ##################### CreateConsumerGroup(project, logstore string, cg ConsumerGroup) (err error) UpdateConsumerGroup(project, logstore string, cg ConsumerGroup) (err error) DeleteConsumerGroup(project, logstore string, cgName string) (err error) ListConsumerGroup(project, logstore string) (cgList []*ConsumerGroup, err error) HeartBeat(project, logstore string, cgName, consumer string, heartBeatShardIDs []int) (shardIDs []int, err error) UpdateCheckpoint(project, logstore string, cgName string, consumer string, shardID int, checkpoint string, forceSuccess bool) (err error) GetCheckpoint(project, logstore string, cgName string) (checkPointList []*ConsumerGroupCheckPoint, err error) // ####################### Resource Tags API ###################### // TagResources tag specific resource TagResources(project string, tags *ResourceTags) error // UnTagResources untag specific resource UnTagResources(project string, tags *ResourceUnTags) error // ListTagResources list rag resources ListTagResources(project string, resourceType string, resourceIDs []string, tags []ResourceFilterTag, nextToken string) (respTags []*ResourceTagResponse, respNextToken string, err error) // TagResourcesSystemTags tag specific resource TagResourcesSystemTags(project string, tags *ResourceSystemTags) error // UnTagResourcesSystemTags untag specific resource UnTagResourcesSystemTags(project string, tags *ResourceUnSystemTags) error // ListSystemTagResources list system tag resources ListSystemTagResources(project string, resourceType string, resourceIDs []string, tags []ResourceFilterTag, tagOwnerUid string, category string, scope string, nextToken string) (respTags []*ResourceTagResponse, respNextToken string, err error) CreateScheduledSQL(project string, scheduledsql *ScheduledSQL) error DeleteScheduledSQL(project string, name string) error UpdateScheduledSQL(project string, scheduledsql *ScheduledSQL) error GetScheduledSQL(project string, name string) (*ScheduledSQL, error) ListScheduledSQL(project, name, displayName string, offset, size int) ([]*ScheduledSQL, int, int, error) GetScheduledSQLJobInstance(projectName, jobName, instanceId string, result bool) (instance *ScheduledSQLJobInstance, err error) ModifyScheduledSQLJobInstanceState(projectName, jobName, instanceId string, state ScheduledSQLState) error ListScheduledSQLJobInstances(projectName, jobName string, status *InstanceStatus) (instances []*ScheduledSQLJobInstance, total, count int64, err error) // #################### Resource Operations ##################### ListResource(resourceType string, resourceName string, offset, size int) (resourceList []*Resource, count, total int, err error) GetResource(name string) (resource *Resource, err error) GetResourceString(name string) (resource string, err error) DeleteResource(name string) error UpdateResource(resource *Resource) error UpdateResourceString(resourceName, resourceStr string) error CreateResource(resource *Resource) error CreateResourceString(resourceStr string) error // #################### Resource Record Operations ##################### ListResourceRecord(resourceName string, offset, size int) (recordList []*ResourceRecord, count, total int, err error) GetResourceRecord(resourceName, recordId string) (record *ResourceRecord, err error) GetResourceRecordString(resourceName, name string) (record string, err error) DeleteResourceRecord(resourceName, recordId string) error UpdateResourceRecord(resourceName string, record *ResourceRecord) error UpdateResourceRecordString(resourceName, recordStr string) error CreateResourceRecord(resourceName string, record *ResourceRecord) error CreateResourceRecordString(resourceName, recordStr string) error // #################### Ingestion ##################### CreateIngestion(project string, ingestion *Ingestion) error UpdateIngestion(project string, ingestion *Ingestion) error GetIngestion(project string, name string) (*Ingestion, error) ListIngestion(project, logstore, name, displayName string, offset, size int) (ingestions []*Ingestion, total, count int, error error) DeleteIngestion(project string, name string) error // #################### Export ##################### CreateExport(project string, export *Export) error UpdateExport(project string, export *Export) error GetExport(project, name string) (*Export, error) ListExport(project, logstore, name, displayName string, offset, size int) (exports []*Export, total, count int, error error) DeleteExport(project string, name string) error RestartExport(project string, export *Export) error // UpdateProjectPolicy updates project's policy. UpdateProjectPolicy(project string, policy string) error // DeleteProjectPolicy deletes project's policy. DeleteProjectPolicy(project string) error // GetProjectPolicy return project's policy. GetProjectPolicy(project string) (string, error) // #################### AlertPub Msg ##################### PublishAlertEvent(project string, alertResult []byte) error }
ClientInterface for all log's open api
func CreateNormalInterface
deprecated
func CreateNormalInterface(endpoint, accessKeyID, accessKeySecret, securityToken string) ClientInterface
CreateNormalInterface create a normal client.
Deprecated: use CreateNormalInterfaceV2 instead. If you keep using long-lived AccessKeyID and AccessKeySecret, use the example code below.
provider := NewStaticCredentialsProvider(accessKeyID, accessKeySecret, securityToken) client := CreateNormalInterfaceV2(endpoint, provider)
func CreateNormalInterfaceV2 ¶ added in v0.1.55
func CreateNormalInterfaceV2(endpoint string, credentialsProvider CredentialsProvider) ClientInterface
CreateNormalInterfaceV2 create a normal client, with a CredentialsProvider.
It is highly recommended to use a CredentialsProvider that provides dynamic expirable credentials for security.
See [credentials_provider.go] for more details.
func CreateTokenAutoUpdateClient
deprecated
func CreateTokenAutoUpdateClient(endpoint string, tokenUpdateFunc UpdateTokenFunction, shutdown <-chan struct{}) (client ClientInterface, err error)
CreateTokenAutoUpdateClient create a TokenAutoUpdateClient, this client will auto fetch security token and retry when operation is `Unauthorized`
Deprecated: Use CreateNormalInterfaceV2 and UpdateFuncProviderAdapter instead.
Example:
provider := NewUpdateFuncProviderAdapter(updateStsTokenFunc) client := CreateNormalInterfaceV2(endpoint, provider)
@note TokenAutoUpdateClient will destroy when shutdown channel is closed
type ColumnStorageContentDetail ¶ added in v0.1.30
type ColumnStorageContentDetail struct {
Columns []Column `json:"columns"`
}
type CommonConfigInputDetail ¶
type CommonConfigInputDetail struct { LocalStorage bool `json:"localStorage"` FilterKeys []string `json:"filterKey,omitempty"` FilterRegex []string `json:"filterRegex,omitempty"` ShardHashKey []string `json:"shardHashKey,omitempty"` EnableTag bool `json:"enableTag"` EnableRawLog bool `json:"enableRawLog"` MaxSendRate int `json:"maxSendRate"` SendRateExpire int `json:"sendRateExpire"` SensitiveKeys []SensitiveKey `json:"sensitive_keys,omitempty"` MergeType string `json:"mergeType,omitempty"` DelayAlarmBytes int `json:"delayAlarmBytes,omitempty"` AdjustTimeZone bool `json:"adjustTimezone"` LogTimeZone string `json:"logTimezone,omitempty"` Priority int `json:"priority,omitempty"` }
CommonConfigInputDetail is all input detail's basic config
type ConditionConfiguration ¶ added in v0.1.22
type ConditionOperation ¶
ConditionOperation : retry depends on the retured bool
type ConfigPluginCanal ¶
type ConfigPluginCanal struct { Host string Port int User string Password string Flavor string ServerID int IncludeTables []string ExcludeTables []string StartBinName string StartBinLogPos int HeartBeatPeriod int ReadTimeout int EnableDDL bool EnableXID bool EnableGTID bool EnableInsert bool EnableUpdate bool EnableDelete bool TextToString bool StartFromBegining bool Charset string }
func CreateConfigPluginCanal ¶
func CreateConfigPluginCanal() *ConfigPluginCanal
type ConfigPluginDockerStdout ¶
type ConfigPluginDockerStdout struct { IncludeLabel map[string]string ExcludeLabel map[string]string IncludeEnv map[string]string ExcludeEnv map[string]string FlushIntervalMs int TimeoutMs int BeginLineRegex string BeginLineTimeoutMs int BeginLineCheckLength int MaxLogSize int Stdout bool Stderr bool }
func CreateConfigPluginDockerStdout ¶
func CreateConfigPluginDockerStdout() *ConfigPluginDockerStdout
type ConsumerGroup ¶
type ConsumerGroup struct { ConsumerGroupName string `json:"consumerGroup"` Timeout int `json:"timeout"` // timeout seconds InOrder bool `json:"order"` }
ConsumerGroup type define
func (*ConsumerGroup) String ¶ added in v0.1.44
func (cg *ConsumerGroup) String() string
type ConsumerGroupCheckPoint ¶
type ConsumerGroupCheckPoint struct { ShardID int `json:"shard"` CheckPoint string `json:"checkpoint"` UpdateTime int64 `json:"updateTime"` Consumer string `json:"consumer"` }
ConsumerGroupCheckPoint type define
type Credentials ¶ added in v0.1.55
type CredentialsFetcher ¶ added in v0.1.55
type CredentialsFetcher = func() (*tempCredentials, error)
type CredentialsProvider ¶ added in v0.1.55
type CredentialsProvider interface { /** * GetCredentials is called everytime credentials are needed, the CredentialsProvider * should cache credentials to avoid fetch credentials too frequently. * * @note GetCredentials must be thread-safe to avoid data race. */ GetCredentials() (Credentials, error) }
func NewEcsRamRoleCredentialsProvider ¶ added in v0.1.83
func NewEcsRamRoleCredentialsProvider(roleName string) CredentialsProvider
*
- Create a credentials provider that uses ecs ram role, only works on ecs. *
type CsvContentDetail ¶ added in v0.1.30
type DataFormat ¶ added in v0.1.22
type DataFormat string
const ( LOG_TO_LOG DataFormat = "log2log" LOG_TO_METRIC DataFormat = "log2metric" METRIC_TO_metric DataFormat = "metric2metric" )
type DataSink ¶ added in v0.1.30
type DataSink interface {
DataSinkType() DataSinkType
}
type DataSinkType ¶ added in v0.1.30
type DataSinkType string
type DataSource ¶ added in v0.1.28
type DataSource struct {
DataSourceType DataSourceType `json:"type"`
}
type DataSourceType ¶ added in v0.1.28
type DataSourceType string
type DelimitedTextFormat ¶ added in v0.1.28
type DelimitedTextFormat struct { StructureDataFormat FieldNames []string `json:"fieldNames"` FieldDelimiter string `json:"fieldDelimiter"` QuoteChar string `json:"quoteChar"` EscapeChar string `json:"escapeChar"` SkipLeadingRows int64 `json:"skipLeadingRows"` MaxLines int64 `json:"maxLines"` FirstRowAsHeader bool `json:"firstRowAsHeader"` }
type DelimiterConfigInputDetail ¶
type DelimiterConfigInputDetail struct { LocalFileConfigInputDetail Separator string `json:"separator"` Quote string `json:"quote"` Key []string `json:"key"` TimeKey string `json:"timeKey"` AutoExtend bool `json:"autoExtend"` AcceptNoEnoughKeys bool `json:"acceptNoEnoughKeys"` }
DelimiterConfigInputDetail delimiter log config
func ConvertToDelimiterConfigInputDetail ¶
func ConvertToDelimiterConfigInputDetail(detail InputDetailInterface) (*DelimiterConfigInputDetail, bool)
type ETL ¶ added in v0.1.16
type ETL struct { Configuration ETLConfiguration `json:"configuration"` Description string `json:"description,omitempty"` DisplayName string `json:"displayName"` Name string `json:"name"` Schedule ETLSchedule `json:"schedule"` Type string `json:"type"` Status string `json:"status"` CreateTime int32 `json:"createTime,omitempty"` LastModifiedTime int32 `json:"lastModifiedTime,omitempty"` }
type ETLConfiguration ¶ added in v0.1.16
type ETLConfiguration struct { AccessKeyId string `json:"accessKeyId"` AccessKeySecret string `json:"accessKeySecret"` FromTime int64 `json:"fromTime,omitempty"` Logstore string `json:"logstore"` Parameters map[string]string `json:"parameters,omitempty"` RoleArn string `json:"roleArn,omitempty"` Script string `json:"script"` ToTime int32 `json:"toTime,omitempty"` Version int8 `json:"version"` ETLSinks []ETLSink `json:"sinks"` }
type ETLJob ¶
type ETLJob struct { JobName string `json:"etlJobName"` SourceConfig *SourceConfig `json:"sourceConfig"` TriggerConfig *TriggerConfig `json:"triggerConfig"` FunctionConfig *FunctionConfig `json:"functionConfig"` // TODO: change this to map[string]interface{} once log service fixes the format FunctionParameter interface{} `json:"functionParameter"` LogConfig *JobLogConfig `json:"logConfig"` Enable bool `json:"enable"` CreateTime int64 `json:"createTime"` UpdateTime int64 `json:"updateTime"` }
This module is only used in SLS Trigger for Aliyun FunctionCompute.
func (*ETLJob) UnmarshalJSON ¶
This can be removed once log service returns function parameter in json type. "functionParameter":{"a":1} instead of "functionParameter":"{\"a\":1}"
type ETLSchedule ¶ added in v0.1.16
type ETLSchedule struct {
Type string `json:"type"`
}
type ETLSink ¶ added in v0.1.16
type ETLSink struct { AccessKeyId string `json:"accessKeyId"` AccessKeySecret string `json:"accessKeySecret"` Endpoint string `json:"endpoint"` Logstore string `json:"logstore"` Name string `json:"name"` Project string `json:"project"` RoleArn string `json:"roleArn,omitempty"` Type string `json:"type,omitempty"` }
type EncryptConf ¶ added in v0.1.21
type EncryptConf struct { Enable bool `json:"enable"` EncryptType string `json:"encrypt_type"` UserCmkInfo *EncryptUserCmkConf `json:"user_cmk_info,omitempty"` }
encrypt struct
type EncryptUserCmkConf ¶ added in v0.1.21
type EncryptUserCmkConf struct { CmkKeyId string `json:"cmk_key_id"` Arn string `json:"arn"` RegionId string `json:"region_id"` }
EncryptUserCmkConf struct
type Error ¶
type Error struct { HTTPCode int32 `json:"httpCode"` Code string `json:"errorCode"` Message string `json:"errorMessage"` RequestID string `json:"requestID"` }
Error defines sls error
type Export ¶ added in v0.1.30
type Export struct { ScheduledJob ExportConfiguration *ExportConfiguration `json:"configuration"` }
type ExportConfiguration ¶ added in v0.1.30
type ExportConfiguration struct { FromTime int64 `json:"fromTime"` ToTime int64 `json:"toTime"` LogStore string `json:"logstore"` Parameters map[string]string `json:"parameters"` RoleArn string `json:"roleArn"` Version ExportVersion `json:"version"` DataSink DataSink `json:"sink"` }
func (*ExportConfiguration) UnmarshalJSON ¶ added in v0.1.30
func (e *ExportConfiguration) UnmarshalJSON(data []byte) error
type ExportVersion ¶ added in v0.1.30
type ExportVersion string
type FunctionConfig ¶
type FunctionConfig struct { FunctionProvider string `json:"functionProvider"` Endpoint string `json:"endpoint"` AccountID string `json:"accountId"` RegionName string `json:"regionName"` ServiceName string `json:"serviceName"` FunctionName string `json:"functionName"` RoleARN string `json:"roleArn"` }
type GetContextLogsResponse ¶ added in v0.1.6
type GetContextLogsResponse struct { Progress string `json:"progress"` TotalLines int64 `json:"total_lines"` BackLines int64 `json:"back_lines"` ForwardLines int64 `json:"forward_lines"` Logs []map[string]string `json:"logs"` }
func (*GetContextLogsResponse) IsComplete ¶ added in v0.1.6
func (resp *GetContextLogsResponse) IsComplete() bool
type GetHistogramsResponse ¶
type GetHistogramsResponse struct { Progress string `json:"progress"` Count int64 `json:"count"` Histograms []SingleHistogram `json:"histograms"` }
func (*GetHistogramsResponse) IsComplete ¶
func (resp *GetHistogramsResponse) IsComplete() bool
type GetLogLinesResponse ¶ added in v0.1.17
type GetLogLinesResponse struct { GetLogsResponse Lines []json.RawMessage }
GetLogLinesResponse defines response from GetLogLines call note: GetLogLinesResponse.Logs is nil when use GetLogLinesResponse
type GetLogRequest ¶ added in v0.1.24
type GetLogRequest struct { From int64 `json:"from"` // unix time, eg time.Now().Unix() - 900 To int64 `json:"to"` // unix time, eg time.Now().Unix() Topic string `json:"topic"` // @note topic is not used anymore, use __topic__ : xxx in query instead Lines int64 `json:"line"` // max 100; offset, lines and reverse is ignored when use SQL in query Offset int64 `json:"offset"` Reverse bool `json:"reverse"` Query string `json:"query"` PowerSQL bool `json:"powerSql"` FromNsPart int32 `json:"fromNs"` ToNsPart int32 `json:"toNs"` NeedHighlight bool `json:"highlight"` IsAccurate bool `json:"accurate"` }
GetLogRequest for GetLogsV2
func (*GetLogRequest) ToURLParams ¶ added in v0.1.24
func (glr *GetLogRequest) ToURLParams() url.Values
type GetLogsResponse ¶
type GetLogsResponse struct { Progress string `json:"progress"` Count int64 `json:"count"` Logs []map[string]string `json:"logs"` Contents string `json:"contents"` HasSQL bool `json:"hasSQL"` Header http.Header `json:"header"` }
GetLogsResponse defines response from GetLogs call
func (*GetLogsResponse) GetKeys ¶ added in v0.1.5
func (resp *GetLogsResponse) GetKeys() (error, []string)
func (*GetLogsResponse) IsComplete ¶
func (resp *GetLogsResponse) IsComplete() bool
type GetLogsV3Response ¶ added in v0.1.45
type GetLogsV3Response struct { Meta GetLogsV3ResponseMeta `json:"meta"` Logs []map[string]string `json:"data"` }
GetLogsV3Response defines response from GetLogs call
func (*GetLogsV3Response) IsComplete ¶ added in v0.1.56
func (resp *GetLogsV3Response) IsComplete() bool
type GetLogsV3ResponseMeta ¶ added in v0.1.45
type GetLogsV3ResponseMeta struct { Progress string `json:"progress"` AggQuery string `json:"aggQuery"` WhereQuery string `json:"whereQuery"` HasSQL bool `json:"hasSQL"` ProcessedRows int64 `json:"processedRows"` ElapsedMillisecond int64 `json:"elapsedMillisecond"` CpuSec float64 `json:"cpuSec"` CpuCores float64 `json:"cpuCores"` Limited int64 `json:"limited"` Count int64 `json:"count"` ProcessedBytes int64 `json:"processedBytes"` TelemetryType string `json:"telementryType"` // telementryType, ignore typo PowerSql bool `json:"powerSql"` InsertedSql string `json:"insertedSQL"` Keys []string `json:"keys,omitempty"` Terms []MetaTerm `json:"terms,omitempty"` Marker *string `json:"marker,omitempty"` Mode *int `json:"mode,omitempty"` PhraseQueryInfo *PhraseQueryInfoV3 `json:"phraseQueryInfo,omitempty"` Shard *int `json:"shard,omitempty"` ScanBytes *int64 `json:"scanBytes,omitempty"` IsAccurate *bool `json:"isAccurate,omitempty"` ColumnTypes []string `json:"columnTypes,omitempty"` Highlights []map[string]string `json:"highlights,omitempty"` }
type GetMeteringModeResponse ¶ added in v0.1.59
type GetMeteringModeResponse struct {
MeteringMode string `json:"meteringMode"`
}
type GetStoreViewIndexResponse ¶ added in v0.1.77
type GetStoreViewIndexResponse struct { Indexes []*StoreViewIndex `json:"indexes"` StoreViewErrors []*StoreViewErrors `json:"storeViewErrors"` }
type GlobalConfig ¶ added in v0.1.22
type GlobalConfig struct { ConfigId string `json:"config_id"` ConfigName string `json:"config_name"` ConfigDetail struct { AlertCenterLog struct { Region string `json:"region"` } `json:"alert_center_log"` } `json:"config_detail"` }
GlobalConfig is the global configuration for alerts.
type GroupConfiguration ¶ added in v0.1.22
type Index ¶
type Index struct { Keys map[string]IndexKey `json:"keys,omitempty"` Line *IndexLine `json:"line,omitempty"` Ttl uint32 `json:"ttl,omitempty"` MaxTextLen uint32 `json:"max_text_len,omitempty"` LogReduce bool `json:"log_reduce"` LogReduceWhiteListDict []string `json:"log_reduce_white_list,omitempty"` LogReduceBlackListDict []string `json:"log_reduce_black_list,omitempty"` }
Index is an index config for a log store.
func CreateDefaultIndex ¶
func CreateDefaultIndex() *Index
CreateDefaultIndex return a full text index config
type IndexKey ¶
type IndexKey struct { Token []string `json:"token"` // tokens that split the log line. CaseSensitive bool `json:"caseSensitive"` Type string `json:"type"` // text, long, double DocValue bool `json:"doc_value,omitempty"` Alias string `json:"alias,omitempty"` Chn bool `json:"chn"` // parse chinese or not JsonKeys map[string]*JsonKey `json:"json_keys,omitempty"` }
IndexKey ...
type Ingestion ¶ added in v0.1.28
type Ingestion struct { ScheduledJob IngestionConfiguration *IngestionConfiguration `json:"configuration"` }
type IngestionConfiguration ¶ added in v0.1.28
type IngestionGeneralSource ¶ added in v0.1.28
type IngestionGeneralSource struct { DataSource Fields map[string]interface{} }
ingestion general source
type InputDetail ¶
type InputDetail struct { LogType string `json:"logType"` LogPath string `json:"logPath"` FilePattern string `json:"filePattern"` LocalStorage bool `json:"localStorage"` TimeKey string `json:"timeKey"` 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"` Separator string `json:"separator"` AutoExtend bool `json:"autoExtend"` }
InputDetail defines log_config input @note : deprecated and no maintenance
func ConvertToInputDetail ¶
func ConvertToInputDetail(detail InputDetailInterface) (*InputDetail, bool)
type InputDetailInterface ¶
type InputDetailInterface interface { }
InputDetailInterface all input detail's interface
type InstanceStatus ¶ added in v0.1.22
type InstanceStatus struct { FromTime int64 ToTime int64 Offset int64 Size int64 State ScheduledSQLState }
type JSONConfigInputDetail ¶
type JSONConfigInputDetail struct { LocalFileConfigInputDetail TimeKey string `json:"timeKey"` }
JSONConfigInputDetail pure json log config
func ConvertToJSONConfigInputDetail ¶
func ConvertToJSONConfigInputDetail(detail InputDetailInterface) (*JSONConfigInputDetail, bool)
type JSONFormat ¶ added in v0.1.28
type JSONFormat struct { StructureDataFormat SkipInvalidRows bool `json:"skipInvalidRows"` }
type JobLogConfig ¶
type JoinConfiguration ¶ added in v0.1.22
type JsonContentDetail ¶ added in v0.1.30
type JsonContentDetail struct {
EnableTag bool `json:"enableTag"`
}
type KafkaPosition ¶ added in v0.1.28
type KafkaPosition string
type KafkaSource ¶ added in v0.1.28
type KafkaSource struct { DataSource Topics string `json:"topics"` BootStrapServers string `json:"bootstrapServers"` ValueType KafkaValueType `json:"valueType"` FromPosition KafkaPosition `json:"fromPosition"` FromTimeStamp int64 `json:"fromTimestamp"` ToTimeStamp int64 `json:"toTimestamp"` TimeField string `json:"timeField"` TimePattern string `json:"timePattern"` TimeFormat string `json:"timeFormat"` TimeZone string `json:"timeZone"` Communication string `json:"communication"` NameResolutions string `json:"nameResolutions"` AdditionalProps map[string]string `json:"additionalProps"` VpcId string `json:"vpcId"` }
type LineFormat ¶ added in v0.1.28
type LineFormat struct { OSSDataFormat TimePattern string `json:"timePattern"` }
type ListETLResponse ¶ added in v0.1.16
type ListStoreViewsRequest ¶ added in v0.1.77
type ListStoreViewsResponse ¶ added in v0.1.77
type LocalFileConfigInputDetail ¶
type LocalFileConfigInputDetail struct { CommonConfigInputDetail LogType string `json:"logType"` LogPath string `json:"logPath"` FilePattern string `json:"filePattern"` TimeFormat string `json:"timeFormat"` TopicFormat string `json:"topicFormat,omitempty"` Preserve bool `json:"preserve"` PreserveDepth int `json:"preserveDepth"` FileEncoding string `json:"fileEncoding,omitempty"` DiscardUnmatch bool `json:"discardUnmatch"` MaxDepth int `json:"maxDepth"` TailExisted bool `json:"tailExisted"` DiscardNonUtf8 bool `json:"discardNonUtf8"` DelaySkipBytes int `json:"delaySkipBytes"` IsDockerFile bool `json:"dockerFile"` DockerIncludeLabel map[string]string `json:"dockerIncludeLabel,omitempty"` DockerExcludeLabel map[string]string `json:"dockerExcludeLabel,omitempty"` DockerIncludeEnv map[string]string `json:"dockerIncludeEnv,omitempty"` DockerExcludeEnv map[string]string `json:"dockerExcludeEnv,omitempty"` PluginDetail map[string]interface{} `json:"plugin,omitempty"` Advanced map[string]interface{} `json:"advanced,omitempty"` }
LocalFileConfigInputDetail all file input detail's basic config
type Log ¶
type Log struct { Time *uint32 `protobuf:"varint,1,req,name=Time" json:"Time,omitempty"` Contents []*LogContent `protobuf:"bytes,2,rep,name=Contents" json:"Contents,omitempty"` TimeNs *uint32 `protobuf:"fixed32,4,opt,name=TimeNs" json:"TimeNs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Log) Descriptor ¶
func (*Log) GetContents ¶
func (m *Log) GetContents() []*LogContent
func (*Log) MarshalToSizedBuffer ¶ added in v0.1.50
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) XXX_DiscardUnknown ¶ added in v0.1.50
func (m *Log) XXX_DiscardUnknown()
func (*Log) XXX_Marshal ¶ added in v0.1.50
func (*Log) XXX_Unmarshal ¶ added in v0.1.50
type LogCompressor ¶ added in v0.1.81
type LogCompressor interface { // Compress src into dst. If you have a buffer to use, you can pass it to // prevent allocation. If it is too small, or if nil is passed, a new buffer // will be allocated and returned. Compress(src, dst []byte) ([]byte, error) // Decompress src into dst. If you have a buffer to use, you can pass it to // prevent allocation. If it is too small, or if nil is passed, a new buffer // will be allocated and returned. Decompress(src, dst []byte) ([]byte, error) }
type LogConfig ¶
type LogConfig struct { Name string `json:"configName"` LogSample string `json:"logSample"` InputType string `json:"inputType"` // syslog plugin file InputDetail InputDetailInterface `json:"inputDetail"` OutputType string `json:"outputType"` OutputDetail OutputDetail `json:"outputDetail"` CreateTime uint32 `json:"createTime,omitempty"` LastModifyTime uint32 `json:"lastModifyTime,omitempty"` }
LogConfig defines log config
type LogConfigPluginInput ¶
type LogConfigPluginInput struct { Inputs []*PluginInputItem `json:"inputs"` Processors []*PluginInputItem `json:"processors,omitempty"` Aggregators []*PluginInputItem `json:"aggregators,omitempty"` Flushers []*PluginInputItem `json:"flushers,omitempty"` }
type LogContent ¶
type LogContent struct { Key *string `protobuf:"bytes,1,req,name=Key" json:"Key,omitempty"` Value *string `protobuf:"bytes,2,req,name=Value" json:"Value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` // contains filtered or unexported fields }
func (*LogContent) Descriptor ¶
func (*LogContent) Descriptor() ([]byte, []int)
func (*LogContent) GetKey ¶
func (m *LogContent) GetKey() string
func (*LogContent) GetValue ¶
func (m *LogContent) GetValue() string
func (*LogContent) Marshal ¶
func (m *LogContent) Marshal() (dAtA []byte, err error)
func (*LogContent) MarshalToSizedBuffer ¶ added in v0.1.50
func (m *LogContent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LogContent) ProtoMessage ¶
func (*LogContent) ProtoMessage()
func (*LogContent) Reset ¶
func (m *LogContent) Reset()
func (*LogContent) Size ¶
func (m *LogContent) Size() (n int)
func (*LogContent) String ¶
func (m *LogContent) String() string
func (*LogContent) Unmarshal ¶
func (m *LogContent) Unmarshal(dAtA []byte) error
func (*LogContent) XXX_DiscardUnknown ¶ added in v0.1.50
func (m *LogContent) XXX_DiscardUnknown()
func (*LogContent) XXX_Marshal ¶ added in v0.1.50
func (m *LogContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogContent) XXX_Merge ¶ added in v0.1.50
func (m *LogContent) XXX_Merge(src proto.Message)
func (*LogContent) XXX_Size ¶ added in v0.1.50
func (m *LogContent) XXX_Size() int
func (*LogContent) XXX_Unmarshal ¶ added in v0.1.50
func (m *LogContent) XXX_Unmarshal(b []byte) error
type LogGroup ¶
type LogGroup struct { Logs []*Log `protobuf:"bytes,1,rep,name=Logs" json:"Logs,omitempty"` Category *string `protobuf:"bytes,2,opt,name=Category" json:"Category,omitempty"` Topic *string `protobuf:"bytes,3,opt,name=Topic" json:"Topic,omitempty"` Source *string `protobuf:"bytes,4,opt,name=Source" json:"Source,omitempty"` MachineUUID *string `protobuf:"bytes,5,opt,name=MachineUUID" json:"MachineUUID,omitempty"` LogTags []*LogTag `protobuf:"bytes,6,rep,name=LogTags" json:"LogTags,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogGroup) Descriptor ¶
func (*LogGroup) GetCategory ¶
func (*LogGroup) GetLogTags ¶
func (*LogGroup) GetMachineUUID ¶
func (*LogGroup) MarshalToSizedBuffer ¶ added in v0.1.50
func (*LogGroup) ProtoMessage ¶
func (*LogGroup) ProtoMessage()
func (*LogGroup) XXX_DiscardUnknown ¶ added in v0.1.50
func (m *LogGroup) XXX_DiscardUnknown()
func (*LogGroup) XXX_Marshal ¶ added in v0.1.50
func (*LogGroup) XXX_Unmarshal ¶ added in v0.1.50
type LogGroupList ¶
type LogGroupList struct { LogGroups []*LogGroup `protobuf:"bytes,1,rep,name=LogGroups" json:"LogGroups,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func LogsBytesDecode ¶
func LogsBytesDecode(data []byte) (gl *LogGroupList, err error)
LogsBytesDecode decodes logs binary data returned by GetLogsBytes API
func (*LogGroupList) Descriptor ¶
func (*LogGroupList) Descriptor() ([]byte, []int)
func (*LogGroupList) GetLogGroups ¶
func (m *LogGroupList) GetLogGroups() []*LogGroup
func (*LogGroupList) Marshal ¶
func (m *LogGroupList) Marshal() (dAtA []byte, err error)
func (*LogGroupList) MarshalToSizedBuffer ¶ added in v0.1.50
func (m *LogGroupList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LogGroupList) ProtoMessage ¶
func (*LogGroupList) ProtoMessage()
func (*LogGroupList) Reset ¶
func (m *LogGroupList) Reset()
func (*LogGroupList) Size ¶
func (m *LogGroupList) Size() (n int)
func (*LogGroupList) String ¶
func (m *LogGroupList) String() string
func (*LogGroupList) Unmarshal ¶
func (m *LogGroupList) Unmarshal(dAtA []byte) error
func (*LogGroupList) XXX_DiscardUnknown ¶ added in v0.1.50
func (m *LogGroupList) XXX_DiscardUnknown()
func (*LogGroupList) XXX_Marshal ¶ added in v0.1.50
func (m *LogGroupList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogGroupList) XXX_Merge ¶ added in v0.1.50
func (m *LogGroupList) XXX_Merge(src proto.Message)
func (*LogGroupList) XXX_Size ¶ added in v0.1.50
func (m *LogGroupList) XXX_Size() int
func (*LogGroupList) XXX_Unmarshal ¶ added in v0.1.50
func (m *LogGroupList) XXX_Unmarshal(b []byte) error
type LogProject ¶
type LogProject struct { Name string `json:"projectName"` // Project name Description string `json:"description"` // Project description Status string `json:"status"` // Normal Owner string `json:"owner"` // empty Region string `json:"region"` // region id, eg cn-shanghai CreateTime string `json:"createTime"` // unix time seconds, eg 1524539357 LastModifyTime string `json:"lastModifyTime"` // unix time seconds, eg 1524539357 DataRedundancyType string `json:"dataRedundancyType,omitempty"` // data redundancy type, valid values: ['LRS', 'ZRS'] Location string `json:"location,omitempty"` // location, eg. cn-beijing-b Endpoint string // IP or hostname of SLS endpoint AccessKeyID string // Deprecated: use CredentialsProvider instead AccessKeySecret string // Deprecated: use CredentialsProvider instead SecurityToken string // Deprecated: use CredentialsProvider instead UsingHTTP bool // default https UserAgent string // default defaultLogUserAgent AuthVersion AuthVersionType // User defined common headers. // // When conflict with sdk pre-defined headers, the value will // be ignored CommonHeaders map[string]string InnerHeaders map[string]string // contains filtered or unexported fields }
LogProject defines log project
func NewLogProject
deprecated
func NewLogProject(name, endpoint, accessKeyID, accessKeySecret string) (p *LogProject, err error)
NewLogProject creates a new SLS project.
Deprecated: use NewLogProjectV2 instead.
func NewLogProjectV2 ¶ added in v0.1.55
func NewLogProjectV2(name, endpoint string, provider CredentialsProvider) (p *LogProject, err error)
NewLogProjectV2 creates a new SLS project, with a CredentialsProvider.
func (*LogProject) ApplyConfigToMachineGroup ¶
func (p *LogProject) ApplyConfigToMachineGroup(confName, groupName string) (err error)
ApplyConfigToMachineGroup applies config to machine group.
func (*LogProject) CheckConfigExist ¶
func (p *LogProject) CheckConfigExist(name string) (bool, error)
CheckConfigExist check config exist or not
func (*LogProject) CheckLogstoreExist ¶
func (p *LogProject) CheckLogstoreExist(name string) (bool, error)
CheckLogstoreExist check logstore exist or not
func (*LogProject) CheckMachineGroupExist ¶
func (p *LogProject) CheckMachineGroupExist(name string) (bool, error)
CheckMachineGroupExist check machine group exist or not
func (*LogProject) CreateConfig ¶
func (p *LogProject) CreateConfig(c *LogConfig) (err error)
CreateConfig creates a new config in SLS.
func (*LogProject) CreateConfigString ¶
func (p *LogProject) CreateConfigString(c string) (err error)
CreateConfigString creates a new config in SLS.
func (*LogProject) CreateETLJob ¶
func (p *LogProject) CreateETLJob(j *ETLJob) error
CreateETLJob creates a new ETL job in SLS.
func (*LogProject) CreateEtlMeta ¶
func (p *LogProject) CreateEtlMeta(etlMeta *EtlMeta) (err error)
func (*LogProject) CreateLogStore ¶
func (p *LogProject) CreateLogStore(name string, ttl, shardCnt int, autoSplit bool, maxSplitShard int) error
CreateLogStore creates a new logstore in SLS, where name is logstore name, and ttl is time-to-live(in day) of logs, and shardCnt is the number of shards, and autoSplit is auto split, and maxSplitShard is the max number of shard.
func (*LogProject) CreateLogStoreV2 ¶
func (p *LogProject) CreateLogStoreV2(logstore *LogStore) error
CreateLogStoreV2 creates a new logstore in SLS
func (*LogProject) CreateLogging ¶ added in v0.1.7
func (p *LogProject) CreateLogging(detail *Logging) (err error)
func (*LogProject) CreateMachineGroup ¶
func (p *LogProject) CreateMachineGroup(m *MachineGroup) error
CreateMachineGroup creates a new machine group in SLS.
func (*LogProject) DeleteConfig ¶
func (p *LogProject) DeleteConfig(name string) (err error)
DeleteConfig deletes a config according by config name.
func (*LogProject) DeleteETLJob ¶
func (p *LogProject) DeleteETLJob(name string) error
DeleteETLJob deletes a job according to job name.
func (*LogProject) DeleteEtlMeta ¶
func (p *LogProject) DeleteEtlMeta(etlMetaName, etlMetaKey string) (err error)
func (*LogProject) DeleteLogStore ¶
func (p *LogProject) DeleteLogStore(name string) (err error)
DeleteLogStore deletes a logstore according by logstore name.
func (*LogProject) DeleteLogging ¶ added in v0.1.7
func (p *LogProject) DeleteLogging() (err error)
func (*LogProject) DeleteMachineGroup ¶
func (p *LogProject) DeleteMachineGroup(name string) (err error)
DeleteMachineGroup deletes machine group according machine group name.
func (*LogProject) GetAppliedConfigs ¶
func (p *LogProject) GetAppliedConfigs(groupName string) (confNames []string, err error)
GetAppliedConfigs returns applied config names list according machine group name groupName.
func (*LogProject) GetAppliedMachineGroups ¶
func (p *LogProject) GetAppliedMachineGroups(confName string) (groupNames []string, err error)
GetAppliedMachineGroups returns applied machine group names list according config name.
func (*LogProject) GetConfig ¶
func (p *LogProject) GetConfig(name string) (c *LogConfig, err error)
GetConfig returns config according by config name.
func (*LogProject) GetConfigString ¶
func (p *LogProject) GetConfigString(name string) (c string, err error)
GetConfigString returns config according by config name.
func (*LogProject) GetETLJob ¶
func (p *LogProject) GetETLJob(name string) (*ETLJob, error)
GetETLJob returns ETL job according to job name.
func (*LogProject) GetEtlMeta ¶
func (p *LogProject) GetEtlMeta(etlMetaName, etlMetaKey string) (etlMeta *EtlMeta, err error)
func (*LogProject) GetLogStore ¶
func (p *LogProject) GetLogStore(name string) (*LogStore, error)
GetLogStore returns logstore according by logstore name.
func (*LogProject) GetLogging ¶ added in v0.1.7
func (p *LogProject) GetLogging() (c *Logging, err error)
func (*LogProject) GetMachineGroup ¶
func (p *LogProject) GetMachineGroup(name string) (m *MachineGroup, err error)
GetMachineGroup retruns machine group according by machine group name.
func (*LogProject) ListConfig ¶
func (p *LogProject) ListConfig(offset, size int) (cfgNames []string, total int, err error)
ListConfig returns config names list and the total number of configs. The offset starts from 0 and the size is the max number of configs could be returned.
func (*LogProject) ListETLJobs ¶
func (p *LogProject) ListETLJobs() ([]string, error)
ListETLJobs returns all job names of project.
func (*LogProject) ListEtlMeta ¶
func (*LogProject) ListEtlMetaName ¶
func (*LogProject) ListEtlMetaWithTag ¶
func (*LogProject) ListLogStore ¶
func (p *LogProject) ListLogStore() ([]string, error)
ListLogStore returns all logstore names of project p.
func (*LogProject) ListLogStoreV2 ¶ added in v0.1.9
func (p *LogProject) ListLogStoreV2(offset, size int, telemetryType string) ([]string, error)
ListLogStoreV2 ...
func (*LogProject) ListMachineGroup ¶
func (p *LogProject) ListMachineGroup(offset, size int) (m []string, total int, err error)
ListMachineGroup returns machine group name list and the total number of machine groups. The offset starts from 0 and the size is the max number of machine groups could be returned.
func (*LogProject) RawRequest ¶ added in v0.1.6
func (p *LogProject) RawRequest(method, uri string, headers map[string]string, body []byte) (*http.Response, error)
RawRequest send raw http request to LogService and return the raw http response @note you should call http.Response.Body.Close() to close body stream
func (*LogProject) RemoveConfigFromMachineGroup ¶
func (p *LogProject) RemoveConfigFromMachineGroup(confName, groupName string) (err error)
RemoveConfigFromMachineGroup removes config from machine group.
func (*LogProject) UpdateConfig ¶
func (p *LogProject) UpdateConfig(c *LogConfig) (err error)
UpdateConfig updates a config.
func (*LogProject) UpdateConfigString ¶
func (p *LogProject) UpdateConfigString(configName, c string) (err error)
UpdateConfigString updates a config.
func (*LogProject) UpdateETLJob ¶
func (p *LogProject) UpdateETLJob(name string, job *ETLJob) error
UpdateETLJob updates an ETL job according to job name, Not all fields of ETLJob can be updated
func (*LogProject) UpdateEtlMeta ¶
func (p *LogProject) UpdateEtlMeta(etlMeta *EtlMeta) (err error)
func (*LogProject) UpdateLogStore ¶
func (p *LogProject) UpdateLogStore(name string, ttl, shardCnt int) (err error)
UpdateLogStore updates a logstore according by logstore name, obviously we can't modify the logstore name itself.
func (*LogProject) UpdateLogStoreV2 ¶
func (p *LogProject) UpdateLogStoreV2(logstore *LogStore) (err error)
UpdateLogStoreV2 updates a logstore according by logstore name obviously we can't modify the logstore name itself.
func (*LogProject) UpdateLogging ¶ added in v0.1.7
func (p *LogProject) UpdateLogging(detail *Logging) (err error)
func (*LogProject) UpdateMachineGroup ¶
func (p *LogProject) UpdateMachineGroup(m *MachineGroup) (err error)
UpdateMachineGroup updates a machine group.
func (*LogProject) WithCredentialsProvider ¶ added in v0.1.55
func (p *LogProject) WithCredentialsProvider(provider CredentialsProvider) *LogProject
With credentials provider
func (*LogProject) WithRequestTimeout ¶
func (p *LogProject) WithRequestTimeout(timeout time.Duration) *LogProject
WithRequestTimeout with custom timeout for a request
func (*LogProject) WithRetryTimeout ¶
func (p *LogProject) WithRetryTimeout(timeout time.Duration) *LogProject
WithRetryTimeout with custom timeout for a operation each operation may send one or more HTTP requests in case of retry required.
func (*LogProject) WithToken ¶
func (p *LogProject) WithToken(token string) (*LogProject, error)
WithToken add token parameter
type LogStore ¶
type LogStore struct { Name string `json:"logstoreName"` TTL int `json:"ttl"` ShardCount int `json:"shardCount"` WebTracking bool `json:"enable_tracking"` AutoSplit bool `json:"autoSplit"` MaxSplitShard int `json:"maxSplitShard"` AppendMeta bool `json:"appendMeta"` TelemetryType string `json:"telemetryType"` HotTTL int32 `json:"hot_ttl,omitempty"` Mode string `json:"mode,omitempty"` // "query" or "standard"(default), can't be modified after creation CreateTime uint32 `json:"createTime,omitempty"` LastModifyTime uint32 `json:"lastModifyTime,omitempty"` EncryptConf *EncryptConf `json:"encrypt_conf,omitempty"` ProductType string `json:"productType,omitempty"` // contains filtered or unexported fields }
LogStore defines LogStore struct
func NewLogStore ¶
func NewLogStore(logStoreName string, project *LogProject) (*LogStore, error)
NewLogStore ...
func (*LogStore) CheckIndexExist ¶
CheckIndexExist check index exist or not
func (*LogStore) CreateIndexString ¶
CreateIndexString ...
func (*LogStore) CreateShipper ¶
CreateShipper ...
func (*LogStore) DeleteShipper ¶
DeleteShipper ...
func (*LogStore) GetContextLogs ¶ added in v0.1.6
func (s *LogStore) GetContextLogs(backLines int32, forwardLines int32, packID string, packMeta string) (*GetContextLogsResponse, error)
GetContextLogs ...
func (*LogStore) GetCursor ¶
GetCursor gets log cursor of one shard specified by shardId. The from can be in three form: a) unix timestamp in seccond, b) "begin", c) "end". For more detail please read: https://help.aliyun.com/document_detail/29024.html
func (*LogStore) GetHistograms ¶
func (s *LogStore) GetHistograms(topic string, from int64, to int64, queryExp string) (*GetHistogramsResponse, error)
GetHistograms query logs with [from, to) time range
func (*LogStore) GetHistogramsToCompleted ¶ added in v0.1.41
func (s *LogStore) GetHistogramsToCompleted(topic string, from int64, to int64, queryExp string) (*GetHistogramsResponse, error)
GetHistogramsToCompleted query logs with [from, to) time range to completed
func (*LogStore) GetIndexString ¶
GetIndexString ...
func (*LogStore) GetLogLines ¶ added in v0.1.17
func (s *LogStore) GetLogLines(topic string, from int64, to int64, queryExp string, maxLineNum int64, offset int64, reverse bool) (*GetLogLinesResponse, error)
GetLogLines query logs with [from, to) time range
func (*LogStore) GetLogLinesByNano ¶ added in v0.1.50
func (s *LogStore) GetLogLinesByNano(topic string, fromInNS int64, toInNs int64, queryExp string, maxLineNum int64, offset int64, reverse bool) (*GetLogLinesResponse, error)
GetLogLinesByNano query logs with [fromInNS, toInNs) nano time range
func (*LogStore) GetLogLinesV2 ¶ added in v0.1.24
func (s *LogStore) GetLogLinesV2(req *GetLogRequest) (*GetLogLinesResponse, error)
GetLogLinesV2 query logs with [from, to) time range
func (*LogStore) GetLogs ¶
func (s *LogStore) GetLogs(topic string, from int64, to int64, queryExp string, maxLineNum int64, offset int64, reverse bool) (*GetLogsResponse, error)
GetLogs query logs with [from, to) time range
func (*LogStore) GetLogsByNano ¶ added in v0.1.50
func (*LogStore) GetLogsBytes ¶
func (*LogStore) GetLogsBytesV2
deprecated
added in
v0.1.53
func (s *LogStore) GetLogsBytesV2(plr *PullLogRequest) ([]byte, string, error)
Deprecated: use GetLogsBytesWithQuery instead
func (*LogStore) GetLogsBytesWithQuery ¶ added in v0.1.69
func (s *LogStore) GetLogsBytesWithQuery(plr *PullLogRequest) ([]byte, *PullLogMeta, error)
GetLogsBytes gets logs binary data from shard specified by shardId according cursor and endCursor. The logGroupMaxCount is the max number of logGroup could be returned. The nextCursor is the next curosr can be used to read logs at next time.
func (*LogStore) GetLogsToCompleted ¶ added in v0.1.41
func (s *LogStore) GetLogsToCompleted(topic string, from int64, to int64, queryExp string, maxLineNum int64, offset int64, reverse bool) (*GetLogsResponse, error)
GetLogsToCompleted query logs with [from, to) time range to completed
func (*LogStore) GetLogsToCompletedV2 ¶ added in v0.1.41
func (s *LogStore) GetLogsToCompletedV2(req *GetLogRequest) (*GetLogsResponse, error)
GetLogsToCompletedV2 query logs with [from, to) time range to completed
func (*LogStore) GetLogsToCompletedV3 ¶ added in v0.1.56
func (s *LogStore) GetLogsToCompletedV3(req *GetLogRequest) (*GetLogsV3Response, error)
GetLogsToCompletedV3 query logs with [from, to) time range to completed
func (*LogStore) GetLogsV2 ¶ added in v0.1.24
func (s *LogStore) GetLogsV2(req *GetLogRequest) (*GetLogsResponse, error)
GetLogsV2 query logs with [from, to) time range
func (*LogStore) GetLogsV3 ¶ added in v0.1.45
func (s *LogStore) GetLogsV3(req *GetLogRequest) (*GetLogsV3Response, error)
GetLogsV3 query logs with [from, to) time range
func (*LogStore) GetMeteringMode ¶ added in v0.1.59
func (s *LogStore) GetMeteringMode() (*GetMeteringModeResponse, error)
func (*LogStore) GetShipper ¶
GetShipper ...
func (*LogStore) ListShards ¶
ListShards returns shard id list of this logstore.
func (*LogStore) ListShipper ¶ added in v0.1.14
ListShipper ...
func (*LogStore) PostLogStoreLogs ¶
PostLogStoreLogs put logs into Shard logstore by hashKey. The callers should transform user logs into LogGroup.
func (*LogStore) PostRawLogs ¶ added in v0.1.51
func (*LogStore) PullLogs ¶
func (s *LogStore) PullLogs(shardID int, cursor, endCursor string, logGroupMaxCount int) (gl *LogGroupList, nextCursor string, err error)
PullLogs gets logs from shard specified by shardId according cursor and endCursor. The logGroupMaxCount is the max number of logGroup could be returned. The nextCursor is the next cursor can be used to read logs at next time. @note if you want to pull logs continuous, set endCursor = ""
func (*LogStore) PullLogsV2
deprecated
added in
v0.1.53
func (s *LogStore) PullLogsV2(plr *PullLogRequest) (*LogGroupList, string, error)
Deprecated: use PullLogsWithQuery instead
func (*LogStore) PullLogsWithQuery ¶ added in v0.1.69
func (s *LogStore) PullLogsWithQuery(plr *PullLogRequest) (gl *LogGroupList, plm *PullLogMeta, err error)
func (*LogStore) PutLogs ¶
PutLogs put logs into logstore. The callers should transform user logs into LogGroup.
func (*LogStore) SetPutLogCompressType ¶
SetPutLogCompressType set put log's compress type, default lz4
func (*LogStore) UpdateIndexString ¶
UpdateIndexString ...
func (*LogStore) UpdateMeteringMode ¶ added in v0.1.59
func (*LogStore) UpdateShipper ¶
UpdateShipper ...
type LogTag ¶
type LogTag struct { Key *string `protobuf:"bytes,1,req,name=Key" json:"Key,omitempty"` Value *string `protobuf:"bytes,2,req,name=Value" json:"Value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` // contains filtered or unexported fields }
func (*LogTag) Descriptor ¶
func (*LogTag) MarshalToSizedBuffer ¶ added in v0.1.50
func (*LogTag) ProtoMessage ¶
func (*LogTag) ProtoMessage()
func (*LogTag) XXX_DiscardUnknown ¶ added in v0.1.50
func (m *LogTag) XXX_DiscardUnknown()
func (*LogTag) XXX_Marshal ¶ added in v0.1.50
func (*LogTag) XXX_Unmarshal ¶ added in v0.1.50
type Logging ¶ added in v0.1.7
type Logging struct { Project string `json:"loggingProject"` LoggingDetails []*LoggingDetail `json:"loggingDetails"` }
type LoggingDetail ¶ added in v0.1.7
type MachinGroupAttribute ¶
type MachinGroupAttribute struct { ExternalName string `json:"externalName"` TopicName string `json:"groupTopic"` }
MachinGroupAttribute defines machine group attribute
type Machine ¶
type Machine struct { IP string UniqueID string `json:"machine-uniqueid"` UserdefinedID string `json:"userdefined-id"` LastHeartBeatTime int `json:"lastHeartbeatTime"` }
Machine defines machine struct
type MachineGroup ¶
type MachineGroup struct { Name string `json:"groupName"` Type string `json:"groupType"` MachineIDType string `json:"machineIdentifyType"` MachineIDList []string `json:"machineList"` Attribute MachinGroupAttribute `json:"groupAttribute"` CreateTime uint32 `json:"createTime,omitempty"` LastModifyTime uint32 `json:"lastModifyTime,omitempty"` }
MachineGroup defines machine group
type MachineList ¶
MachineList defines machine list
type MetricAggRuleItem ¶ added in v0.1.19
type MetricAggRules ¶ added in v0.1.19
type MetricAggRules struct { ID string Name string Desc string SrcStore string SrcAccessKeyID string // ETL_STS_DEFAULT SrcAccessKeySecret string // acs:ram::${aliuid}:role/aliyunlogetlrole DestEndpoint string // same region, inner endpoint; different region, public endpoint DestProject string DestStore string DestAccessKeyID string // ETL_STS_DEFAULT DestAccessKeySecret string // acs:ram::${aliuid}:role/aliyunlogetlrole AggRules []MetricAggRuleItem }
type MultiLineFormat ¶ added in v0.1.28
type Notification ¶
type Notification struct { Type string `json:"type"` Content string `json:"content"` EmailList []string `json:"emailList,omitempty"` Method string `json:"method,omitempty"` MobileList []string `json:"mobileList,omitempty"` ServiceUri string `json:"serviceUri,omitempty"` Headers map[string]string `json:"headers,omitempty"` }
type OSSCompressionType ¶ added in v0.1.30
type OSSCompressionType string
type OSSContentType ¶ added in v0.1.30
type OSSContentType string
type OSSDataFormat ¶ added in v0.1.28
type OSSDataFormat struct { Type OSSDataFormatType `json:"type"` TimeFormat string `json:"timeFormat"` TimeZone string `json:"timeZone"` }
type OSSShipperConfig ¶
type OSSShipperConfig struct { OssBucket string `json:"ossBucket"` OssPrefix string `json:"ossPrefix"` RoleArn string `json:"roleArn"` BufferInterval int `json:"bufferInterval"` BufferSize int `json:"bufferSize"` CompressType string `json:"compressType"` PathFormat string `json:"pathFormat"` Format string `json:"format"` Storage ShipperStorage `json:"storage"` }
type OrcContentDetail ¶ added in v0.1.30
type OrcContentDetail ColumnStorageContentDetail
type OssStorageJsonDetail ¶ added in v0.1.14
type OssStorageJsonDetail struct {
EnableTag bool `json:"enableTag"`
}
type OssStoreageCsvDetail ¶ added in v0.1.20
type OssStoreageParquet ¶ added in v0.1.20
type OssStoreageParquet struct {
Columns []ParquetConfig `json:"columns"`
}
type OutputDetail ¶
type OutputDetail struct { ProjectName string `json:"projectName"` LogStoreName string `json:"logstoreName"` CompressType string `json:"compressType"` }
OutputDetail defines output
type ParquetConfig ¶ added in v0.1.20
type ParquetContentDetail ¶ added in v0.1.30
type ParquetContentDetail ColumnStorageContentDetail
type ParquetFormat ¶ added in v0.1.28
type ParquetFormat struct {
StructureDataFormat
}
type PhraseQueryInfoV2 ¶ added in v0.1.55
type PhraseQueryInfoV3 ¶ added in v0.1.55
type PluginInputItem ¶
type PluginInputItem struct { Type string `json:"type"` Detail PluginInterface `json:"detail"` }
func CreatePluginInputItem ¶
func CreatePluginInputItem(t string, detail PluginInterface) *PluginInputItem
type PluginInterface ¶
type PluginInterface interface { }
type PluginLogConfigInputDetail ¶
type PluginLogConfigInputDetail struct { CommonConfigInputDetail PluginDetail LogConfigPluginInput `json:"plugin"` }
PluginLogConfigInputDetail plugin log config, eg: docker stdout, binlog, mysql, http...
func ConvertToPluginLogConfigInputDetail ¶
func ConvertToPluginLogConfigInputDetail(detail InputDetailInterface) (*PluginLogConfigInputDetail, bool)
type PolicyConfiguration ¶ added in v0.1.22
type PostLogStoreLogsRequest ¶ added in v0.1.73
type PowerSqlMode ¶ added in v0.1.30
type PowerSqlMode string
power sql
const ( PowerSqlModeAuto PowerSqlMode = "auto" PowerSqlModeEnable PowerSqlMode = "enable" PowerSqlModeDisable PowerSqlMode = "disable" )
type PullLogMeta ¶ added in v0.1.69
type PullLogMeta struct { NextCursor string Netflow int RawSize int Count int // these fields are only present when query is set RawSizeBeforeQuery int // processed raw size before query Lines int // result lines after query LinesBeforeQuery int // processed lines before query FailedLines int // failed lines during query DataCountBeforeQuery int // processed logGroup count before query }
type PullLogRequest ¶ added in v0.1.53
type PullLogRequest struct { Project string Logstore string ShardID int Cursor string EndCursor string LogGroupMaxCount int Query string // Deprecated: PullMode is not used PullMode string QueryId string CompressType int }
func (*PullLogRequest) ToURLParams ¶ added in v0.1.53
func (plr *PullLogRequest) ToURLParams() url.Values
type QueryInfoV2 ¶ added in v0.1.55
type QueryInfoV2 struct { Keys []string `json:"keys,omitempty"` Terms [][]string `json:"terms,omitempty"` // [[term, key], [term2, key2]] Limited string `json:"limited,omitempty"` Marker *string `json:"marker,omitempty"` Mode *int `json:"mode,omitempty"` PhraseQueryInfo *PhraseQueryInfoV2 `json:"phraseQueryInfo,omitempty"` Shard *int `json:"shard,omitempty"` ScanBytes *int64 `json:"scanBytes,omitempty"` IsAccurate *int64 `json:"isAccurate,omitempty"` ColumnTypes []string `json:"columnTypes,omitempty"` Highlights []map[string]string `json:"highlight,omitempty"` }
type RegexConfigInputDetail ¶
type RegexConfigInputDetail struct { LocalFileConfigInputDetail Key []string `json:"key"` LogBeginRegex string `json:"logBeginRegex"` Regex string `json:"regex"` CustomizedFields string `json:"customizedFields,omitempty"` }
RegexConfigInputDetail regex log config
func ConvertToRegexConfigInputDetail ¶
func ConvertToRegexConfigInputDetail(detail InputDetailInterface) (*RegexConfigInputDetail, bool)
type ResourceActionPolicy ¶ added in v0.1.22
type ResourceActionPolicy struct { ActionPolicyId string `json:"action_policy_id"` ActionPolicyName string `json:"action_policy_name"` IsDefault bool `json:"is_default"` PrimaryPolicyScript string `json:"primary_policy_script"` SecondaryPolicyScript string `json:"secondary_policy_script"` EscalationStartEnabled bool `json:"escalation_start_enabled"` EscalationStartTimeout string `json:"escalation_start_timeout"` EscalationInprogressEnabled bool `json:"escalation_inprogress_enabled"` EscalationInprogressTimeout string `json:"escalation_inprogress_timeout"` EscalationEnabled bool `json:"escalation_enabled"` EscalationTimeout string `json:"escalation_timeout"` Labels map[string]string `json:"labels"` }
ResourceActionPolicy defines how to send alert notifications.
type ResourceAlertPolicy ¶ added in v0.1.22
type ResourceAlertPolicy struct { PolicyId string `json:"policy_id"` PolicyName string `json:"policy_name"` Parent string `json:"parent_id"` IsDefault bool `json:"is_default"` GroupPolicy string `json:"group_script"` InhibitPolicy string `json:"inhibit_script"` SilencePolicy string `json:"silence_script"` }
ResourceAlertPolicy defines how alerts should be grouped, inhibited and silenced.
type ResourceContentTemplate ¶ added in v0.1.22
type ResourceContentTemplate struct { TemplateId string `json:"template_id"` TemplateName string `json:"template_name"` IsDefault bool `json:"is_default"` Templates ResourceTemplates `json:"templates"` }
type ResourceFilterTag ¶ added in v0.1.13
ResourceFilterTag define
type ResourcePool ¶ added in v0.1.22
type ResourcePool string
const ( DEFAULT ResourcePool = "default" ENHANCED ResourcePool = "enhanced" )
type ResourceRecord ¶ added in v0.1.22
type ResourceSchema ¶ added in v0.1.22
type ResourceSchema struct {
Schema []*ResourceSchemaItem `json:"schema"`
}
func (*ResourceSchema) FromJsonString ¶ added in v0.1.22
func (rs *ResourceSchema) FromJsonString(schema string) error
func (*ResourceSchema) ToString ¶ added in v0.1.22
func (rs *ResourceSchema) ToString() string
type ResourceSchemaItem ¶ added in v0.1.22
type ResourceSystemTags ¶ added in v0.1.62
type ResourceSystemTags struct { ResourceTags TagOwnerUid string `json:"tagOwnerUid"` Scope string `json:"scope,omitempty"` }
ResourceSystemTags system tag for tag sls resource
func NewResourceSystemTags ¶ added in v0.1.62
func NewResourceSystemTags(resourceType string, resourceId string, tagOwnerUid string, tags []ResourceTag) *ResourceSystemTags
NewResourceSystemTags create system tags for resource of certain type
type ResourceTag ¶ added in v0.1.13
ResourceTag define
type ResourceTagResponse ¶ added in v0.1.13
type ResourceTagResponse struct { ResourceType string `json:"resourceType"` ResourceID string `json:"resourceId"` TagKey string `json:"tagKey"` TagValue string `json:"tagValue"` }
ResourceTagResponse used for ListTagResources
type ResourceTags ¶ added in v0.1.13
type ResourceTags struct { ResourceType string `json:"resourceType"` ResourceID []string `json:"resourceId"` Tags []ResourceTag `json:"tags"` }
ResourceTags tag for tag sls resource, only support project
func NewProjectTags ¶ added in v0.1.13
func NewProjectTags(project string, tags []ResourceTag) *ResourceTags
NewProjectTags create a project tags
func NewResourceTags ¶ added in v0.1.46
func NewResourceTags(resourceType string, resourceId string, tags []ResourceTag) *ResourceTags
NewResourceTags create tags for resource of certain type
type ResourceTemplate ¶ added in v0.1.22
type ResourceTemplate struct { Content string `json:"content"` Locale string `json:"locale"` Title string `json:"title"` Subject string `json:"subject"` SendType string `json:"send_type"` Limit int `json:"limit"` }
ContentTemplate
type ResourceTemplates ¶ added in v0.1.22
type ResourceTemplates struct { Sms ResourceTemplate `json:"sms"` Voice ResourceTemplate `json:"voice"` Email ResourceTemplate `json:"email"` Dingtalk ResourceTemplate `json:"dingtalk"` Webhook ResourceTemplate `json:"webhook"` MessageCenter ResourceTemplate `json:"message_center"` Wechat ResourceTemplate `json:"wechat"` Lark ResourceTemplate `json:"lark"` Slack ResourceTemplate `json:"slack"` }
type ResourceUnSystemTags ¶ added in v0.1.62
type ResourceUnSystemTags struct { ResourceUnTags TagOwnerUid string `json:"tagOwnerUid"` }
ResourceUnSystemTags system tag for untag sls resouce
func NewResourceUnSystemTags ¶ added in v0.1.62
func NewResourceUnSystemTags(resourceType string, resourceId string, tagOwnerUid string, tags []string) *ResourceUnSystemTags
NewResourceUnSystemTags delete system tags for resource of certain type
type ResourceUnTags ¶ added in v0.1.13
type ResourceUnTags struct { ResourceType string `json:"resourceType"` ResourceID []string `json:"resourceId"` Tags []string `json:"tags"` All bool `json:"all"` }
ResourceUnTags tag for untag sls resouce
func NewProjectUnTags ¶ added in v0.1.13
func NewProjectUnTags(project string, tags []string) *ResourceUnTags
NewProjectUnTags delete a project tags
func NewResourceUnTags ¶ added in v0.1.46
func NewResourceUnTags(resourceType string, resourceId string, tags []string) *ResourceUnTags
NewResourceUnTags delete tags for resource of certain type
type ResourceUser ¶ added in v0.1.22
type ResourceUser struct { UserId string `json:"user_id"` UserName string `json:"user_name"` Enabled bool `json:"enabled"` CountryCode string `json:"country_code"` Phone string `json:"phone"` Email []string `json:"email"` SmsEnabled bool `json:"sms_enabled"` VoiceEnabled bool `json:"voice_enabled"` }
Notified users.
type ResourceUserGroup ¶ added in v0.1.22
type ResourceUserGroup struct { Id string `json:"user_group_id"` Name string `json:"user_group_name"` Enabled bool `json:"enabled"` Members []string `json:"members"` }
ResourceUserGroup is a collection of users.
type ResourceWebhookHeader ¶ added in v0.1.22
WebhookIntegration is a wrap of webhook notification config.
type ResponseDashboardItem ¶ added in v0.1.14
type ResponseSavedSearchItem ¶ added in v0.1.14
type S3Source ¶ added in v0.1.69
type S3Source struct { DataSource AWSAccessKey string `json:"awsAccessKey"` AWSAccessKeySecret string `json:"awsAccessKeySecret"` AWSRegion string `json:"awsRegion"` Bucket string `json:"bucket"` Prefix string `json:"prefix,omitempty"` Pattern string `json:"pattern,omitempty"` CompressionCodec string `json:"compressionCodec,omitempty"` Encoding string `json:"encoding,omitempty"` Format interface{} `json:"format,omitempty"` }
type SavedSearch ¶
type SavedSearch struct { SavedSearchName string `json:"savedsearchName"` SearchQuery string `json:"searchQuery"` Logstore string `json:"logstore"` Topic string `json:"topic"` DisplayName string `json:"displayName"` }
SavedSearch ...
type Schedule ¶
type Schedule struct { Type string `json:"type"` Interval string `json:"interval"` CronExpression string `json:"cronExpression"` Delay int32 `json:"delay"` DayOfWeek int32 `json:"dayOfWeek"` Hour int32 `json:"hour"` RunImmediately bool `json:"runImmediately"` TimeZone string `json:"timeZone,omitempty"` }
type ScheduledJob ¶ added in v0.1.28
type ScheduledSQL ¶ added in v0.1.22
type ScheduledSQL struct { Name string `json:"name"` DisplayName string `json:"displayName"` Description string `json:"description"` Status Status `json:"status"` ScheduleId string `json:"scheduleId"` Configuration *ScheduledSQLConfiguration `json:"configuration"` Schedule *Schedule `json:"schedule"` CreateTime int64 `json:"createTime,omitempty"` LastModifiedTime int64 `json:"lastModifiedTime,omitempty"` Type JobType `json:"type"` }
type ScheduledSQLConfiguration ¶ added in v0.1.22
type ScheduledSQLConfiguration struct { SourceLogStore string `json:"sourceLogstore"` DestProject string `json:"destProject"` DestEndpoint string `json:"destEndpoint"` DestLogStore string `json:"destLogstore"` Script string `json:"script"` SqlType SqlType `json:"sqlType"` ResourcePool ResourcePool `json:"resourcePool"` RoleArn string `json:"roleArn"` DestRoleArn string `json:"destRoleArn"` FromTimeExpr string `json:"fromTimeExpr"` ToTimeExpr string `json:"toTimeExpr"` MaxRunTimeInSeconds int32 `json:"maxRunTimeInSeconds"` MaxRetries int32 `json:"maxRetries"` FromTime int64 `json:"fromTime"` ToTime int64 `json:"toTime"` DataFormat DataFormat `json:"dataFormat"` Parameters *ScheduledSQLParameters `json:"parameters,omitempty"` }
func NewScheduledSQLConfiguration ¶ added in v0.1.22
func NewScheduledSQLConfiguration() *ScheduledSQLConfiguration
type ScheduledSQLJobInstance ¶ added in v0.1.22
type ScheduledSQLJobInstance struct { InstanceId string `json:"instanceId"` JobName string `json:"jobName,omitempty"` DisplayName string `json:"displayName,omitempty"` Description string `json:"description,omitempty"` JobScheduleId string `json:"jobScheduleId,omitempty"` CreateTimeInMillis int64 `json:"createTimeInMillis"` ScheduleTimeInMillis int64 `json:"scheduleTimeInMillis"` UpdateTimeInMillis int64 `json:"updateTimeInMillis"` State ScheduledSQLState `json:"state"` ErrorCode string `json:"errorCode"` ErrorMessage string `json:"errorMessage"` Summary string `json:"summary,omitempty"` }
type ScheduledSQLParameters ¶ added in v0.1.22
type ScheduledSQLParameters struct { TimeKey string `json:"timeKey,omitempty"` LabelKeys string `json:"labelKeys,omitempty"` MetricKeys string `json:"metricKeys,omitempty"` MetricName string `json:"metricName,omitempty"` HashLabels string `json:"hashLabels,omitempty"` AddLabels string `json:"addLabels,omitempty"` }
type ScheduledSQLState ¶ added in v0.1.22
type ScheduledSQLState string
const ( ScheduledSQL_RUNNING ScheduledSQLState = "RUNNING" ScheduledSQL_FAILED ScheduledSQLState = "FAILED" ScheduledSQL_SUCCEEDED ScheduledSQLState = "SUCCEEDED" )
type SensitiveKey ¶
type SeverityConfiguration ¶ added in v0.1.22
type SeverityConfiguration struct { Severity Severity `json:"severity"` EvalCondition ConditionConfiguration `json:"evalCondition"` }
SeverityConfiguration severity config by group
type Shard ¶
type Shard struct { ShardID int `json:"shardID"` Status string `json:"status"` InclusiveBeginKey string `json:"inclusiveBeginKey"` ExclusiveBeginKey string `json:"exclusiveEndKey"` CreateTime int `json:"createTime"` }
Shard defines shard struct
type Shipper ¶
type Shipper struct { ShipperName string `json:"shipperName"` TargetType string `json:"targetType"` RawTargetConfiguration json.RawMessage `json:"targetConfiguration"` TargetConfiguration interface{} `json:"-"` }
func (*Shipper) MarshalJSON ¶
func (*Shipper) UnmarshalJSON ¶
type ShipperStorage ¶ added in v0.1.14
type ShipperStorage struct { Format string `json:"format"` Detail interface{} `json:"detail"` }
type SignerV0 ¶ added in v0.1.61
type SignerV0 struct{}
func NewSignerV0 ¶ added in v0.1.61
func NewSignerV0() *SignerV0
type SignerV1 ¶ added in v0.1.42
type SignerV1 struct {
// contains filtered or unexported fields
}
SignerV1 version v1
func NewSignerV1 ¶ added in v0.1.42
type SignerV4 ¶ added in v0.1.42
type SignerV4 struct {
// contains filtered or unexported fields
}
SignerV4 sign version v4, a non-empty region is required
func NewSignerV4 ¶ added in v0.1.42
type SingleHistogram ¶
type SingleHistogram struct { Progress string `json:"progress"` Count int64 `json:"count"` From int64 `json:"from"` To int64 `json:"to"` }
GetHistogramsResponse defines response from GetHistograms call
type SinkAlerthubConfiguration ¶ added in v0.1.49
type SinkAlerthubConfiguration struct {
Enabled bool `json:"enabled"`
}
type SinkCmsConfiguration ¶ added in v0.1.49
type SinkCmsConfiguration struct {
Enabled bool `json:"enabled"`
}
type SinkEventStoreConfiguration ¶ added in v0.1.49
type SlsLogPackage ¶
type SlsLogPackage struct { Data []byte `protobuf:"bytes,1,req,name=data" json:"data,omitempty"` UncompressSize *int32 `protobuf:"varint,2,opt,name=uncompress_size,json=uncompressSize" json:"uncompress_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SlsLogPackage) Descriptor ¶
func (*SlsLogPackage) Descriptor() ([]byte, []int)
func (*SlsLogPackage) GetData ¶
func (m *SlsLogPackage) GetData() []byte
func (*SlsLogPackage) GetUncompressSize ¶
func (m *SlsLogPackage) GetUncompressSize() int32
func (*SlsLogPackage) Marshal ¶
func (m *SlsLogPackage) Marshal() (dAtA []byte, err error)
func (*SlsLogPackage) MarshalToSizedBuffer ¶ added in v0.1.50
func (m *SlsLogPackage) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SlsLogPackage) ProtoMessage ¶
func (*SlsLogPackage) ProtoMessage()
func (*SlsLogPackage) Reset ¶
func (m *SlsLogPackage) Reset()
func (*SlsLogPackage) Size ¶
func (m *SlsLogPackage) Size() (n int)
func (*SlsLogPackage) String ¶
func (m *SlsLogPackage) String() string
func (*SlsLogPackage) Unmarshal ¶
func (m *SlsLogPackage) Unmarshal(dAtA []byte) error
func (*SlsLogPackage) XXX_DiscardUnknown ¶ added in v0.1.50
func (m *SlsLogPackage) XXX_DiscardUnknown()
func (*SlsLogPackage) XXX_Marshal ¶ added in v0.1.50
func (m *SlsLogPackage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SlsLogPackage) XXX_Merge ¶ added in v0.1.50
func (m *SlsLogPackage) XXX_Merge(src proto.Message)
func (*SlsLogPackage) XXX_Size ¶ added in v0.1.50
func (m *SlsLogPackage) XXX_Size() int
func (*SlsLogPackage) XXX_Unmarshal ¶ added in v0.1.50
func (m *SlsLogPackage) XXX_Unmarshal(b []byte) error
type SlsLogPackageList ¶
type SlsLogPackageList struct { Packages []*SlsLogPackage `protobuf:"bytes,1,rep,name=packages" json:"packages,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SlsLogPackageList) Descriptor ¶
func (*SlsLogPackageList) Descriptor() ([]byte, []int)
func (*SlsLogPackageList) GetPackages ¶
func (m *SlsLogPackageList) GetPackages() []*SlsLogPackage
func (*SlsLogPackageList) Marshal ¶
func (m *SlsLogPackageList) Marshal() (dAtA []byte, err error)
func (*SlsLogPackageList) MarshalTo ¶
func (m *SlsLogPackageList) MarshalTo(dAtA []byte) (int, error)
func (*SlsLogPackageList) MarshalToSizedBuffer ¶ added in v0.1.50
func (m *SlsLogPackageList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SlsLogPackageList) ProtoMessage ¶
func (*SlsLogPackageList) ProtoMessage()
func (*SlsLogPackageList) Reset ¶
func (m *SlsLogPackageList) Reset()
func (*SlsLogPackageList) Size ¶
func (m *SlsLogPackageList) Size() (n int)
func (*SlsLogPackageList) String ¶
func (m *SlsLogPackageList) String() string
func (*SlsLogPackageList) Unmarshal ¶
func (m *SlsLogPackageList) Unmarshal(dAtA []byte) error
func (*SlsLogPackageList) XXX_DiscardUnknown ¶ added in v0.1.50
func (m *SlsLogPackageList) XXX_DiscardUnknown()
func (*SlsLogPackageList) XXX_Marshal ¶ added in v0.1.50
func (m *SlsLogPackageList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SlsLogPackageList) XXX_Merge ¶ added in v0.1.50
func (m *SlsLogPackageList) XXX_Merge(src proto.Message)
func (*SlsLogPackageList) XXX_Size ¶ added in v0.1.50
func (m *SlsLogPackageList) XXX_Size() int
func (*SlsLogPackageList) XXX_Unmarshal ¶ added in v0.1.50
func (m *SlsLogPackageList) XXX_Unmarshal(b []byte) error
type SourceConfig ¶
type SourceConfig struct {
LogstoreName string `json:"logstoreName"`
}
type StaticCredentialsProvider ¶ added in v0.1.55
type StaticCredentialsProvider struct {
Cred Credentials
}
*
- A static credetials provider that always returns the same long-lived credentials.
- For back compatible.
func NewStaticCredentialsProvider ¶ added in v0.1.55
func NewStaticCredentialsProvider(accessKeyID, accessKeySecret, securityToken string) *StaticCredentialsProvider
Create a static credential provider with AccessKeyID/AccessKeySecret/SecurityToken.
Param accessKeyID and accessKeySecret must not be an empty string.
func (*StaticCredentialsProvider) GetCredentials ¶ added in v0.1.55
func (p *StaticCredentialsProvider) GetCredentials() (Credentials, error)
type StoreView ¶ added in v0.1.77
type StoreView struct { Name string `json:"name"` StoreType string `json:"storeType"` Stores []*StoreViewStore `json:"stores"` }
type StoreViewErrors ¶ added in v0.1.77
type StoreViewIndex ¶ added in v0.1.77
type StoreViewStore ¶ added in v0.1.77
type StreamLogConfigInputDetail ¶
type StreamLogConfigInputDetail struct { CommonConfigInputDetail Tag string `json:"tag"` }
StreamLogConfigInputDetail syslog config
func ConvertToStreamLogConfigInputDetail ¶
func ConvertToStreamLogConfigInputDetail(detail InputDetailInterface) (*StreamLogConfigInputDetail, bool)
type StructureDataFormat ¶ added in v0.1.28
type StructureDataFormat struct { OSSDataFormat TimeField string `json:"timeField"` }
type SubStore ¶ added in v0.1.9
type SubStore struct { Name string `json:"name,omitempty"` TTL int `json:"ttl"` SortedKeyCount int `json:"sortedKeyCount"` TimeIndex int `json:"timeIndex"` Keys []SubStoreKey `json:"keys"` }
SubStore define
func NewSubStore ¶ added in v0.1.9
func NewSubStore(name string, ttl int, sortedKeyCount int, timeIndex int, keys []SubStoreKey) *SubStore
NewSubStore create a new sorted sub store
type SubStoreKey ¶ added in v0.1.9
SubStoreKey key define
type TemplateConfiguration ¶ added in v0.1.22
type TokenAutoUpdateClient ¶
type TokenAutoUpdateClient struct {
// contains filtered or unexported fields
}
func (*TokenAutoUpdateClient) ApplyConfigToMachineGroup ¶
func (c *TokenAutoUpdateClient) ApplyConfigToMachineGroup(project string, confName, groupName string) (err error)
func (*TokenAutoUpdateClient) CheckConfigExist ¶
func (c *TokenAutoUpdateClient) CheckConfigExist(project string, config string) (ok bool, err error)
func (*TokenAutoUpdateClient) CheckLogstoreExist ¶
func (c *TokenAutoUpdateClient) CheckLogstoreExist(project string, logstore string) (ok bool, err error)
func (*TokenAutoUpdateClient) CheckMachineGroupExist ¶
func (c *TokenAutoUpdateClient) CheckMachineGroupExist(project string, machineGroup string) (ok bool, err error)
func (*TokenAutoUpdateClient) CheckProjectExist ¶
func (c *TokenAutoUpdateClient) CheckProjectExist(name string) (ok bool, err error)
func (*TokenAutoUpdateClient) Close ¶
func (c *TokenAutoUpdateClient) Close() error
func (*TokenAutoUpdateClient) CreateAlert ¶
func (c *TokenAutoUpdateClient) CreateAlert(project string, alert *Alert) (err error)
func (*TokenAutoUpdateClient) CreateAlertString ¶ added in v0.1.19
func (c *TokenAutoUpdateClient) CreateAlertString(project string, alert string) (err error)
func (*TokenAutoUpdateClient) CreateChart ¶
func (c *TokenAutoUpdateClient) CreateChart(project, dashboardName string, chart Chart) (err error)
func (*TokenAutoUpdateClient) CreateConfig ¶
func (c *TokenAutoUpdateClient) CreateConfig(project string, config *LogConfig) (err error)
func (*TokenAutoUpdateClient) CreateConfigString ¶
func (c *TokenAutoUpdateClient) CreateConfigString(project string, config string) (err error)
func (*TokenAutoUpdateClient) CreateConsumerGroup ¶ added in v0.1.13
func (c *TokenAutoUpdateClient) CreateConsumerGroup(project, logstore string, cg ConsumerGroup) (err error)
func (*TokenAutoUpdateClient) CreateDashboard ¶
func (c *TokenAutoUpdateClient) CreateDashboard(project string, dashboard Dashboard) (err error)
func (*TokenAutoUpdateClient) CreateDashboardString ¶
func (c *TokenAutoUpdateClient) CreateDashboardString(project string, dashboardStr string) (err error)
func (*TokenAutoUpdateClient) CreateETL ¶ added in v0.1.39
func (c *TokenAutoUpdateClient) CreateETL(project string, etljob ETL) (err error)
func (*TokenAutoUpdateClient) CreateEtlMeta ¶
func (c *TokenAutoUpdateClient) CreateEtlMeta(project string, etlMeta *EtlMeta) (err error)
func (*TokenAutoUpdateClient) CreateEventStore ¶ added in v0.1.49
func (c *TokenAutoUpdateClient) CreateEventStore(project string, eventStore *LogStore) (err error)
func (*TokenAutoUpdateClient) CreateExport ¶ added in v0.1.30
func (c *TokenAutoUpdateClient) CreateExport(project string, export *Export) (err error)
func (*TokenAutoUpdateClient) CreateIndex ¶
func (c *TokenAutoUpdateClient) CreateIndex(project, logstore string, index Index) (err error)
func (*TokenAutoUpdateClient) CreateIndexString ¶
func (c *TokenAutoUpdateClient) CreateIndexString(project, logstore string, index string) (err error)
func (*TokenAutoUpdateClient) CreateIngestion ¶ added in v0.1.28
func (c *TokenAutoUpdateClient) CreateIngestion(project string, ingestion *Ingestion) (err error)
####################### Ingestion API ######################
func (*TokenAutoUpdateClient) CreateLogStore ¶
func (*TokenAutoUpdateClient) CreateLogStoreV2 ¶
func (c *TokenAutoUpdateClient) CreateLogStoreV2(project string, logstore *LogStore) (err error)
func (*TokenAutoUpdateClient) CreateMachineGroup ¶
func (c *TokenAutoUpdateClient) CreateMachineGroup(project string, m *MachineGroup) (err error)
func (*TokenAutoUpdateClient) CreateMetricStore ¶ added in v0.1.37
func (c *TokenAutoUpdateClient) CreateMetricStore(project string, metricStore *LogStore) (err error)
func (*TokenAutoUpdateClient) CreateProject ¶
func (c *TokenAutoUpdateClient) CreateProject(name, description string) (prj *LogProject, err error)
func (*TokenAutoUpdateClient) CreateProjectV2 ¶ added in v0.1.55
func (c *TokenAutoUpdateClient) CreateProjectV2(name, description, dataRedundancyType string) (prj *LogProject, err error)
func (*TokenAutoUpdateClient) CreateResource ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) CreateResource(resource *Resource) (err error)
func (*TokenAutoUpdateClient) CreateResourceRecord ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) CreateResourceRecord(resourceName string, record *ResourceRecord) (err error)
func (*TokenAutoUpdateClient) CreateResourceRecordString ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) CreateResourceRecordString(resourceName, recordStr string) (err error)
func (*TokenAutoUpdateClient) CreateResourceString ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) CreateResourceString(resourceStr string) (err error)
func (*TokenAutoUpdateClient) CreateSavedSearch ¶
func (c *TokenAutoUpdateClient) CreateSavedSearch(project string, savedSearch *SavedSearch) (err error)
func (*TokenAutoUpdateClient) CreateScheduledSQL ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) CreateScheduledSQL(project string, scheduledsql *ScheduledSQL) (err error)
####################### Scheduled SQL API ######################
func (*TokenAutoUpdateClient) CreateStoreView ¶ added in v0.1.77
func (c *TokenAutoUpdateClient) CreateStoreView(project string, storeView *StoreView) (err error)
func (*TokenAutoUpdateClient) DeleteAlert ¶
func (c *TokenAutoUpdateClient) DeleteAlert(project string, alertName string) (err error)
func (*TokenAutoUpdateClient) DeleteChart ¶
func (c *TokenAutoUpdateClient) DeleteChart(project, dashboardName, chartName string) (err error)
func (*TokenAutoUpdateClient) DeleteConfig ¶
func (c *TokenAutoUpdateClient) DeleteConfig(project string, config string) (err error)
func (*TokenAutoUpdateClient) DeleteConsumerGroup ¶ added in v0.1.13
func (c *TokenAutoUpdateClient) DeleteConsumerGroup(project, logstore string, cgName string) (err error)
func (*TokenAutoUpdateClient) DeleteDashboard ¶
func (c *TokenAutoUpdateClient) DeleteDashboard(project, name string) (err error)
func (*TokenAutoUpdateClient) DeleteETL ¶ added in v0.1.39
func (c *TokenAutoUpdateClient) DeleteETL(project string, etlName string) (err error)
func (*TokenAutoUpdateClient) DeleteEtlMeta ¶
func (c *TokenAutoUpdateClient) DeleteEtlMeta(project string, etlMetaName, etlMetaKey string) (err error)
func (*TokenAutoUpdateClient) DeleteEventStore ¶ added in v0.1.49
func (c *TokenAutoUpdateClient) DeleteEventStore(project, name string) (err error)
func (*TokenAutoUpdateClient) DeleteExport ¶ added in v0.1.30
func (c *TokenAutoUpdateClient) DeleteExport(project string, name string) (err error)
func (*TokenAutoUpdateClient) DeleteIndex ¶
func (c *TokenAutoUpdateClient) DeleteIndex(project, logstore string) (err error)
func (*TokenAutoUpdateClient) DeleteIngestion ¶ added in v0.1.28
func (c *TokenAutoUpdateClient) DeleteIngestion(project string, name string) (err error)
func (*TokenAutoUpdateClient) DeleteLogStore ¶
func (c *TokenAutoUpdateClient) DeleteLogStore(project string, logstore string) (err error)
func (*TokenAutoUpdateClient) DeleteMachineGroup ¶
func (c *TokenAutoUpdateClient) DeleteMachineGroup(project string, machineGroup string) (err error)
func (*TokenAutoUpdateClient) DeleteMetricStore ¶ added in v0.1.37
func (c *TokenAutoUpdateClient) DeleteMetricStore(project, name string) (err error)
func (*TokenAutoUpdateClient) DeleteProject ¶
func (c *TokenAutoUpdateClient) DeleteProject(name string) (err error)
func (*TokenAutoUpdateClient) DeleteProjectPolicy ¶ added in v0.1.39
func (c *TokenAutoUpdateClient) DeleteProjectPolicy(project string) (err error)
func (*TokenAutoUpdateClient) DeleteResource ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) DeleteResource(name string) (err error)
func (*TokenAutoUpdateClient) DeleteResourceRecord ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) DeleteResourceRecord(resourceName, recordId string) (err error)
func (*TokenAutoUpdateClient) DeleteSavedSearch ¶
func (c *TokenAutoUpdateClient) DeleteSavedSearch(project string, savedSearchName string) (err error)
func (*TokenAutoUpdateClient) DeleteScheduledSQL ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) DeleteScheduledSQL(project string, name string) (err error)
func (*TokenAutoUpdateClient) DeleteStoreView ¶ added in v0.1.77
func (c *TokenAutoUpdateClient) DeleteStoreView(project string, storeViewName string) (err error)
func (*TokenAutoUpdateClient) DisableAlert ¶
func (c *TokenAutoUpdateClient) DisableAlert(project string, alertName string) (err error)
func (*TokenAutoUpdateClient) EnableAlert ¶
func (c *TokenAutoUpdateClient) EnableAlert(project string, alertName string) (err error)
func (*TokenAutoUpdateClient) GetAlert ¶
func (c *TokenAutoUpdateClient) GetAlert(project string, alertName string) (alert *Alert, err error)
func (*TokenAutoUpdateClient) GetAlertString ¶ added in v0.1.19
func (c *TokenAutoUpdateClient) GetAlertString(project string, alertName string) (alert string, err error)
func (*TokenAutoUpdateClient) GetAppliedConfigs ¶
func (c *TokenAutoUpdateClient) GetAppliedConfigs(project string, groupName string) (confNames []string, err error)
func (*TokenAutoUpdateClient) GetAppliedMachineGroups ¶
func (c *TokenAutoUpdateClient) GetAppliedMachineGroups(project string, confName string) (groupNames []string, err error)
func (*TokenAutoUpdateClient) GetChart ¶
func (c *TokenAutoUpdateClient) GetChart(project, dashboardName, chartName string) (chart *Chart, err error)
func (*TokenAutoUpdateClient) GetCheckpoint ¶ added in v0.1.13
func (c *TokenAutoUpdateClient) GetCheckpoint(project, logstore string, cgName string) (checkPointList []*ConsumerGroupCheckPoint, err error)
func (*TokenAutoUpdateClient) GetConfig ¶
func (c *TokenAutoUpdateClient) GetConfig(project string, config string) (logConfig *LogConfig, err error)
func (*TokenAutoUpdateClient) GetConfigString ¶
func (c *TokenAutoUpdateClient) GetConfigString(project string, config string) (logConfig string, err error)
func (*TokenAutoUpdateClient) GetCursorTime ¶ added in v0.1.18
func (*TokenAutoUpdateClient) GetDashboard ¶
func (c *TokenAutoUpdateClient) GetDashboard(project, name string) (dashboard *Dashboard, err error)
func (*TokenAutoUpdateClient) GetDashboardString ¶
func (c *TokenAutoUpdateClient) GetDashboardString(project, name string) (dashboard string, err error)
func (*TokenAutoUpdateClient) GetETL ¶ added in v0.1.39
func (c *TokenAutoUpdateClient) GetETL(project string, etlName string) (ETLJob *ETL, err error)
func (*TokenAutoUpdateClient) GetEtlMeta ¶
func (c *TokenAutoUpdateClient) GetEtlMeta(project string, etlMetaName, etlMetaKey string) (etlMeta *EtlMeta, err error)
func (*TokenAutoUpdateClient) GetEventStore ¶ added in v0.1.49
func (c *TokenAutoUpdateClient) GetEventStore(project, name string) (eventStore *LogStore, err error)
func (*TokenAutoUpdateClient) GetExport ¶ added in v0.1.30
func (c *TokenAutoUpdateClient) GetExport(project, name string) (export *Export, err error)
func (*TokenAutoUpdateClient) GetHistograms ¶
func (c *TokenAutoUpdateClient) GetHistograms(project, logstore string, topic string, from int64, to int64, queryExp string) (h *GetHistogramsResponse, err error)
func (*TokenAutoUpdateClient) GetHistogramsToCompleted ¶ added in v0.1.41
func (c *TokenAutoUpdateClient) GetHistogramsToCompleted(project, logstore string, topic string, from int64, to int64, queryExp string) (h *GetHistogramsResponse, err error)
func (*TokenAutoUpdateClient) GetIndex ¶
func (c *TokenAutoUpdateClient) GetIndex(project, logstore string) (index *Index, err error)
func (*TokenAutoUpdateClient) GetIndexString ¶
func (c *TokenAutoUpdateClient) GetIndexString(project, logstore string) (index string, err error)
func (*TokenAutoUpdateClient) GetIngestion ¶ added in v0.1.28
func (c *TokenAutoUpdateClient) GetIngestion(project string, name string) (ingestion *Ingestion, err error)
func (*TokenAutoUpdateClient) GetLogLines ¶ added in v0.1.17
func (*TokenAutoUpdateClient) GetLogLinesByNano ¶ added in v0.1.50
func (*TokenAutoUpdateClient) GetLogLinesV2 ¶ added in v0.1.24
func (c *TokenAutoUpdateClient) GetLogLinesV2(project, logstore string, req *GetLogRequest) (r *GetLogLinesResponse, err error)
func (*TokenAutoUpdateClient) GetLogStore ¶
func (c *TokenAutoUpdateClient) GetLogStore(project string, logstore string) (logstoreRst *LogStore, err error)
func (*TokenAutoUpdateClient) GetLogStoreMeteringMode ¶ added in v0.1.59
func (c *TokenAutoUpdateClient) GetLogStoreMeteringMode(project string, logstore string) (res *GetMeteringModeResponse, err error)
func (*TokenAutoUpdateClient) GetLogsByNano ¶ added in v0.1.50
func (*TokenAutoUpdateClient) GetLogsBytes ¶
func (*TokenAutoUpdateClient) GetLogsBytesV2
deprecated
added in
v0.1.53
func (c *TokenAutoUpdateClient) GetLogsBytesV2(plr *PullLogRequest) (out []byte, nextCursor string, err error)
Deprecated: use GetLogsBytesWithQuery instead
func (*TokenAutoUpdateClient) GetLogsBytesWithQuery ¶ added in v0.1.69
func (c *TokenAutoUpdateClient) GetLogsBytesWithQuery(plr *PullLogRequest) (out []byte, plm *PullLogMeta, err error)
func (*TokenAutoUpdateClient) GetLogsToCompleted ¶ added in v0.1.41
func (*TokenAutoUpdateClient) GetLogsToCompletedV2 ¶ added in v0.1.41
func (c *TokenAutoUpdateClient) GetLogsToCompletedV2(project, logstore string, req *GetLogRequest) (r *GetLogsResponse, err error)
func (*TokenAutoUpdateClient) GetLogsToCompletedV3 ¶ added in v0.1.56
func (c *TokenAutoUpdateClient) GetLogsToCompletedV3(project, logstore string, req *GetLogRequest) (r *GetLogsV3Response, err error)
func (*TokenAutoUpdateClient) GetLogsV2 ¶ added in v0.1.24
func (c *TokenAutoUpdateClient) GetLogsV2(project, logstore string, req *GetLogRequest) (r *GetLogsResponse, err error)
func (*TokenAutoUpdateClient) GetLogsV3 ¶ added in v0.1.45
func (c *TokenAutoUpdateClient) GetLogsV3(project, logstore string, req *GetLogRequest) (r *GetLogsV3Response, err error)
func (*TokenAutoUpdateClient) GetMachineGroup ¶
func (c *TokenAutoUpdateClient) GetMachineGroup(project string, machineGroup string) (m *MachineGroup, err error)
func (*TokenAutoUpdateClient) GetMetricStore ¶ added in v0.1.37
func (c *TokenAutoUpdateClient) GetMetricStore(project, name string) (metricStore *LogStore, err error)
func (*TokenAutoUpdateClient) GetProject ¶
func (c *TokenAutoUpdateClient) GetProject(name string) (prj *LogProject, err error)
func (*TokenAutoUpdateClient) GetProjectPolicy ¶ added in v0.1.39
func (c *TokenAutoUpdateClient) GetProjectPolicy(project string) (policy string, err error)
func (*TokenAutoUpdateClient) GetResource ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) GetResource(name string) (resource *Resource, err error)
func (*TokenAutoUpdateClient) GetResourceRecord ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) GetResourceRecord(resourceName, recordId string) (record *ResourceRecord, err error)
func (*TokenAutoUpdateClient) GetResourceRecordString ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) GetResourceRecordString(resourceName, name string) (record string, err error)
func (*TokenAutoUpdateClient) GetResourceString ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) GetResourceString(name string) (resource string, err error)
func (*TokenAutoUpdateClient) GetSavedSearch ¶
func (c *TokenAutoUpdateClient) GetSavedSearch(project string, savedSearchName string) (savedSearch *SavedSearch, err error)
func (*TokenAutoUpdateClient) GetScheduledSQL ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) GetScheduledSQL(project string, name string) (s *ScheduledSQL, err error)
func (*TokenAutoUpdateClient) GetScheduledSQLJobInstance ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) GetScheduledSQLJobInstance(projectName, jobName, instanceId string, result bool) (instance *ScheduledSQLJobInstance, err error)
func (*TokenAutoUpdateClient) GetStoreView ¶ added in v0.1.77
func (c *TokenAutoUpdateClient) GetStoreView(project string, storeViewName string) (storeView *StoreView, err error)
func (*TokenAutoUpdateClient) GetStoreViewIndex ¶ added in v0.1.77
func (c *TokenAutoUpdateClient) GetStoreViewIndex(project string, storeViewName string) (resp *GetStoreViewIndexResponse, err error)
func (*TokenAutoUpdateClient) ListConfig ¶
func (*TokenAutoUpdateClient) ListConsumerGroup ¶ added in v0.1.13
func (c *TokenAutoUpdateClient) ListConsumerGroup(project, logstore string) (cgList []*ConsumerGroup, err error)
func (*TokenAutoUpdateClient) ListDashboard ¶
func (*TokenAutoUpdateClient) ListDashboardV2 ¶ added in v0.1.14
func (c *TokenAutoUpdateClient) ListDashboardV2(project string, dashboardName string, offset, size int) (dashboardList []string, dashboardItems []ResponseDashboardItem, count, total int, err error)
func (*TokenAutoUpdateClient) ListETL ¶ added in v0.1.39
func (c *TokenAutoUpdateClient) ListETL(project string, offset int, size int) (ETLResponse *ListETLResponse, err error)
func (*TokenAutoUpdateClient) ListEtlMeta ¶
func (*TokenAutoUpdateClient) ListEtlMetaName ¶
func (*TokenAutoUpdateClient) ListEtlMetaWithTag ¶
func (*TokenAutoUpdateClient) ListEventStore ¶ added in v0.1.49
func (c *TokenAutoUpdateClient) ListEventStore(project string, offset, size int) (eventStores []string, err error)
func (*TokenAutoUpdateClient) ListExport ¶ added in v0.1.30
func (*TokenAutoUpdateClient) ListIngestion ¶ added in v0.1.28
func (*TokenAutoUpdateClient) ListLogStore ¶
func (c *TokenAutoUpdateClient) ListLogStore(project string) (logstoreList []string, err error)
func (*TokenAutoUpdateClient) ListMachineGroup ¶
func (*TokenAutoUpdateClient) ListMachines ¶
func (c *TokenAutoUpdateClient) ListMachines(project, machineGroupName string) (ms []*Machine, total int, err error)
func (*TokenAutoUpdateClient) ListMachinesV2 ¶ added in v0.1.51
func (*TokenAutoUpdateClient) ListProject ¶
func (c *TokenAutoUpdateClient) ListProject() (projectNames []string, err error)
func (*TokenAutoUpdateClient) ListProjectV2 ¶
func (c *TokenAutoUpdateClient) ListProjectV2(offset, size int) (projects []LogProject, count, total int, err error)
func (*TokenAutoUpdateClient) ListResource ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) ListResource(resourceType string, resourceName string, offset, size int) (resourceList []*Resource, count, total int, err error)
####################### Resource API ######################
func (*TokenAutoUpdateClient) ListResourceRecord ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) ListResourceRecord(resourceName string, offset, size int) (recordList []*ResourceRecord, count, total int, err error)
####################### Resource Record API ######################
func (*TokenAutoUpdateClient) ListSavedSearch ¶
func (*TokenAutoUpdateClient) ListSavedSearchV2 ¶ added in v0.1.14
func (c *TokenAutoUpdateClient) ListSavedSearchV2(project string, savedSearchName string, offset, size int) (savedSearches []string, savedsearchItems []ResponseSavedSearchItem, total int, count int, err error)
func (*TokenAutoUpdateClient) ListScheduledSQL ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) ListScheduledSQL(project, name, displayName string, offset, size int) (scheduledsqls []*ScheduledSQL, total, count int, err error)
func (*TokenAutoUpdateClient) ListScheduledSQLJobInstances ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) ListScheduledSQLJobInstances(projectName, jobName string, status *InstanceStatus) (instances []*ScheduledSQLJobInstance, total, count int64, err error)
func (*TokenAutoUpdateClient) ListShards ¶
func (c *TokenAutoUpdateClient) ListShards(project, logstore string) (shardIDs []*Shard, err error)
func (*TokenAutoUpdateClient) ListStoreViews ¶ added in v0.1.77
func (c *TokenAutoUpdateClient) ListStoreViews(project string, req *ListStoreViewsRequest) (resp *ListStoreViewsResponse, err error)
func (*TokenAutoUpdateClient) ListSystemTagResources ¶ added in v0.1.62
func (c *TokenAutoUpdateClient) ListSystemTagResources(project string, resourceType string, resourceIDs []string, tags []ResourceFilterTag, tagOwnerUid string, category string, scope string, nextToken string) (respTags []*ResourceTagResponse, respNextToken string, err error)
ListSystemTagResources list system tag resources
func (*TokenAutoUpdateClient) ListTagResources ¶ added in v0.1.13
func (c *TokenAutoUpdateClient) ListTagResources(project string, resourceType string, resourceIDs []string, tags []ResourceFilterTag, nextToken string) (respTags []*ResourceTagResponse, respNextToken string, err error)
ListTagResources list tag resources
func (*TokenAutoUpdateClient) MergeShards ¶
func (c *TokenAutoUpdateClient) MergeShards(project, logstore string, shardID int) (shards []*Shard, err error)
func (*TokenAutoUpdateClient) ModifyScheduledSQLJobInstanceState ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) ModifyScheduledSQLJobInstanceState(projectName, jobName, instanceId string, state ScheduledSQLState) (err error)
func (*TokenAutoUpdateClient) PostLogStoreLogs ¶
func (c *TokenAutoUpdateClient) PostLogStoreLogs(project, logstore string, lg *LogGroup, hashKey *string) (err error)
func (*TokenAutoUpdateClient) PostLogStoreLogsV2 ¶ added in v0.1.73
func (c *TokenAutoUpdateClient) PostLogStoreLogsV2(project, logstore string, req *PostLogStoreLogsRequest) (err error)
func (*TokenAutoUpdateClient) PostRawLogWithCompressType ¶ added in v0.1.51
func (c *TokenAutoUpdateClient) PostRawLogWithCompressType(project, logstore string, rawLogData []byte, compressType int, hashKey *string) (err error)
PostRawLogWithCompressType put raw log data to log service, no marshal
func (*TokenAutoUpdateClient) PublishAlertEvent ¶ added in v0.1.43
func (c *TokenAutoUpdateClient) PublishAlertEvent(project string, alertResult []byte) error
func (*TokenAutoUpdateClient) PullLogs ¶
func (c *TokenAutoUpdateClient) PullLogs(project, logstore string, shardID int, cursor, endCursor string, logGroupMaxCount int) (gl *LogGroupList, nextCursor string, err error)
func (*TokenAutoUpdateClient) PullLogsV2
deprecated
added in
v0.1.53
func (c *TokenAutoUpdateClient) PullLogsV2(plr *PullLogRequest) (gl *LogGroupList, nextCursor string, err error)
Deprecated: use PullLogsWithQuery instead
func (*TokenAutoUpdateClient) PullLogsWithQuery ¶ added in v0.1.69
func (c *TokenAutoUpdateClient) PullLogsWithQuery(plr *PullLogRequest) (gl *LogGroupList, plm *PullLogMeta, err error)
func (*TokenAutoUpdateClient) PutLogs ¶
func (c *TokenAutoUpdateClient) PutLogs(project, logstore string, lg *LogGroup) (err error)
func (*TokenAutoUpdateClient) PutLogsWithCompressType ¶
func (c *TokenAutoUpdateClient) PutLogsWithCompressType(project, logstore string, lg *LogGroup, compressType int) (err error)
func (*TokenAutoUpdateClient) PutLogsWithMetricStoreURL ¶ added in v0.1.72
func (c *TokenAutoUpdateClient) PutLogsWithMetricStoreURL(project, logstore string, lg *LogGroup) (err error)
func (*TokenAutoUpdateClient) PutRawLogWithCompressType ¶
func (c *TokenAutoUpdateClient) PutRawLogWithCompressType(project, logstore string, rawLogData []byte, compressType int) (err error)
PutRawLogWithCompressType put raw log data to log service, no marshal
func (*TokenAutoUpdateClient) RemoveConfigFromMachineGroup ¶
func (c *TokenAutoUpdateClient) RemoveConfigFromMachineGroup(project string, confName, groupName string) (err error)
func (*TokenAutoUpdateClient) ResetAccessKeyToken ¶
func (c *TokenAutoUpdateClient) ResetAccessKeyToken(accessKeyID, accessKeySecret, securityToken string)
func (*TokenAutoUpdateClient) RestartETL ¶ added in v0.1.39
func (c *TokenAutoUpdateClient) RestartETL(project string, etljob ETL) (err error)
func (*TokenAutoUpdateClient) RestartExport ¶ added in v0.1.38
func (c *TokenAutoUpdateClient) RestartExport(project string, export *Export) (err error)
func (*TokenAutoUpdateClient) SetAuthVersion ¶ added in v0.1.42
func (c *TokenAutoUpdateClient) SetAuthVersion(version AuthVersionType)
SetAuthVersion set auth version that the client used
func (*TokenAutoUpdateClient) SetHTTPClient ¶ added in v0.1.31
func (c *TokenAutoUpdateClient) SetHTTPClient(client *http.Client)
SetHTTPClient set a custom http client, all request will send to sls by this client
func (*TokenAutoUpdateClient) SetRegion ¶ added in v0.1.42
func (c *TokenAutoUpdateClient) SetRegion(region string)
SetRegion set a region, must be set if using signature version v4
func (*TokenAutoUpdateClient) SetRetryTimeout ¶ added in v0.1.66
func (c *TokenAutoUpdateClient) SetRetryTimeout(timeout time.Duration)
SetRetryTimeout set retry timeout
func (*TokenAutoUpdateClient) SetUserAgent ¶ added in v0.1.34
func (c *TokenAutoUpdateClient) SetUserAgent(userAgent string)
func (*TokenAutoUpdateClient) SplitNumShard ¶ added in v0.1.38
func (c *TokenAutoUpdateClient) SplitNumShard(project, logstore string, shardID, shardNum int) (shards []*Shard, err error)
func (*TokenAutoUpdateClient) SplitShard ¶
func (*TokenAutoUpdateClient) StartETL ¶ added in v0.1.39
func (c *TokenAutoUpdateClient) StartETL(project string, name string) (err error)
func (*TokenAutoUpdateClient) StopETL ¶ added in v0.1.39
func (c *TokenAutoUpdateClient) StopETL(project string, name string) (err error)
func (*TokenAutoUpdateClient) TagResources ¶ added in v0.1.13
func (c *TokenAutoUpdateClient) TagResources(project string, tags *ResourceTags) (err error)
####################### Resource Tags API ###################### TagResources tag specific resource
func (*TokenAutoUpdateClient) TagResourcesSystemTags ¶ added in v0.1.62
func (c *TokenAutoUpdateClient) TagResourcesSystemTags(project string, tags *ResourceSystemTags) (err error)
TagResourcesSystemTags tag specific resource
func (*TokenAutoUpdateClient) UnTagResources ¶ added in v0.1.13
func (c *TokenAutoUpdateClient) UnTagResources(project string, tags *ResourceUnTags) (err error)
UnTagResources untag specific resource
func (*TokenAutoUpdateClient) UnTagResourcesSystemTags ¶ added in v0.1.62
func (c *TokenAutoUpdateClient) UnTagResourcesSystemTags(project string, tags *ResourceUnSystemTags) (err error)
UnTagResourcesSystemTags untag specific resource
func (*TokenAutoUpdateClient) UpdateAlert ¶
func (c *TokenAutoUpdateClient) UpdateAlert(project string, alert *Alert) (err error)
func (*TokenAutoUpdateClient) UpdateAlertString ¶ added in v0.1.19
func (c *TokenAutoUpdateClient) UpdateAlertString(project string, alertName, alert string) (err error)
func (*TokenAutoUpdateClient) UpdateChart ¶
func (c *TokenAutoUpdateClient) UpdateChart(project, dashboardName string, chart Chart) (err error)
func (*TokenAutoUpdateClient) UpdateCheckpoint ¶ added in v0.1.13
func (*TokenAutoUpdateClient) UpdateConfig ¶
func (c *TokenAutoUpdateClient) UpdateConfig(project string, config *LogConfig) (err error)
func (*TokenAutoUpdateClient) UpdateConfigString ¶
func (c *TokenAutoUpdateClient) UpdateConfigString(project string, configName, configDetail string) (err error)
func (*TokenAutoUpdateClient) UpdateConsumerGroup ¶ added in v0.1.13
func (c *TokenAutoUpdateClient) UpdateConsumerGroup(project, logstore string, cg ConsumerGroup) (err error)
func (*TokenAutoUpdateClient) UpdateDashboard ¶
func (c *TokenAutoUpdateClient) UpdateDashboard(project string, dashboard Dashboard) (err error)
func (*TokenAutoUpdateClient) UpdateDashboardString ¶
func (c *TokenAutoUpdateClient) UpdateDashboardString(project string, dashboardName, dashboardStr string) (err error)
func (*TokenAutoUpdateClient) UpdateETL ¶ added in v0.1.39
func (c *TokenAutoUpdateClient) UpdateETL(project string, etljob ETL) (err error)
func (*TokenAutoUpdateClient) UpdateEtlMeta ¶
func (c *TokenAutoUpdateClient) UpdateEtlMeta(project string, etlMeta *EtlMeta) (err error)
func (*TokenAutoUpdateClient) UpdateEventStore ¶ added in v0.1.49
func (c *TokenAutoUpdateClient) UpdateEventStore(project string, eventStore *LogStore) (err error)
func (*TokenAutoUpdateClient) UpdateExport ¶ added in v0.1.30
func (c *TokenAutoUpdateClient) UpdateExport(project string, export *Export) (err error)
func (*TokenAutoUpdateClient) UpdateIndex ¶
func (c *TokenAutoUpdateClient) UpdateIndex(project, logstore string, index Index) (err error)
func (*TokenAutoUpdateClient) UpdateIndexString ¶
func (c *TokenAutoUpdateClient) UpdateIndexString(project, logstore string, index string) (err error)
func (*TokenAutoUpdateClient) UpdateIngestion ¶ added in v0.1.28
func (c *TokenAutoUpdateClient) UpdateIngestion(project string, ingestion *Ingestion) (err error)
func (*TokenAutoUpdateClient) UpdateLogStore ¶
func (c *TokenAutoUpdateClient) UpdateLogStore(project string, logstore string, ttl, shardCnt int) (err error)
func (*TokenAutoUpdateClient) UpdateLogStoreMeteringMode ¶ added in v0.1.59
func (c *TokenAutoUpdateClient) UpdateLogStoreMeteringMode(project string, logstore string, meteringMode string) (err error)
func (*TokenAutoUpdateClient) UpdateLogStoreV2 ¶
func (c *TokenAutoUpdateClient) UpdateLogStoreV2(project string, logstore *LogStore) (err error)
func (*TokenAutoUpdateClient) UpdateMachineGroup ¶
func (c *TokenAutoUpdateClient) UpdateMachineGroup(project string, m *MachineGroup) (err error)
func (*TokenAutoUpdateClient) UpdateMetricStore ¶ added in v0.1.37
func (c *TokenAutoUpdateClient) UpdateMetricStore(project string, metricStore *LogStore) (err error)
func (*TokenAutoUpdateClient) UpdateProject ¶ added in v0.1.13
func (c *TokenAutoUpdateClient) UpdateProject(name, description string) (prj *LogProject, err error)
UpdateProject create a new loghub project.
func (*TokenAutoUpdateClient) UpdateProjectPolicy ¶ added in v0.1.39
func (c *TokenAutoUpdateClient) UpdateProjectPolicy(project, policy string) (err error)
func (*TokenAutoUpdateClient) UpdateResource ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) UpdateResource(resource *Resource) (err error)
func (*TokenAutoUpdateClient) UpdateResourceRecord ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) UpdateResourceRecord(resourceName string, record *ResourceRecord) (err error)
func (*TokenAutoUpdateClient) UpdateResourceRecordString ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) UpdateResourceRecordString(resourceName, recordStr string) (err error)
func (*TokenAutoUpdateClient) UpdateResourceString ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) UpdateResourceString(resourceName, resourceStr string) (err error)
func (*TokenAutoUpdateClient) UpdateSavedSearch ¶
func (c *TokenAutoUpdateClient) UpdateSavedSearch(project string, savedSearch *SavedSearch) (err error)
func (*TokenAutoUpdateClient) UpdateScheduledSQL ¶ added in v0.1.22
func (c *TokenAutoUpdateClient) UpdateScheduledSQL(project string, scheduledsql *ScheduledSQL) (err error)
func (*TokenAutoUpdateClient) UpdateStoreView ¶ added in v0.1.77
func (c *TokenAutoUpdateClient) UpdateStoreView(project string, storeView *StoreView) (err error)
type TriggerConfig ¶
type UpdateFuncProviderAdapter ¶ added in v0.1.55
type UpdateFuncProviderAdapter struct {
// contains filtered or unexported fields
}
Adapter for porting UpdateTokenFunc to a CredentialsProvider.
func NewUpdateFuncProviderAdapter ¶ added in v0.1.55
func NewUpdateFuncProviderAdapter(updateFunc UpdateTokenFunction) *UpdateFuncProviderAdapter
*
- Create a new credentials provider, which uses a UpdateTokenFunction to fetch credentials.
- @param updateFunc The function to fetch credentials. If the error returned is not nil, use last saved credentials.
- This updateFunc will mayed called concurrently, and whill be called before the expiration of the last saved credentials.
func (*UpdateFuncProviderAdapter) GetCredentials ¶ added in v0.1.55
func (adp *UpdateFuncProviderAdapter) GetCredentials() (Credentials, error)
If credentials expires or will be exipred soon, fetch a new credentials and return it.
Otherwise returns the credentials fetched last time.
Retry at most maxRetryTimes if failed to fetch.
type UpdateTokenFunction ¶
type UpdateTokenFunction = util.UpdateTokenFunction
type WebhookIntegration ¶ added in v0.1.22
type ZstdCompressor ¶ added in v0.1.81
type ZstdCompressor struct {
// contains filtered or unexported fields
}
func NewZstdCompressor ¶ added in v0.1.81
func NewZstdCompressor(level zstd.EncoderLevel) *ZstdCompressor
func (*ZstdCompressor) Compress ¶ added in v0.1.81
func (c *ZstdCompressor) Compress(src, dst []byte) ([]byte, error)
func (*ZstdCompressor) Decompress ¶ added in v0.1.81
func (c *ZstdCompressor) Decompress(src, dst []byte) ([]byte, error)
Source Files ¶
- client.go
- client_alert.go
- client_alert_resource.go
- client_consumer.go
- client_dashboard.go
- client_etl.go
- client_event_store.go
- client_interface.go
- client_job.go
- client_metric_agg.go
- client_metric_store.go
- client_project.go
- client_project_policy.go
- client_request.go
- client_resource.go
- client_resource_record.go
- client_scheduled_sql.go
- client_store.go
- client_store_view.go
- client_tag.go
- compressor.go
- config.go
- credentials.go
- credentials_provider.go
- error_code.go
- errors.go
- etl_job.go
- etl_job_project.go
- etl_meta.go
- log.pb.go
- log_config.go
- log_config_plugin.go
- log_logging.go
- log_project.go
- log_store.go
- log_store_shiper.go
- logger.go
- machine_group.go
- model.go
- oss_shipper_config.go
- request.go
- retry.go
- signature.go
- signature_v4.go
- sub_store.go
- token_auto_update_client.go
- utils.go