-
Notifications
You must be signed in to change notification settings - Fork 15
/
stat.go
32 lines (31 loc) · 2.26 KB
/
stat.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
package main
type statistics struct {
UsersCount int `json:"users_count"`
GroupsCount int `json:"groups_count"`
ActiveUsersOnEndpointCount int `json:"active_users_on_endpoint_count"`
ActiveUsersTotalCount int `json:"active_users_total_count"`
HeavyUsersCount int `json:"heavy_users_count"`
ModelsCount int `json:"models_count"`
ModelsToPollOnEndpointCount int `json:"models_to_poll_on_endpoint_count"`
ModelsToPollTotalCount int `json:"models_to_poll_total_count"`
OnlineModelsCount int `json:"online_models_count"`
KnownModelsCount int `json:"known_models_count"`
SpecialModelsCount int `json:"special_models_count"`
StatusChangesCount int `json:"status_changes_count"`
QueriesDurationMilliseconds int `json:"queries_duration_milliseconds"`
UpdatesDurationMilliseconds int `json:"updates_duration_milliseconds"`
CleaningDurationMilliseconds int `json:"cleaning_duration_milliseconds"`
ErrorRate [2]int `json:"error_rate"`
DownloadErrorRate [2]int `json:"download_error_rate"`
Rss int64 `json:"rss"`
MaxRss int64 `json:"max_rss"`
TransactionsOnEndpointCount int `json:"transactions_on_endpoint_count"`
TransactionsOnEndpointFinished int `json:"transactions_on_endpoint_finished"`
UserReferralsCount int `json:"user_referrals_count"`
ModelReferralsCount int `json:"model_referrals_count"`
ReportsCount int `json:"reports_count"`
ChangesInPeriod int `json:"changes_in_period"`
ConfirmedChangesInPeriod int `json:"confirmed_changes_in_period"`
Interactions map[int]int `json:"interactions"`
InteractionsByKind map[packetKind]int `json:"interactions_by_kind"`
}