common

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ALL   = "all"
	TRACE = "trace"
	DEBUG = "debug"
	INFO  = "info"
	WARN  = "warn"
	ERROR = "error"
	FATAL = "fatal"
	OFF   = "off"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TelemetryConf

type TelemetryConf struct {
	LogLevel      string `json:"logLevel"` //日志级别,从0~7,0代表全部输出,7代表关闭输出。all,trace,debug,info,warn,error,fatal,off
	TraceUrl      string `json:"traceUrl"`
	LogUrl        string `json:"logUrl"`
	ServerName    string `json:"serverName"`
	ServerVersion string `json:"serverVersion"`
	TraceEnabled  bool   `json:"traceEnabled,string"`
	// AuditUrl 审计日志的上报地址,例如 https://anyrobot.example.org/api/feed_ingester/v1/jobs/12d627fb523d7362/events
	AuditUrl string `json:"auditUrl"`
	//AuditEnabled  是否启用审计日志
	AuditEnabled bool `json:"auditEnabled,string"`
}

Deprecated

Jump to

Keyboard shortcuts

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