alot more changes
This commit is contained in:
1 parent
23243ddbdc
commit
0ed2935f04
40 files changed
+2889
-115
No files matched your search
@@ -135,4 +135,16 @@ type IssueTracesPage struct {
|
||||
type OccurrenceStore interface {
|
||||
AppendOccurrence(ctx context.Context, occ Occurrence) error
|
||||
IssueTraces(ctx context.Context, issueID string, opts IssueTracesOptions) (IssueTracesPage, error)
|
||||
IssueSources(ctx context.Context, issueID string) ([]IssueSource, error)
|
||||
}
|
||||
|
||||
// IssueSource is one source address observed for an issue across all persisted
|
||||
// occurrences. It is deliberately an aggregate: the issue detail already
|
||||
// has the recent occurrence samples, while this answers "which sources ever
|
||||
// produced this issue?" without returning every raw occurrence.
|
||||
type IssueSource struct {
|
||||
IP string `json:"ip"`
|
||||
FirstSeen time.Time `json:"firstSeen"`
|
||||
LastSeen time.Time `json:"lastSeen"`
|
||||
Count uint64 `json:"count"`
|
||||
}
|
||||
Reference in new issue
Block a user