pvcmonitor

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pod

type Pod struct {
	PodRef *Ref      `json:"podRef"`
	Volume []*Volume `json:"volume"`
}

type PvcMonitor

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

func NewPvcMonitor

func NewPvcMonitor(
	client kubernetes.Interface,
	config *config.PvcMonitor,
	alertManager *alertmanager.AlertManager) *PvcMonitor

NewPvcMonitor returns new instance of pvc monitor

func (*PvcMonitor) Start

func (p *PvcMonitor) Start()

type PvcUsage

type PvcUsage struct {
	Name            string
	PVName          string
	Namespace       string
	PodName         string
	UsagePercentage float64
}

type Ref

type Ref struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

type SummaryResponse

type SummaryResponse struct {
	Pods []*Pod `json:"pods"`
}

type Volume

type Volume struct {
	UsedBytes     int64  `json:"usedBytes"`
	CapacityBytes int64  `json:"capacityBytes"`
	Name          string `json:"name"`
	PvcRef        *Ref   `json:"pvcRef"`
}

Jump to

Keyboard shortcuts

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