monitor

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

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 definitions

type AuditEventCodes

type AuditEventCodes map[string]AuditEventInfo

AuditEventCodes audit event codes definitions

type AuditEventInfo

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

AuditEventInfo audit event codes value definitions

type AuditEventSearchObject

type AuditEventSearchObject 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"`
}

AuditEventSearchObject audit event search definitions

type EventsResult

type EventsResult struct {
	Count int          `json:"count"`
	Items []AuditEvent `json:"items"`
}

EventsResult list of event results

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 creates a new monitor service client instance, using the argument SDK API client.

func (*Monitor) AuditEventCodes

func (store *Monitor) AuditEventCodes() (*AuditEventCodes, error)

AuditEventCodes get audit event codes

func (*Monitor) AuditEvents

func (store *Monitor) AuditEvents(offset, limit int, sortkey, sortdir string, fuzzycount bool) (*EventsResult, error)

AuditEvents get all audit events

func (*Monitor) ComponentStatus

func (store *Monitor) ComponentStatus(hostname string) (*json.RawMessage, error)

ComponentStatus get component status object by hostname.

func (*Monitor) ComponentsStatus

func (store *Monitor) ComponentsStatus() (*json.RawMessage, error)

ComponentsStatus get the status of all deployed privx components

func (*Monitor) InstanceStatus

func (store *Monitor) InstanceStatus() (*json.RawMessage, error)

InstanceStatus status of the whole instance

func (*Monitor) SearchAuditEvents

func (store *Monitor) SearchAuditEvents(offset, limit int, sortkey, sortdir string, fuzzycount bool, searchObject *AuditEventSearchObject) (*EventsResult, error)

SearchAuditEvents search for audit events

func (*Monitor) TerminateInstances

func (store *Monitor) TerminateInstances() error

TerminateInstances terminate PrivX instances

type Params

type Params struct {
	Offset     int    `json:"offset,omitempty"`
	Limit      int    `json:"limit,omitempty"`
	Sortdir    string `json:"sortdir,omitempty"`
	Sortkey    string `json:"sortkey,omitempty"`
	FuzzyCount bool   `json:"fuzzycount,omitempty"`
}

Params struct for pagination queries.

Jump to

Keyboard shortcuts

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