transaction

package
v0.0.0-...-449df0f Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Endpoint = "/v1/transactions"
)

Variables

This section is empty.

Functions

func NewProcessor

func NewProcessor() pr.Processor

func Schema

func Schema() string

Types

type Event

type Event struct {
	Id        string        `json:"id"`
	Name      string        `json:"name"`
	Type      string        `json:"type"`
	Result    *string       `json:"result"`
	Duration  float64       `json:"duration"`
	Timestamp string        `json:"timestamp"`
	Context   common.MapStr `json:"context"`
	Traces    []Trace       `json:"traces"`
}

func (*Event) DocType

func (t *Event) DocType() string

func (*Event) Mappings

func (t *Event) Mappings(pa *Payload) (string, []m.DocMapping)

func (*Event) Transform

func (t *Event) Transform() common.MapStr

type Payload

type Payload struct {
	App    m.App     `json:"app"`
	System *m.System `json:"system"`
	Events []Event   `json:"transactions"`
}

func (*Payload) Transform

func (pa *Payload) Transform() []beat.Event

type Trace

type Trace struct {
	Id               *int               `json:"id"`
	Name             string             `json:"name"`
	Type             string             `json:"type"`
	Start            float64            `json:"start"`
	Duration         float64            `json:"duration"`
	StacktraceFrames m.StacktraceFrames `json:"stacktrace"`
	Context          common.MapStr      `json:"context"`
	Parent           *int               `json:"parent"`

	TransformStacktrace m.TransformStacktrace
}

func (*Trace) DocType

func (t *Trace) DocType() string

func (*Trace) Mappings

func (t *Trace) Mappings(pa *Payload, tx Event) (string, []m.DocMapping)

func (*Trace) Transform

func (t *Trace) Transform(transactionId string) common.MapStr

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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