Documentation
¶
Index ¶
- func TimeRange(ctx *gin.Context)
- func Top(ctx *gin.Context)
- type ErrSigMeta
- type ErrSigRank
- type ErrSigStat
- type ErrStat
- type ErrType
- type Serv
- func (s *Serv) Clear(ctx context.Context) error
- func (s *Serv) Collect(ctx context.Context)
- func (s *Serv) TimeRange(ctx context.Context, start, end int64, granularity cache.Granularity, ...) ([]*cache.PageTimeItem, *errors.Error)
- func (s *Serv) TopSignatures(ctx context.Context, start, end int64, filter []ErrType, limit int64) ([]*ErrSigRank, *errors.Error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrSigMeta ¶ added in v1.0.29
type ErrSigMeta struct {
SigHash string `json:"sigHash"` // Hash of signature for grouping/index
Signature string `json:"signature"` // Normalized exception signature
Level string `json:"level"` // Log level bound to this signature
SampleMsg string `json:"sampleMsg,omitempty"` // Sample msg
SampleError string `json:"sampleError,omitempty"` // Sample error
SampleTrace string `json:"sampleTrace,omitempty"` // Sample trace ID
FirstAt int64 `json:"firstAt"` // First seen time (unix seconds)
LastAt int64 `json:"lastAt"` // Last seen time (unix seconds)
}
type ErrSigRank ¶ added in v1.0.29
type ErrSigRank struct {
SigHash string `json:"sigHash"`
Signature string `json:"signature"`
Level string `json:"level"`
Count int64 `json:"count"`
SampleMsg string `json:"sampleMsg,omitempty"`
SampleError string `json:"sampleError,omitempty"`
SampleTrace string `json:"sampleTrace,omitempty"`
FirstAt int64 `json:"firstAt"`
LastAt int64 `json:"lastAt"`
}
type ErrSigStat ¶ added in v1.0.29
Click to show internal directories.
Click to hide internal directories.