annotations

package
v0.0.0-...-0301fe8 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRequest = errors.New("annotations need a positive range of at most 430 days and at most 100 services")

Functions

This section is empty.

Types

type Anomaly

type Anomaly struct {
	Namespace string    `json:"namespace"`
	Service   string    `json:"service"`
	Kind      string    `json:"kind"`
	From      time.Time `json:"from"`
	To        time.Time `json:"to"`
	Title     string    `json:"title"`
	Severity  string    `json:"severity"`
}

type Deploy

type Deploy struct {
	Namespace string    `json:"namespace"`
	Service   string    `json:"service"`
	Version   string    `json:"version"`
	At        time.Time `json:"at"`
}

type Request

type Request struct {
	From     time.Time `json:"from"`
	To       time.Time `json:"to"`
	Services []string  `json:"services,omitempty"`
	// An empty Namespace uses the query engine's DefaultNamespace.
	Namespace string `json:"namespace,omitempty"`
}

type Response

type Response struct {
	Deploys   []Deploy  `json:"deploys"`
	Anomalies []Anomaly `json:"anomalies"`
	Truncated bool      `json:"truncated,omitempty"`
}

type Service

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

func New

func New(db queryrows.Queryer) *Service

func (*Service) Read

func (s *Service) Read(ctx context.Context, req Request) (Response, error)

Jump to

Keyboard shortcuts

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