agentlog

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AgentLogV2URI = "/api/v2/agent_logs"

AgentLogV2URI is the endpoint for the agent logs API

Variables

This section is empty.

Functions

func GetAgentLogs

GetAgentLogs retrieves agent logs from the API with the given options

Types

type AgentLogOpts

type AgentLogOpts struct {
	Size       int       `json:"size"`
	Offset     int       `json:"offset"`
	Order      string    `json:"order"`
	AssetIDs   []string  `json:"asset_id,omitempty"`
	Action     string    `json:"action,omitempty"`
	DateAfter  time.Time `json:"date_after,omitempty"`
	DateBefore time.Time `json:"date_before,omitempty"`
	Query      string    `json:"query,omitempty"`
}

AgentLogOpts represents options for listing agent logs

Jump to

Keyboard shortcuts

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