metrics

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetsByOwnerResponse

type AssetsByOwnerResponse struct {
	Assets map[string]int64 `json:"assets"`
}

type AssetsByProviderResponse

type AssetsByProviderResponse struct {
	Assets map[string]int64 `json:"assets"`
}

type AssetsByTypeResponse

type AssetsByTypeResponse struct {
	Assets map[string]int64 `json:"assets"`
}

type AssetsWithSchemasResponse

type AssetsWithSchemasResponse struct {
	Count      int64   `json:"count"`
	Total      int64   `json:"total"`
	Percentage float64 `json:"percentage"`
}

type GetMetricsRequest

type GetMetricsRequest struct {
	Start           string            `json:"start"`
	End             string            `json:"end"`
	MetricNames     []string          `json:"metric_names"`
	Labels          map[string]string `json:"labels"`
	AggregationType string            `json:"aggregation"`
	BucketSize      string            `json:"bucket_size"`
}

type GetMetricsResponse

type GetMetricsResponse struct {
	Metrics []metrics.AggregatedMetric `json:"metrics"`
	Query   GetMetricsRequest          `json:"query"`
}

type Handler

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

func NewHandler

func NewHandler(metricsService *metrics.Service, userService user.Service, authService auth.Service, cfg *config.Config) *Handler

func (*Handler) Routes

func (h *Handler) Routes() []common.Route

type TotalAssetsResponse

type TotalAssetsResponse struct {
	Count int64 `json:"count"`
}

Jump to

Keyboard shortcuts

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