db

package
v0.0.0-...-7735815 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datapoint

type Datapoint struct {
	LabelSet []string
	Value    float64
}

type Db

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

func New

func New(connStr string) (db *Db, err error)

func (*Db) Builds

func (d *Db) Builds() (datapoints []Datapoint, err error)

func (*Db) Close

func (d *Db) Close() (err error)

func (*Db) Containers

func (d *Db) Containers() (datapoints []Datapoint, err error)

func (*Db) Pipelines

func (d *Db) Pipelines() (datapoints []Datapoint, err error)

func (*Db) Resources

func (d *Db) Resources() (datapoints []Datapoint, err error)

func (*Db) TableSizes

func (d *Db) TableSizes() (datapoints []Datapoint, err error)

func (*Db) TableStat

func (d *Db) TableStat() (datapoints []Datapoint, err error)

TableStat retrieves statistics from `pg_stat_user_tables`.

  • seq_scan - seq scans initiated on this table
  • seq_tup_read - live rows fetched by sequential scans
  • idx_scan - index scans initiated on this table
  • idx_tup_fetch - live rows fetched by index scans
  • n_tup_ins - rows inserted
  • n_tup_upd - rows updated
  • n_tup_del - rows deleted
  • n_tup_hot_upd - rows HOT updated
  • n_live_tup - lives rows
  • n_dead_tup - read rows

func (*Db) Teams

func (d *Db) Teams() (datapoints []Datapoint, err error)

func (*Db) Workers

func (d *Db) Workers() (datapoints []Datapoint, err error)

Jump to

Keyboard shortcuts

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