execute

package
v0.0.0-...-783ce04 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: AGPL-3.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg Config, debug bool) ([]*models.AlertRuleGroup, error)

Types

type Config

type Config struct {
	NumFolders      int    `json:"numFolders"`
	NumAlerting     int    `json:"numAlerting"`
	NumRecording    int    `json:"numRecording"`
	RulesPerGroup   int    `json:"rulesPerGroup"`
	GroupsPerFolder int    `json:"groupsPerFolder"`
	FolderUIDsCSV   string `json:"folderUIDsCSV"`
	QueryDS         string `json:"queryDS"`
	WriteDS         string `json:"writeDS"`
	EvalInterval    int64  `json:"evalInterval"`
	Seed            int64  `json:"seed"`
	DryRun          bool   `json:"dryRun"`
	Nuke            bool   `json:"nuke"`
	Concurrency     int    `json:"concurrency"`

	// Instance config.
	GrafanaURL string `json:"grafanaURL"`
	Username   string `json:"username"`
	Password   string `json:"password"`
	Token      string `json:"token"`
	OrgID      int64  `json:"orgID"`
	// contains filtered or unexported fields
}

func (*Config) Validate

func (c *Config) Validate() error

Validate validates the configuration and adds defaults.

Jump to

Keyboard shortcuts

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