23 lines
745 B
Go
23 lines
745 B
Go
package activity
|
|
|
|
// Confidence level for a suggestion.
|
|
const (
|
|
ConfidenceLow = "low"
|
|
ConfidenceMedium = "medium"
|
|
ConfidenceHigh = "high"
|
|
)
|
|
|
|
// Suggestion represents a suggested worklog entry derived from today's activity.
|
|
type Suggestion struct {
|
|
NodeID string `json:"nodeId"`
|
|
NodeTitle string `json:"nodeTitle"`
|
|
Summary string `json:"summary"`
|
|
SuggestedMin int `json:"suggestedMin"`
|
|
EventCount int `json:"eventCount"`
|
|
NodeKind string `json:"nodeKind"`
|
|
Confidence string `json:"confidence"`
|
|
ConfidenceReason string `json:"confidenceReason"`
|
|
Hidden bool `json:"hidden"`
|
|
TimeSpreadMin int `json:"timeSpreadMin"` // minutes between first and last event
|
|
}
|