auditlog

package
v1.57.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 10 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 {
	ID              string `json:"id"`
	Timestamp       string `json:"timestamp"`
	EventType       string `json:"event_type"`
	TargetID        string `json:"target_id"`
	TargetName      string `json:"target_name"`
	TargetType      string `json:"target_type"`
	SubTargetType   string `json:"sub_target_type"`
	Origin          string `json:"origin"`
	TriggeredBy     string `json:"triggered_by"`
	ProjectID       string `json:"project_id"`
	ProjectName     string `json:"project_name"`
	EnvironmentID   string `json:"environment_id"`
	EnvironmentName string `json:"environment_name"`
	EnvironmentType string `json:"environment_type"`
	UserAgent       string `json:"user_agent"`
	Change          string `json:"change"`
}

type AuditLogResponse

type AuditLogResponse struct {
	Links  Links        `json:"links"`
	Events []AuditEvent `json:"events"`
}

Response structures for the audit logs API

type DownloadOptions

type DownloadOptions struct {
	OrganizationID string
	FromDate       string
	ToDate         string
	TokenType      string
	Token          string
}

DownloadOptions contains parameters for downloading audit logs

type Links struct {
	Next string `json:"next"`
}

type Service

type Service struct{}

Service handles audit log operations

func NewService

func NewService() *Service

NewService creates a new audit log service

func (*Service) DownloadAuditLogs

func (s *Service) DownloadAuditLogs(options DownloadOptions) error

DownloadAuditLogs downloads audit logs and saves them to a CSV file

Jump to

Keyboard shortcuts

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