Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler implementation.
type LogEntry ¶
type LogEntry struct { // TextPayload: The log entry payload, represented as a Unicode string // (UTF-8). TextPayload string `json:"textPayload,omitempty"` // Timestamp: Optional. The time the event described by the log entry // occurred. This time is used to compute the log entry's age and to // enforce the logs retention period. If this field is omitted in a new // log entry, then Logging assigns it the current time. Timestamps have // nanosecond accuracy, but trailing zeros in the fractional seconds // might be omitted when the timestamp is displayed.Incoming log entries // should have timestamps that are no more than the logs retention // period in the past, and no more than 24 hours in the future. Log // entries outside those time boundaries will not be available when // calling entries.list, but those log entries can still be exported // with LogSinks. Timestamp string `json:"timestamp,omitempty"` // Trace: Optional. Resource name of the trace associated with the log // entry, if any. If it contains a relative resource name, the name is // assumed to be relative to //tracing.googleapis.com. Example: // projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824 Trace string `json:"trace,omitempty"` // SpanID represents the span identitifer SpanID string `json:"span_id"` // Severity: Optional. The severity of the log entry. The default value // is LogSeverity.DEFAULT. // // Possible values: // "DEFAULT" - (0) The log entry has no assigned severity level. // "DEBUG" - (100) Debug or trace information. // "INFO" - (200) Routine information, such as ongoing status or // performance. // "NOTICE" - (300) Normal but significant events, such as start up, // shut down, or a configuration change. // "WARNING" - (400) Warning events might cause problems. // "ERROR" - (500) Error events are likely to cause problems. // "CRITICAL" - (600) Critical events cause more severe problems or // outages. // "ALERT" - (700) A person must take an action immediately. // "EMERGENCY" - (800) One or more systems are unusable. Severity string `json:"severity,omitempty"` // Fields represents the associated fields Fields log.Map `json:"fields,omitempty"` }
LogEntry represents the Google Cloud Log Entry
Click to show internal directories.
Click to hide internal directories.