Documentation ¶
Index ¶
- Variables
- func GetAggregatedDevices(w http.ResponseWriter, r *http.Request)
- func GetAggregatedFailedReasons(w http.ResponseWriter, r *http.Request)
- func GetAggregatedIDPServices(w http.ResponseWriter, r *http.Request)
- func GetAggregatedLoginHours(w http.ResponseWriter, r *http.Request)
- func GetAggregatedServices(w http.ResponseWriter, r *http.Request)
- func GetAggregatedUsers(w http.ResponseWriter, r *http.Request)
- func GetCAStats(w http.ResponseWriter, r *http.Request)
- func GetIPAggs(w http.ResponseWriter, r *http.Request)
- func GetLoginsByType(w http.ResponseWriter, r *http.Request)
- func GetMapPlotData(w http.ResponseWriter, r *http.Request)
- func GetPoliciesStats(w http.ResponseWriter, r *http.Request)
- func GetServicePermStats(w http.ResponseWriter, r *http.Request)
- func GetSuccessAndFailedEvents(w http.ResponseWriter, r *http.Request)
- func GetTotalLoginsByDate(w http.ResponseWriter, r *http.Request)
- func GetTotalManagedUsers(w http.ResponseWriter, r *http.Request)
- func HexaEvents(w http.ResponseWriter, r *http.Request)
- func InitStore(state *global.State)
- type AggIps
- type AllServices
- type AllUserDevices
- type FailedReasonsByType
- type LoginsByHour
- type PermStats
- type TotalUsers
Constants ¶
This section is empty.
Variables ¶
var Store adapter
Store is the package state variable which contains database connections
Functions ¶
func GetAggregatedDevices ¶
func GetAggregatedDevices(w http.ResponseWriter, r *http.Request)
GetAggregatedDevices returns device stats (total devices, mobile devices, total browsers)
func GetAggregatedFailedReasons ¶
func GetAggregatedFailedReasons(w http.ResponseWriter, r *http.Request)
GetAggregatedFailedReasons aggregates authentication according to failed reasons
func GetAggregatedIDPServices ¶
func GetAggregatedIDPServices(w http.ResponseWriter, r *http.Request)
GetAggregatedIDPServices aggregates services according to IDP
func GetAggregatedLoginHours ¶
func GetAggregatedLoginHours(w http.ResponseWriter, r *http.Request)
GetAggregatedLoginHours aggregates authentications according to hour
func GetAggregatedServices ¶
func GetAggregatedServices(w http.ResponseWriter, r *http.Request)
GetAggregatedServices aggregates services according to type
func GetAggregatedUsers ¶
func GetAggregatedUsers(w http.ResponseWriter, r *http.Request)
GetAggregatedUsers returns user aggregations It returns stats like total users in IDP, admin users, disabled users etc
func GetCAStats ¶
func GetCAStats(w http.ResponseWriter, r *http.Request)
GetCAStats returns CA stats
func GetIPAggs ¶
func GetIPAggs(w http.ResponseWriter, r *http.Request)
GetIPAggs aggregates authentications according to client IP
func GetLoginsByType ¶
func GetLoginsByType(w http.ResponseWriter, r *http.Request)
GetLoginsByType aggregates authentications by service type
func GetMapPlotData ¶
func GetMapPlotData(w http.ResponseWriter, r *http.Request)
GetMapPlotData returns city name, total population (total count), and cooardinates of login source.
func GetPoliciesStats ¶
func GetPoliciesStats(w http.ResponseWriter, r *http.Request)
GetPoliciesStats returns policy stats
func GetServicePermStats ¶
func GetServicePermStats(w http.ResponseWriter, r *http.Request)
func GetSuccessAndFailedEvents ¶
func GetSuccessAndFailedEvents(w http.ResponseWriter, r *http.Request)
GetSuccessAndFailedEvents returns total number of logins, total failed logins and total successful logins aggregated stats
func GetTotalLoginsByDate ¶
func GetTotalLoginsByDate(w http.ResponseWriter, r *http.Request)
GetTotalLoginsByDate returns array of GetSuccessAndFailedEvents per day
func GetTotalManagedUsers ¶
func GetTotalManagedUsers(w http.ResponseWriter, r *http.Request)
GetTotalManagedUsers returns total managed users (password stored in vault)
func HexaEvents ¶
func HexaEvents(w http.ResponseWriter, r *http.Request)
Types ¶
type AllServices ¶
type AllUserDevices ¶
type AllUserDevices struct { TotalUserdeivce int `json:"totalUserdevices"` TotalBrowsers int `json:"totalBrowsers"` TotalMobiles int `json:"totalMobiles"` TotalWorkstations int `json:"totalWorkstations"` BrowserByType []deviceByType `json:"browserByType"` MobileByType []deviceByType `json:"mobileByType"` WorkstationByType []deviceByType `json:"workstationsByType"` }