ingest

package
v0.0.0-...-44b9108 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ingest

type Ingest struct {
	CompanyName string
	AccessID    string
	AccessKey   string
	LogSource   string
	VersionID   string
}

Ingest will contain details about endpoint authorisation and code version details

func (*Ingest) SendLogs

func (in *Ingest) SendLogs(logs []Log) (*Response, error)

SendLogs will be used to send logs to logingest

type Log

type Log struct {
	Message    string            `json:"msg"`
	Timestamp  time.Time         `json:"timestamp"`
	ResourceID map[string]string `json:"_lm.resourceId"`
}

Log will contain information about logs being sent to logingest

type Response

type Response struct {
	Success   bool                     `json:"success"`
	Message   string                   `json:"message"`
	Errors    []map[string]interface{} `json:"errors"`
	RequestID uuid.UUID                `json:"requestId"`
}

Response will contain variable for responses from logingest

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL