Documentation ¶
Index ¶
- Variables
- type ChatRepo
- type ChatUsecase
- type CpuAverageUtilization
- type CpuBreakdownUtilization
- type CpuPeakUtilization
- type CpuState
- type CpuStateRepo
- type CpuStateUsecase
- type CpuUsage
- type CpuUtilization
- type HostActivity
- type HostActivityRepo
- type HostActivityUsecase
- type HostState
- type HostStateRepo
- type HostStateUsecase
- type Journal
- type NetworkError
- type NetworkErrorRepo
- type NetworkErrorUsecase
- type Propmpt
- type RagRepo
- type RagUsecase
- type SystemSecurityRepo
- type SystemSecurityUsercase
- type UserAction
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ChatUsecase ¶
type ChatUsecase struct {
// contains filtered or unexported fields
}
func NewChatUsecase ¶
func NewChatUsecase(repo ChatRepo, logger l.Logger) *ChatUsecase
func (*ChatUsecase) GetChatPromptsFromText ¶
type CpuAverageUtilization ¶
type CpuAverageUtilization struct {
Value string
}
type CpuBreakdownUtilization ¶
type CpuPeakUtilization ¶
type CpuState ¶
type CpuState struct { Util *CpuUtilization Usage []*CpuUsage }
type CpuStateRepo ¶
type CpuStateUsecase ¶
type CpuStateUsecase struct {
// contains filtered or unexported fields
}
func NewCpuStateUsecase ¶
func NewCpuStateUsecase(repo CpuStateRepo, logger l.Logger) *CpuStateUsecase
func (*CpuStateUsecase) GetCpuState ¶
type CpuUtilization ¶
type CpuUtilization struct { Server string AverageUtilization *CpuAverageUtilization PeakUtilization *CpuPeakUtilization BreakdownUtilization *CpuBreakdownUtilization }
type HostActivity ¶
type HostActivityRepo ¶
type HostActivityUsecase ¶
type HostActivityUsecase struct {
// contains filtered or unexported fields
}
func NewHostActivityUsecase ¶
func NewHostActivityUsecase(repo HostActivityRepo, logger l.Logger) *HostActivityUsecase
func (*HostActivityUsecase) GetHostsActivity ¶
func (uc *HostActivityUsecase) GetHostsActivity(ctx context.Context, start int64, end int64) ([]*HostActivity, error)
type HostStateRepo ¶
type HostStateUsecase ¶
type HostStateUsecase struct {
// contains filtered or unexported fields
}
func NewHostStateUsecase ¶
func NewHostStateUsecase(repo HostStateRepo, logger l.Logger) *HostStateUsecase
func (*HostStateUsecase) GetHostsState ¶
type Journal ¶
type Journal struct { // which directory Directory string // Directory Access Status Status string // Directory Access Message Message string }
Directory Access Log
type NetworkError ¶
type NetworkErrorRepo ¶
type NetworkErrorUsecase ¶
type NetworkErrorUsecase struct {
// contains filtered or unexported fields
}
func NewNetworkUsecase ¶
func NewNetworkUsecase(repo NetworkErrorRepo, logger l.Logger) *NetworkErrorUsecase
func (*NetworkErrorUsecase) GetNetworkError ¶
func (uc *NetworkErrorUsecase) GetNetworkError(ctx context.Context, start int64, end int64) ([]*NetworkError, error)
type RagUsecase ¶
type RagUsecase struct {
// contains filtered or unexported fields
}
func NewSystemSecurityUsecase ¶
func NewSystemSecurityUsecase(repo RagRepo, logger l.Logger) *RagUsecase
func (*RagUsecase) GetRagKeywords ¶
type SystemSecurityRepo ¶
type SystemSecurityUsercase ¶
type SystemSecurityUsercase struct {
// contains filtered or unexported fields
}
func NewSystemSecurityUsercase ¶
func NewSystemSecurityUsercase(repo SystemSecurityRepo, logger l.Logger) *SystemSecurityUsercase
func (*SystemSecurityUsercase) GetSystemSecurity ¶
func (uc *SystemSecurityUsercase) GetSystemSecurity(ctx context.Context, start int64, end int64) ([]*UserAction, error)
type UserAction ¶
type UserAction struct { // Login username User string // Standard, Admin, Guest, others... Privilege string // Login status Status string // Login message LoginMessage string // Directory Access Logs Journal []*Journal // Login time LoginTime int64 // Logout time LogoutTime int64 // Online time Online int64 }
Detecting user behavior over a time period
Click to show internal directories.
Click to hide internal directories.