model

package
v0.0.0-...-1c3182e Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	ID    primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
	Error ErrorData          `json:"_data,omitempty" bson:"_data"`
}

Error stores an ErrorData and its id

type ErrorData

type ErrorData struct {
	Title          string   `json:"title,omitempty" bson:"title"`
	Type           string   `json:"type,omitempty" bson:"type"`
	StackTrace     []string `json:"stacktrace,omitempty" bson:"stacktrace"`
	FirstTimestamp float64  `json:"firsttimestamp,omitempty" bson:"firstTimestamp"`
	LastTimestamp  float64  `json:"lasttimestamp,omitempty" bson:"lastTimestamp"`
	Count          int16    `json:"count,omitempty" bson:"count"`
	MetricsId      string   `json:"metricsid,omitempty" bson:"metricsId"`
}

ErrorData stores usage info about a specific error

Jump to

Keyboard shortcuts

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