-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathstats.models.go
37 lines (35 loc) · 1.69 KB
/
stats.models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package taigo
// DiscoverStats => https://taigaio.github.io/taiga-doc/dist/api.html#object-discover-stats
type DiscoverStats struct {
Projects struct {
Total int `json:"total"`
} `json:"projects"`
}
// SystemStats => https://taigaio.github.io/taiga-doc/dist/api.html#object-system-stats
type SystemStats struct {
Projects struct {
AverageLastFiveWorkingDays float64 `json:"average_last_five_working_days"`
AverageLastSevenDays float64 `json:"average_last_seven_days"`
PercentWithBacklog float64 `json:"percent_with_backlog"`
PercentWithBacklogAndKanban float64 `json:"percent_with_backlog_and_kanban"`
PercentWithKanban float64 `json:"percent_with_kanban"`
Today int `json:"today"`
Total int `json:"total"`
TotalWithBacklog int `json:"total_with_backlog"`
TotalWithBacklogAndKanban int `json:"total_with_backlog_and_kanban"`
TotalWithKanban int `json:"total_with_kanban"`
} `json:"projects"`
Users struct {
AverageLastFiveWorkingDays float64 `json:"average_last_five_working_days"`
AverageLastSevenDays float64 `json:"average_last_seven_days"`
CountsLastYearPerWeek map[string]int `json:"counts_last_year_per_week"`
Today int `json:"today"`
Total int `json:"total"`
} `json:"users"`
Userstories struct {
AverageLastFiveWorkingDays float64 `json:"average_last_five_working_days"`
AverageLastSevenDays float64 `json:"average_last_seven_days"`
Today int `json:"today"`
Total int `json:"total"`
} `json:"userstories"`
}