Documentation ¶
Index ¶
- Constants
- Variables
- func ArtifactsByCheck(ctx context.Context, checkID uuid.UUID, checkTime time.Time) ([]models.Artifact, error)
- func ArtifactsByPlaybookRun(ctx context.Context, runID uuid.UUID) ([]models.Artifact, error)
- func CheckSummary(ctx context.Context, opts ...CheckSummaryOptions) ([]models.CheckSummary, error)
- func CheckSummaryByID(ctx context.Context, checkID string) (*models.CheckSummary, error)
- func Config(ctx context.Context, sqlQuery string) ([]map[string]any, error)
- func GetComponent(ctx context.Context, id string) (*models.Component, error)
- func RefreshCheckStatusSummary(ctx context.Poolable) error
- func RefreshCheckStatusSummaryAged(ctx context.Poolable) error
- type CheckSummaryOptions
- type CheckSummarySortBy
- type Tags
- type TopologyOptions
- type TopologyResponse
Constants ¶
View Source
const DefaultDepth = 5
Variables ¶
View Source
var DefaultQueryTimeout = 30 * time.Second
Functions ¶
func ArtifactsByCheck ¶ added in v1.0.225
func ArtifactsByPlaybookRun ¶ added in v1.0.225
func CheckSummary ¶
func CheckSummary(ctx context.Context, opts ...CheckSummaryOptions) ([]models.CheckSummary, error)
func CheckSummaryByID ¶
func RefreshCheckStatusSummaryAged ¶ added in v1.0.227
Types ¶
type CheckSummaryOptions ¶
type CheckSummaryOptions struct { Timeout time.Duration CheckID *uuid.UUID SortBy CheckSummarySortBy DeleteFrom *time.Time // Labels apply to both the canary and check labels Labels map[string]string }
func OrderByName ¶
func OrderByName() CheckSummaryOptions
type CheckSummarySortBy ¶
type CheckSummarySortBy string
var CheckSummarySortByName CheckSummarySortBy = "name"
type TopologyOptions ¶
type TopologyOptions struct { ID string Owner string Labels map[string]string AgentID string Flatten bool Depth int // TODO: Filter status and types in DB Query Types []string Status []string // contains filtered or unexported fields }
func (TopologyOptions) String ¶
func (opt TopologyOptions) String() string
type TopologyResponse ¶
type TopologyResponse struct { Components models.Components `json:"components"` HealthStatuses []string `json:"healthStatuses"` Teams []string `json:"teams"` Tags Tags `json:"tags"` Types []string `json:"types"` }
func Topology ¶
func Topology(ctx context.Context, params TopologyOptions) (*TopologyResponse, error)
Click to show internal directories.
Click to hide internal directories.