heartbeat

package
v1.13.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentHeartbeatHealthInput added in v1.13.0

type DeploymentHeartbeatHealthInput struct {
	Botkube   health.BotStatus                         `json:"botkube"`
	Plugins   []DeploymentHeartbeatHealthPluginInput   `json:"plugins,omitempty"`
	Platforms []DeploymentHeartbeatHealthPlatformInput `json:"platforms,omitempty"`
}

type DeploymentHeartbeatHealthPlatformInput added in v1.13.0

type DeploymentHeartbeatHealthPlatformInput struct {
	Key   string                `json:"key"`
	Value health.PlatformStatus `json:"value"`
}

type DeploymentHeartbeatHealthPluginInput added in v1.13.0

type DeploymentHeartbeatHealthPluginInput struct {
	Key   string              `json:"key"`
	Value health.PluginStatus `json:"value"`
}

type DeploymentHeartbeatInput

type DeploymentHeartbeatInput struct {
	NodeCount int                             `json:"nodeCount"`
	Health    *DeploymentHeartbeatHealthInput `json:"health,omitempty"`
}

type GraphQLClient

type GraphQLClient interface {
	Client() *graphql.Client
	DeploymentID() string
}

GraphQLClient defines GraphQL client.

type GraphQLHeartbeatReporter

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

GraphQLHeartbeatReporter reports heartbeat to GraphQL server.

func (*GraphQLHeartbeatReporter) ReportHeartbeat

func (r *GraphQLHeartbeatReporter) ReportHeartbeat(ctx context.Context, heartbeat ReportHeartbeat) error

type HeartbeatReporter

type HeartbeatReporter interface {
	ReportHeartbeat(ctx context.Context, heartBeat ReportHeartbeat) error
}

func GetReporter

func GetReporter(logger logrus.FieldLogger, gql GraphQLClient, healthChecker health.Checker) HeartbeatReporter

type NoopHeartbeatReporter

type NoopHeartbeatReporter struct{}

func (NoopHeartbeatReporter) ReportHeartbeat

type ReportHeartbeat added in v1.13.0

type ReportHeartbeat struct {
	NodeCount int `json:"nodeCount"`
}

Jump to

Keyboard shortcuts

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