cmd

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *cobra.Command

New returns the new root command.

func NewCoverageCommand

func NewCoverageCommand(
	logger *logrus.Logger,
	printer interface{ PrintCoverage(*coverage.Report) error },
) *cobra.Command

NewCoverageCommand returns command to calculate metrics coverage by queries.

func NewMetricsCommand

func NewMetricsCommand(
	logger *logrus.Logger,
	printer interface{ PrintMetrics(entity.Metrics) error },
) *cobra.Command

NewMetricsCommand returns command to fetch metrics from Graphite.

func NewQueriesCommand

func NewQueriesCommand(
	logger *logrus.Logger,
	printer interface{ PrintQueries(entity.Queries) error },
) *cobra.Command

NewQueriesCommand returns command to fetch queries from a Grafana dashboard.

Types

This section is empty.

Jump to

Keyboard shortcuts

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