error

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

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"`
	Culprit   *string       `json:"culprit"`
	Context   common.MapStr `json:"context"`
	Exception *Exception    `json:"exception"`
	Log       *Log          `json:"log"`
	Timestamp string        `json:"timestamp"`

	TransformStacktrace m.TransformStacktrace
	// contains filtered or unexported fields
}

func (*Event) DocType

func (e *Event) DocType() string

func (*Event) Mappings

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

func (*Event) Transform

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

type Exception

type Exception struct {
	Code             interface{}        `json:"code"`
	Message          string             `json:"message"`
	Module           *string            `json:"module"`
	Attributes       interface{}        `json:"attributes"`
	StacktraceFrames m.StacktraceFrames `json:"stacktrace"`
	Type             *string            `json:"type"`
	Uncaught         *bool              `json:"uncaught"`
}

type Log

type Log struct {
	Level            *string            `json:"level"`
	Message          string             `json:"message"`
	ParamMessage     *string            `json:"param_message"`
	LoggerName       *string            `json:"logger_name"`
	StacktraceFrames m.StacktraceFrames `json:"stacktrace"`
}

type Payload

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

func (*Payload) Transform

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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