Documentation ¶
Index ¶
- func NewLogBatch() *logsBatch
- type LMLogIngest
- type LMLogIngestRequest
- type LMLogIngestResponse
- type Option
- func WithAuthentication(authParams utils.AuthParams) Option
- func WithEndpoint(endpoint string) Option
- func WithGzipCompression(gzip bool) Option
- func WithHTTPClient(client *http.Client) Option
- func WithLogBatchingDisabled() Option
- func WithLogBatchingInterval(batchingInterval time.Duration) Option
- func WithRateLimit(requestCount int) Option
- type SendLogsOptionalParameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogBatch ¶ added in v1.0.0
func NewLogBatch() *logsBatch
Types ¶
type LMLogIngest ¶
type LMLogIngest struct {
// contains filtered or unexported fields
}
func NewLMLogIngest ¶
func NewLMLogIngest(ctx context.Context, opts ...Option) (*LMLogIngest, error)
NewLMLogIngest initializes LMLogIngest
func (*LMLogIngest) SendLogs ¶
func (logIngest *LMLogIngest) SendLogs(ctx context.Context, body []model.LogInput, o ...SendLogsOptionalParameters) (*model.IngestResponse, error)
SendLogs is the entry point for receiving log data
type LMLogIngestRequest ¶ added in v1.0.0
type LMLogIngestRequest struct {
Payload []model.LogPayload
}
type LMLogIngestResponse ¶ added in v1.0.0
type Option ¶ added in v0.2.0
type Option func(*LMLogIngest) error
LMLogIngest configuration options
func WithAuthentication ¶ added in v0.3.0
func WithAuthentication(authParams utils.AuthParams) Option
WithAuthentication is used for passing authentication token if not set in environment variables.
func WithEndpoint ¶ added in v0.6.1
WithEndpoint is used to set Endpoint URL to export logs
func WithGzipCompression ¶ added in v0.4.0
WithGzipCompression can be used to enable/disable gzip compression of log payload Note: By default, gzip compression is enabled.
func WithHTTPClient ¶ added in v0.6.0
WithHTTPClient is used to set HTTP client
func WithLogBatchingDisabled ¶ added in v0.5.0
func WithLogBatchingDisabled() Option
WithLogBatchingDisabled is used for disabling log batching.
func WithLogBatchingInterval ¶ added in v0.5.0
WithLogBatchingInterval is used for configuring batching time interval for logs.
func WithRateLimit ¶ added in v0.6.0
WithRateLimit is used to limit the log request count per minute
type SendLogsOptionalParameters ¶ added in v1.0.0
type SendLogsOptionalParameters struct { }
func NewSendLogOptionalParameters ¶ added in v1.0.0
func NewSendLogOptionalParameters() *SendLogsOptionalParameters