types

package
v0.0.0-...-31b6b03 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscordSink

type DiscordSink struct {
	KippySink
}

func (*DiscordSink) Send

func (sink *DiscordSink) Send(messages []KippyMessage) error

type EmailSink

type EmailSink struct {
	KippySink
}

func (*EmailSink) Send

func (sink *EmailSink) Send(messages []KippyMessage) error

type KippyContainerMetrics

type KippyContainerMetrics struct {
	Name   string `json:"name,omitempty"`
	CPU    string `json:"cpu,omitempty"`
	Memory string `json:"memory,omitempty"`
	Token  string `json:"token,omitempty"`
}

type KippyEvent

type KippyEvent struct {
	*v1.Event
}

type KippyHeartbeat

type KippyHeartbeat struct {
	Events      []*v1.Event
	PodMetrics  []*v1beta1.PodMetrics
	NodeMetrics []*v1beta1.NodeMetrics
	Hash        string    `json:"hash,omitempty"`
	Timestamp   time.Time `json:"timestamp,omitempty"`
}

type KippyMessage

type KippyMessage struct {
	Kind      string    `json:"kind,omitempty"`
	Namespace string    `json:"namespace,omitempty"`
	Name      string    `json:"name,omitempty"`
	Message   string    `json:"message,omitempty"`
	Timestamp time.Time `json:"timestamp,omitempty"`
}

type KippyNodeMetrics

type KippyNodeMetrics struct {
	Name             string    `json:"name,omitempty"`
	CPU              string    `json:"cpu,omitempty"`
	Memory           string    `json:"memory,omitempty"`
	Storage          string    `json:"storage,omitempty"`
	StorageEphemeral string    `json:"storageEphemeral,omitempty"`
	Timestamp        time.Time `json:"timestamp,omitempty"`
}

type KippyPodMetrics

type KippyPodMetrics struct {
	Name       string                  `json:"name,omitempty"`
	Namespace  string                  `json:"namespace,omitempty"`
	Containers []KippyContainerMetrics `json:"containers,omitempty"`
	Timestamp  time.Time               `json:"timestamp,omitempty"`
}

type KippySink

type KippySink struct {
	Type   string
	Config string
}

type KippySinkInterface

type KippySinkInterface interface {
	Send(string) error
	Payload() string
}

type SlackSink

type SlackSink struct {
	KippySink
}

func (*SlackSink) Send

func (sink *SlackSink) Send(messages []KippyMessage) error

type WebhookSink

type WebhookSink struct {
	KippySink
}

func (*WebhookSink) Send

func (sink *WebhookSink) Send(messages []KippyMessage) error

Jump to

Keyboard shortcuts

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