watchdog

package
v0.0.0-...-bb0f945 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watchdog

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

Watchdog is a watchdog that monitors PostgreSQL activity

func NewWatchdog

func NewWatchdog(dataSourceName string, threshold int) *Watchdog

NewWatchdog returns a new Watchdog

func (*Watchdog) Execute

func (w *Watchdog) Execute()

Execute gets PostgreSQL activities per client and if the connections counts exceeds the threshold takes a snapshot as a YAML file

Jump to

Keyboard shortcuts

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