logevent

package
v0.0.0-...-94e4715 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 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 BaseNote

type BaseNote struct {
	DomainId  string    `json:"domain_id"`
	Domain    string    `json:"domain"`
	ClusterId string    `json:"cluster_id"`
	Cluster   string    `json:"cluster"`
	CreatedAt time.Time `json:"created_at"`

	Distribution string `json:"distribution"`
}

func NewBaseNote

func NewBaseNote(domainId string, input api.ClusterResourceDetail) *BaseNote

type NamespaceResourceNote

type NamespaceResourceNote struct {
	*BaseNote
	Namespace       string            `json:"namespace"`
	NamespaceId     string            `json:"namespace_id"`
	NamespaceLabels map[string]string `json:"namespace_labels"`
}

func NewNamespaceResourceNote

func NewNamespaceResourceNote(domainId string, input api.NamespaceResourceDetail, nsLabels map[string]string) *NamespaceResourceNote

type PVCNote

type PVCNote struct {
	*NamespaceResourceNote
	CapacityMB   int    `json:"capacity_mb"`
	StorageClass string `json:"storage_class"`
}

func NewPVCNote

func NewPVCNote(domainId string, input api.PersistentVolumeClaimDetail, nsLabels map[string]string) *PVCNote

type PodNote

type PodNote struct {
	*NamespaceResourceNote
	Limits         *Resources `json:"limits"`
	Requests       *Resources `json:"requests"`
	CpuLimits      int        `json:"cpu_limits"`
	CpuRequests    int        `json:"cpu_requests"`
	MemoryLimits   int        `json:"memory_limits"`
	MemoryRequests int        `json:"memory_requests"`
	QOSClass       string     `json:"qosClass"`
	PodIP          string     `json:"pod_ip"`
	Status         string     `json:"status"`
}

func NewPodNote

func NewPodNote(domainId string,
	input api.PodDetailV2,
	nsLabels map[string]string,
	limits *Resources, requests *Resources) *PodNote

type Resources

type Resources struct {
	CPU    int64 `json:"cpu"`
	Memory int64 `json:"memory"`
}

Jump to

Keyboard shortcuts

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