queries

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PollDaemonset

func PollDaemonset(
	clientset kubernetes.Interface,
	alertSpec types.DaemonsetAlertSpec,
	tickertime int64,
	alertFn alertFunction,
	alertersConfig types.AlertersConfig,
) error

PollDaemonset function takes inputs and iterates across daemonsets in the kubernetes cluster, triggering alerts as needed.

func PollDeployment

func PollDeployment(
	clientset kubernetes.Interface,
	alertSpec types.DeploymentAlertSpec,
	tickertime int64,
	alertFn alertFunction,
	alertersConfig types.AlertersConfig,
) error

PollDeployment function takes inputs and iterates across deployments in the kubernetes cluster, triggering alerts as needed.

func PollNode

func PollNode(
	clientset kubernetes.Interface,
	alertSpec types.NodeAlertSpec,
	tickertime int64,
	alertFn alertFunction,
	alertersConfig types.AlertersConfig,
) error

PollNode function takes inputs and iterates across nodes in the kubernetes cluster, triggering alerts as needed.

func PollPod

func PollPod(
	clientset kubernetes.Interface,
	alertSpec types.PodAlertSpec,
	tickertime int64,
	alertFn alertFunction,
	alertersConfig types.AlertersConfig,
) error

PollPod function takes inputs and iterates across pods in the kubernetes cluster, triggering alerts as needed.

Types

type PollErr

type PollErr struct {
	Message string
}

PollErr is an error returned by Poll*

func (*PollErr) Error

func (err *PollErr) Error() string

Jump to

Keyboard shortcuts

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