Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddEventsInput ¶
type AddEventsInput struct { // ProjectID is the project id. ProjectID string `json:"project_id"` // Events is the batch of events. Events []Event `json:"events"` }
AddEventsInput params.
type Client ¶
Client is the API client.
func (*Client) AddEvents ¶
func (c *Client) AddEvents(in AddEventsInput) error
AddEvents ingested a batch of events.
type Event ¶
type Event struct { // ID is the event id. ID string `json:"id"` // Level is the severity level. Level string `json:"level"` // Message is the log message. Message string `json:"message"` // Fields is the log fields. Fields map[string]interface{} `json:"fields"` // Timestamp is the creation timestamp. Timestamp time.Time `json:"timestamp"` }
Event represents a single log event.
Click to show internal directories.
Click to hide internal directories.