parameter

package
v1.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FromTrace   = "trace"
	FromProfile = "profile"
)
View Source
const (
	FilterBySpanTime = "spanTime"
	FilterByFull     = "full"
)
View Source
const (
	MinTimestampMicro = 1640966400000000
	MaxTimestampMicro = 2147483647000000
	MinTimestampNano  = 1640966400000000000
)

Variables

This section is empty.

Functions

func VerifyLanguage

func VerifyLanguage(profiles []*Profile) (languages.Lang, error)

VerifyLanguage 校验多个profiles中的language是否相同

Types

type BaseRequestParam

type BaseRequestParam struct {
	WorkspaceUUID string `json:"workspace_uuid" binding:"required"`
}

type DownloadParam

type DownloadParam struct {
	BaseRequestParam
	Profiles []*Profile `json:"profiles" binding:"required"`
}

type LookupParam

type LookupParam struct {
	WithTypeRequestParam
	Span
	FilterBy string     `json:"filter_by"`
	Profiles []*Profile `json:"profiles" binding:"required"`
}

type ParseParam

type ParseParam struct {
	WithTypeRequestParam
	Profile
}

type Profile

type Profile struct {
	Language     languages.Lang `json:"language" binding:"required"`
	EsDocID      string         `json:"__docid"`
	ProfileID    string         `json:"profile_id" binding:"required"`
	ProfileStart interface{}    `json:"profile_start" binding:"required"` // , min=1640966400000000000
	ProfileEnd   interface{}    `json:"profile_end" binding:"required"`   // , min=1640966400000000000
	// contains filtered or unexported fields
}

func (*Profile) EndTime

func (p *Profile) EndTime() (int64, error)

func (*Profile) StartTime

func (p *Profile) StartTime() (int64, error)

type Span

type Span struct {
	TraceID   string `json:"trace_id"`
	SpanID    string `json:"span_id"`
	SpanStart int64  `json:"span_start"`
	SpanEnd   int64  `json:"span_end"`
}

type SummaryParam

type SummaryParam struct {
	BaseRequestParam
	Span
	From     string     `json:"from"`
	FilterBy string     `json:"filter_by"`
	Profiles []*Profile `json:"profiles" binding:"required"`
}

type WithTypeRequestParam

type WithTypeRequestParam struct {
	BaseRequestParam
	Type string `json:"type" binding:"required"`
}

Jump to

Keyboard shortcuts

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