package
0.0.0-20221215172710-2bc910a812cc
Repository: https://github.com/gravitational/reporting.git
Documentation: pkg.go.dev
# Functions
FromGRPCEvent converts event from the format used by gRPC server/client.
FromGRPCEvents converts a series of events from the format used by gRPC server/client.
MarshalHeartbeat marshals heartbeat with schema validation.
NewHeartbeat returns a new heartbeat.
NewServerLoginEvent creates an instance of "server login" event.
NewUserLoginEvent creates an instance of "user login" event.
ToGRPCEvent converts provided event to the format used by gRPC server/client.
UnmarshalHeartbeat unmarshals heartbeat with schema validation.
# Constants
EventActionLogin is the event login action.
EventTypeServer is the server-related event type.
EventTypeUser is the user-related event type.
KindEvent is the event resource kind.
KindHeartbeat is the heartbeat resource kind.
NotificationTerms is the terms of service violation notification type.
NotificationUsage is the usage limit notification type.
ResourceVersion is the current event resource version.
SeverityError is error notification severity.
SeverityInfo is info notification severity.
SeverityWarning is warning notification severity.
# Structs
Heartbeat represents a heartbeat that is sent from control plane to teleport.
HeartbeatSpec is the heartbeat resource spec.
Metadata represents event resource metadata.
Notification represents a user notification message.
ServerEvent represents server-related event, such as "logged into server".
ServerEventSpec is server event specification.
UserEvent represents user-related event, such as "user logged in".
UserEventSpec is user event specification.
# Interfaces
Event defines an interface all event types should implement.