workloadChart

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Axis

type Axis struct {
	Type string   `json:"type,omitempty"`
	Data []string `json:"data,omitempty"`
}

type AxisPointer

type AxisPointer struct {
	Type string `json:"type,omitempty"`
}

type ComponentWorkloadChart

type ComponentWorkloadChart struct {
	Type  string `json:"type,omitempty"`
	State State  `json:"state"`
	Data  Data   `json:"data"`
}

func (*ComponentWorkloadChart) GenComponentState

func (w *ComponentWorkloadChart) GenComponentState(c *cptype.Component) error

func (*ComponentWorkloadChart) Render

func (*ComponentWorkloadChart) SetComponentValue

func (w *ComponentWorkloadChart) SetComponentValue(ctx context.Context) error

func (*ComponentWorkloadChart) Transfer

func (w *ComponentWorkloadChart) Transfer(component *cptype.Component)

type Count

type Count struct {
	Active    int `json:"active"`
	Abnormal  int `json:"abnormal"`
	Succeeded int `json:"succeeded"`
	Failed    int `json:"failed"`
	Updating  int `json:"updating"`
	Stopped   int `json:"stopped"`
}

type Data

type Data struct {
	Option Option `json:"option"`
}

type Legend

type Legend struct {
	Data []string `json:"data,omitempty"`
}

type Option

type Option struct {
	Tooltip Tooltip  `json:"tooltip,omitempty"`
	Color   []string `json:"color,omitempty"`
	Legend  Legend   `json:"legend,omitempty"`
	XAxis   Axis     `json:"xAxis,omitempty"`
	YAxis   Axis     `json:"yAxis,omitempty"`
	Series  []Series `json:"series,omitempty"`
}

type Series

type Series struct {
	Name     string `json:"name,omitempty"`
	Type     string `json:"type,omitempty"`
	BarGap   string `json:"barGap,omitempty"`
	BarWidth int    `json:"barWidth,omitempty"`
	Data     []*int `json:"data,omitempty"`
}

type State

type State struct {
	Values Values `json:"values,omitempty"`
}

type Tooltip

type Tooltip struct {
	Show bool `json:"show"`
}

type Values

type Values struct {
	DeploymentsCount Count `json:"deploymentsCount,omitempty"`
	DaemonSetCount   Count `json:"daemonSetCount,omitempty"`
	StatefulSetCount Count `json:"statefulSetCount,omitempty"`
	JobCount         Count `json:"jobCount,omitempty"`
	CronJobCount     Count `json:"cronJobCount,omitempty"`
}

Jump to

Keyboard shortcuts

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