Documentation ¶
Index ¶
- Constants
- type Detector
- func (dtc *Detector) AddRecord(record RecordDetail, serviceGroup string)
- func (dtc *Detector) ClearIncidentReport() error
- func (dtc *Detector) GetIncidentCountAll() (map[string]map[string]int, int)
- func (dtc *Detector) GetIncidentCountByService(ServiceGroup string) map[string]int
- func (dtc *Detector) GetIncidentReportByService(ServiceGroup string) map[string][]RecordDetail
- func (dtc *Detector) GetIncidentReportByServiceAndType(ServiceGroup string, recordType string) []RecordDetail
- func (dtc *Detector) RecordLog(ctx context.Context, in *logger.LogRequest) (*emptypb.Empty, error)
- func (dtc *Detector) StartService(port int)
- type RecordDetail
- type ServiceRecorder
Constants ¶
View Source
const ( RECORDTYPE_LOSTCONNECTION = "lost_connection" RECORDTYPE_CRITICAL = "critical" RECORDTYPE_DEBUG = "debug" RECORDTYPE_OTHER = "other" RECORDTYPE_SUSPECT_CRASH = "suspect_crash" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct { Lck sync.RWMutex Services map[string]ServiceRecorder logger.UnimplementedLoggerServer }
func (*Detector) AddRecord ¶ added in v1.8.1
func (dtc *Detector) AddRecord(record RecordDetail, serviceGroup string)
func (*Detector) ClearIncidentReport ¶ added in v1.8.1
func (*Detector) GetIncidentCountAll ¶ added in v1.8.1
func (*Detector) GetIncidentCountByService ¶ added in v1.8.1
func (*Detector) GetIncidentReportByService ¶ added in v1.8.1
func (dtc *Detector) GetIncidentReportByService(ServiceGroup string) map[string][]RecordDetail
func (*Detector) GetIncidentReportByServiceAndType ¶ added in v1.8.1
func (dtc *Detector) GetIncidentReportByServiceAndType(ServiceGroup string, recordType string) []RecordDetail
func (*Detector) StartService ¶
type RecordDetail ¶ added in v1.8.1
type ServiceRecorder ¶ added in v1.8.1
type ServiceRecorder struct {
Records map[string][]RecordDetail // map[RECORD_TYPE][]RecordDetail
}
Click to show internal directories.
Click to hide internal directories.