check

package
v2.0.0-...-a949011 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckISMError

func CheckISMError(c *cli.Context) error

CheckISMError Wrap cli argument and call check

func CheckIndiceLocked

func CheckIndiceLocked(c *cli.Context) error

CheckIndiceLocked wrap command line to check

func CheckSLMPolicy

func CheckSLMPolicy(c *cli.Context) error

CheckSLMPolicy wrap command line to check

func CheckSMError

func CheckSMError(c *cli.Context) error

CheckSLMError wrap command line to check

func CheckTransformError

func CheckTransformError(c *cli.Context) error

CheckILMError Wrap cli argument and call check

Types

type Check

type Check interface {
	CheckISMError(indiceName string, excludeIndices []string) (*nagiosPlugin.Monitoring, error)
	CheckSMError(snapshotRepositoryName string) (*nagiosPlugin.Monitoring, error)
	CheckSMPolicy(policyName string) (*nagiosPlugin.Monitoring, error)
	CheckIndiceLocked(indiceName string) (*nagiosPlugin.Monitoring, error)
	CheckTransformError(transformName string, excludeTransforms []string) (*nagiosPlugin.Monitoring, error)
}

Check is interface of Opensearch monitoring

func NewCheck

func NewCheck(URL string, username string, password string, disableTLSVerification bool) (Check, error)

NewCheck permit to initialize connexion on Opensearch cluster

type DefaultCheck

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

DefaultCheck implement the interface of Check

func (*DefaultCheck) CheckISMError

func (h *DefaultCheck) CheckISMError(indiceName string, excludeIndices []string) (res *nagiosPlugin.Monitoring, err error)

func (*DefaultCheck) CheckIndiceLocked

func (h *DefaultCheck) CheckIndiceLocked(indiceName string) (monitoringData *nagiosPlugin.Monitoring, err error)

func (*DefaultCheck) CheckSMError

func (h *DefaultCheck) CheckSMError(snapshotRepositoryName string) (res *nagiosPlugin.Monitoring, err error)

CheckSMError check that there are no SM policy failed on repository

func (*DefaultCheck) CheckSMPolicy

func (h *DefaultCheck) CheckSMPolicy(policyName string) (res *nagiosPlugin.Monitoring, err error)

func (*DefaultCheck) CheckTransformError

func (h *DefaultCheck) CheckTransformError(transformName string, excludeTransforms []string) (monitoringData *nagiosPlugin.Monitoring, err error)

Jump to

Keyboard shortcuts

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