api

package
v1.0.62 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Error   string `json:"error"`
	Message string `json:"message"`
	Code    *int   `json:"code,omitempty"`
}

type Handler

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

func NewHandler

func NewHandler(cfg *config.Config) *Handler

func (*Handler) QueryLogs

func (h *Handler) QueryLogs(w http.ResponseWriter, r *http.Request)

func (*Handler) VerifyTables

func (h *Handler) VerifyTables() error

type LogGroup

type LogGroup struct {
	RepresentativeLogs []string `json:"representative_logs"`
	RelativeChange     float64  `json:"relative_change"`
}

type QueryLogsRequest

type QueryLogsRequest struct {
	Org        string    `json:"org"`
	Dashboard  string    `json:"dashboard"`
	PanelTitle string    `json:"panel_title"`
	MetricName string    `json:"metric_name"`
	StartTime  time.Time `json:"start_time"`
	EndTime    time.Time `json:"end_time"`
}

type QueryLogsResponse

type QueryLogsResponse struct {
	LogGroups []LogGroup `json:"log_groups"`
}

Jump to

Keyboard shortcuts

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