monitor

package
v2.40.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditEvent

type AuditEvent struct {
	ServiceID   string            `json:"service_id,omitempty"`
	ServiceName string            `json:"service_name,omitempty"`
	EventID     string            `json:"event_id,omitempty"`
	EventName   string            `json:"event_name,omitempty"`
	Created     string            `json:"created,omitempty"`
	Message     map[string]string `json:"message,omitempty"`
}

AuditEvent audit event definition.

type AuditEventCodes

type AuditEventCodes map[int]AuditEventInfo

AuditEventCodes audit event codes response definitions

type AuditEventInfo

type AuditEventInfo struct {
	EventID   int    `json:"event_id"`
	EventName string `json:"event_name"`
	EventDesc string `json:"event_desc"`
}

AuditEventInfo audit event codes value definitions.

type AuditEventSearch

type AuditEventSearch struct {
	Keywords      string `json:"keywords"`
	UserID        string `json:"user_id"`
	ConnectionID  string `json:"connection_id"`
	HostID        string `json:"host_id"`
	SourceID      string `json:"source_id"`
	SessionID     string `json:"session_id"`
	AccessGroupID string `json:"access_group_id"`
	StartTime     string `json:"start_time"`
	EndTime       string `json:"end_time"`
}

AuditEventSearch audit event search request definitions.

type Clock

type Clock struct {
	TimeUTC string `json:"time_utc"`
}

Clock server clock definition.

type Monitor

type Monitor struct {
	// contains filtered or unexported fields
}

Monitor is a monitor service client instance.

func New

func New(api restapi.Connector) *Monitor

New monitor service client constructor.

func (*Monitor) GetAuditEventCodes

func (c *Monitor) GetAuditEventCodes() (*AuditEventCodes, error)

GetAuditEventCodes get audit event codes.

func (*Monitor) GetAuditEvents

func (c *Monitor) GetAuditEvents(opts ...filters.Option) (*response.ResultSet[AuditEvent], error)

GetAuditEvents get audit events.

func (*Monitor) GetComponentStatus

func (c *Monitor) GetComponentStatus(hostname string) (*json.RawMessage, error)

GetComponentStatus get component status by hostname.

func (*Monitor) GetComponentsStatus

func (c *Monitor) GetComponentsStatus() (*json.RawMessage, error)

MARK: Components GetComponentsStatus get components status.

func (*Monitor) GetInstanceStatus

func (c *Monitor) GetInstanceStatus() (*json.RawMessage, error)

MARK: Instance GetInstanceStatus get PrivX instance status.

func (*Monitor) GetServerTime

func (c *Monitor) GetServerTime() (Clock, error)

MARK: Time GetServerTime get current PrivX server time.

func (*Monitor) SearchAuditEvents

func (c *Monitor) SearchAuditEvents(search *AuditEventSearch, opts ...filters.Option) (*response.ResultSet[AuditEvent], error)

MARK: Audit Events SearchAuditEvents search audit events.

func (*Monitor) Status

func (c *Monitor) Status() (*response.ServiceStatus, error)

MARK: Status Status get monitor service microservice status.

func (*Monitor) TerminateInstances

func (c *Monitor) TerminateInstances() error

TerminateInstances terminate PrivX instances.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL