activity_logs

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(group *echo.Group, logger *zap.Logger, tsClient *timescaledb.Client)

Types

type Handler

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

func NewHandler

func NewHandler(logger *zap.Logger, tsClient *timescaledb.Client) *Handler

func (*Handler) GetActivityLogs

func (h *Handler) GetActivityLogs(c echo.Context) error

GetActivityLogs returns activity logs with pagination, search, and filters @Summary Get activity logs @Description Retrieve activity logs filtered by device_eui. Organization is resolved from X-Organization header or hostname (e.g., {org}.localhost) @Tags activity_logs @Accept json @Produce json @Param device_eui query string true "Filter by device EUI" @Param limit query int false "Number of results per page (default 20)" @Param offset query int false "Number of results to skip (default 0)" @Success 200 {object} common.PaginatedResponse @Failure 400 {object} map[string]string "Invalid request parameters" @Failure 500 {object} map[string]string "Internal server error" @Router /telemetry/v1/activity-logs [get]

Jump to

Keyboard shortcuts

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