logtypes

package
v0.0.0-...-4f75e4d Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

sg-common/logtypes/logtypes.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpRequest

type HttpRequest struct {
	RequestMethod string `json:"requestMethod"`
	RequestUrl    string `json:"requestUrl"`
	Status        int    `json:"status"`
	UserAgent     string `json:"userAgent"`
	RemoteIp      string `json:"remoteIp"`
}

type LogData

type LogData struct {
	Log LogEntry `json:"log"`
}

type LogEntry

type LogEntry struct {
	Service     string                 `json:"service"`
	LogName     string                 `json:"logName"`
	Resource    Resource               `json:"resource"`
	Timestamp   string                 `json:"timestamp"`
	Level       string                 `json:"level"`
	Message     string                 `json:"message"`
	InsertId    string                 `json:"insertId,omitempty"`
	HttpRequest HttpRequest            `json:"httpRequest,omitempty"`
	TextPayload string                 `json:"textPayload,omitempty"`
	JsonPayload map[string]interface{} `json:"jsonPayload,omitempty"`
}

type Resource

type Resource struct {
	Type   string            `json:"type"`
	Labels map[string]string `json:"labels"`
}

Jump to

Keyboard shortcuts

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