viewmodel

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VmDbLoad

type VmDbLoad struct {
	Name string           `json:"name"`
	Sqls []*VmDbLoadOfSql `json:"sqls"`
}

func NewVmDbLoad

func NewVmDbLoad(name string) *VmDbLoad

type VmDbLoadOfSql

type VmDbLoadOfSql struct {
	Sql         string  `json:"sql"`
	LoadMax     float64 `json:"loadMax"`
	LoadSum     float64 `json:"loadSum"`
	TokenizedId string  `json:"tokenizedId"`
}

type VmExaminationCommandOption

type VmExaminationCommandOption struct {
	IsShort bool   `json:"isShort"`
	Name    string `json:"name"`
	Value   string `json:"value"`
}

func CreateOutputExaminationOption

func CreateOutputExaminationOption(addPrefix bool, filename string) *VmExaminationCommandOption

type VmExaminationIndexResult

type VmExaminationIndexResult struct {
	ExecutionTimeMillis int64          `json:"executionTimeMillis"`
	IndexTarget         *VmIndexTarget `json:"indexTarget"`
}

type VmExaminationResult

type VmExaminationResult struct {
	OriginalTimeMillis int64                       `json:"originalTimeMillis"`
	IndexResults       []*VmExaminationIndexResult `json:"indexResults"`
}

type VmIndexColumn

type VmIndexColumn struct {
	Name string `json:"name"`
}

type VmIndexTarget

type VmIndexTarget struct {
	TableName string           `json:"tableName"`
	Columns   []*VmIndexColumn `json:"columns"`
}

type VmMysqlExplainAnalyzeNode

type VmMysqlExplainAnalyzeNode struct {
	Text                  string     `json:"text"`
	Title                 string     `json:"title"`
	TableName             string     `json:"tableName"`
	EstimatedInitCost     null.Float `json:"estimatedInitCost"`
	EstimatedCost         null.Float `json:"estimatedCost"`
	EstimatedReturnedRows null.Int   `json:"estimatedReturnedRows"`
	ActualTimeFirstRow    null.Float `json:"actualTimeFirstRow"`
	ActualTimeAvg         null.Float `json:"actualTimeAvg"`
	ActualReturnedRows    null.Int   `json:"actualReturnedRows"`
	ActualLoopCount       null.Int   `json:"actualLoopCount"`

	Children []*VmMysqlExplainAnalyzeNode `json:"children"`
}

type VmOtelCompactTrace added in v0.0.2

type VmOtelCompactTrace struct {
	TraceId                  string           `json:"traceId"`
	SameServiceAccessCount   int              `json:"sameServiceAccessCount"`
	TimeConsumingServiceName string           `json:"timeConsumingServiceName"`
	Root                     *VmOtelTraceSpan `json:"root"`
}

type VmOtelTraceSpan added in v0.0.2

type VmOtelTraceSpan struct {
	Name            string             `json:"name"`
	SpanId          string             `json:"spanId"`
	StartTimeMillis int                `json:"startTimeMillis"`
	EndTimeMillis   int                `json:"endTimeMillis"`
	ServiceName     string             `json:"serviceName"`
	Children        []*VmOtelTraceSpan `json:"children"`
}

type VmPostgresExplainAnalyzeNode

type VmPostgresExplainAnalyzeNode struct {
	Text                  string     `json:"text"`
	Title                 string     `json:"title"`
	TableName             string     `json:"tableName"`
	EstimatedInitCost     null.Float `json:"estimatedInitCost"`
	EstimatedCost         null.Float `json:"estimatedCost"`
	EstimatedReturnedRows null.Int   `json:"estimatedReturnedRows"`
	EstimatedWidth        null.Int   `json:"estimatedWidth"`
	ActualTimeFirstRow    null.Float `json:"actualTimeFirstRow"`
	ActualTimeAvg         null.Float `json:"actualTimeAvg"`
	ActualReturnedRows    null.Int   `json:"actualReturnedRows"`
	ActualLoopCount       null.Int   `json:"actualLoopCount"`

	Children []*VmPostgresExplainAnalyzeNode `json:"children"`
}

type VmTimeDbLoad

type VmTimeDbLoad struct {
	Timestamp VmTimestamp `json:"timestamp"`
	Databases []*VmDbLoad `json:"databases"`
}

func NewVmTimeDbLoad

func NewVmTimeDbLoad(t time.Time) *VmTimeDbLoad

type VmTimestamp

type VmTimestamp time.Time

func (VmTimestamp) MarshalJSON

func (t VmTimestamp) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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