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 ¶
func GetAgentLogs(ctx context.Context, h *api.HTTPAPI, opts AgentLogOpts) (models.PaginationResponse[agentlog.AgentLog], error)
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
Click to show internal directories.
Click to hide internal directories.