model

package
v0.0.0-...-8d187f3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Debug

type Debug struct {
	IP        string `json:"ip"`
	Sql       string `json:"sql"`
	SqlCH     string `json:"sql_CH"`
	QueryTime string `json:"query_time"`
	QueryUUID string `json:"query_uuid"`
	Error     string `json:"error"`
}

type GrafanaProfileValue

type GrafanaProfileValue struct {
	Columns []string        `json:"columns"`
	Values  [][]interface{} `json:"values"`
}

type Profile

type Profile struct {
	AppService          string `json:"app_service" binding:"required"`
	ProfileEventType    string `json:"profile_event_type" binding:"required"`
	ProfileLanguageType string `json:"profile_language_type" binding:"required"`
	TagFilter           string `json:"tag_filter"`
	GroupBy             string `json:"group_by"`
	TimeStart           int    `json:"time_start" binding:"required"`
	TimeEnd             int    `json:"time_end" binding:"required"`
	Debug               bool   `json:"debug"`
	Context             context.Context
	OrgID               string
	MaxKernelStackDepth *int `json:"max_kernel_stack_depth"` // default: -1
}

type ProfileDebug

type ProfileDebug struct {
	QuerierDebug []Debug `json:"querier_debug"`
	FormatTime   string  `json:"format_time"`
}

type ProfileGrafana

type ProfileGrafana struct {
	Sql              string `json:"sql" binding:"required"` // profile filter
	ProfileEventType string `json:"profile_event_type" binding:"required"`
	Debug            bool   `json:"debug"`
}

type ProfileTree

type ProfileTree struct {
	Functions      []string `json:"functions"`
	FunctionTypes  []string `json:"function_types"`
	FunctionValues Value    `json:"function_values"`
	NodeValues     Value    `json:"node_values"`
}

type ProfileTreeNode

type ProfileTreeNode struct {
	LocationID   int
	ParentNodeID int
	SelfValue    int
	TotalValue   int
}

type Value

type Value struct {
	Columns []string `json:"columns"`
	Values  [][]int  `json:"values"`
}

Jump to

Keyboard shortcuts

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