subcommand

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCheckCommand added in v0.0.8

func NewCheckCommand() *cli.Command

NewCheckCommand returns a command that detects disruptions in posted metrics and notifies the host as a CRITICAL alert.

Types

type Check added in v0.0.3

type Check struct {
	Config *config.CheckConfig
	Client *mackerel.Client
	DryRun bool

	*logger.Logger
}

func (*Check) Run added in v0.0.3

func (c *Check) Run(ctx context.Context) error

FIXME: If 'service' is ever added to CheckSource.Type, it may be necessary to consider separating the logic. see. https://github.com/mackerelio/mackerel-client-go/blob/264b7b7a402a9638b8137ec0a8ab9b8e950eef5a/checks.go#L16

Jump to

Keyboard shortcuts

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