schemas

package
v0.0.0-...-e7003a4 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EuripidesHandlerOnce sync.Once
)
View Source
var EuripidesSchema, _ = graphql.NewSchema(graphql.SchemaConfig{
	Query: rootQuery,
})
View Source
var ParentTrace = graphql.NewObject(graphql.ObjectConfig{
	Name: "ParentTrace",
	Fields: graphql.Fields{
		"traceID": &graphql.Field{
			Type: graphql.String,
		},
		"isActive": &graphql.Field{
			Type: graphql.Boolean,
		},
		"items": &graphql.Field{
			Type: graphql.NewList(itemType),
		},
		"timeEnded": &graphql.Field{
			Type: graphql.String,
		},
		"timeStarted": &graphql.Field{
			Type: graphql.String,
		},
		"totalTime": &graphql.Field{
			Type: graphql.Int,
		},
		"responseCode": &graphql.Field{
			Type: graphql.Int,
		},
	},
})
View Source
var TraceQueryInputType = graphql.NewInputObject(graphql.InputObjectConfig{
	Name: "TraceQueryInput",
	Fields: graphql.InputObjectConfigFieldMap{
		"ids": &graphql.InputObjectFieldConfig{
			Type: graphql.NewList(graphql.String),
		},
		"statusCode": &graphql.InputObjectFieldConfig{
			Type: graphql.Int,
		},
		"beginTime": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
		"endTime": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
		"totalTimeHigherThan": &graphql.InputObjectFieldConfig{
			Type: graphql.Int,
		},
		"podName": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
		"operation": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
	},
})

TraceQueryInputType Define an input object type for the "traces" field arguments

Functions

func InitEuripidesHandler

func InitEuripidesHandler()

Types

type DatabaseSpan

type DatabaseSpan struct {
	ParentSpanID string `json:"parent_span_id"`
	ResultJSON   string `json:"result_json"`
	SpanID       string `json:"span_id"`
	ItemType     string `json:"item_type"`
	Query        string `json:"query"`
	Namespace    string `json:"namespace"`
	Timestamp    string `json:"timestamp"`
	PodName      string `json:"pod_name"`
}

type Span

type Span struct {
	ParentSpanID string `json:"parent_span_id"`
	Namespace    string `json:"namespace"`
	Timestamp    string `json:"timestamp"`
	PodName      string `json:"pod_name"`
	ItemType     string `json:"item_type"`
	Action       string `json:"action"`
	ResponseBody string `json:"response_body"`
}

type Trace

type Trace struct {
	ParentSpanID  string `json:"parent_span_id"`
	Method        string `json:"method"`
	URL           string `json:"url"`
	Host          string `json:"host"`
	RemoteAddress string `json:"remote_address"`
	Timestamp     string `json:"timestamp"`
	PodName       string `json:"pod_name"`
	Namespace     string `json:"namespace"`
	ItemType      string `json:"item_type"`
	Operation     string `json:"operation"`
	RootQuery     string `json:"root_query"`
}

type TraceObject

type TraceObject struct {
	TraceID      string        `json:"traceID"`
	TimeEnded    string        `json:"timeEnded"`
	TimeStarted  string        `json:"timeStarted"`
	TotalTime    int           `json:"totalTime"`
	ResponseCode int           `json:"responseCode"`
	IsActive     bool          `json:"isActive"`
	Items        []interface{} `json:"items"`
}

Jump to

Keyboard shortcuts

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