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 ¶
func (n NoopHeartbeatReporter) ReportHeartbeat(context.Context, ReportHeartbeat) error
type ReportHeartbeat ¶ added in v1.13.0
type ReportHeartbeat struct {
NodeCount int `json:"nodeCount"`
}
Click to show internal directories.
Click to hide internal directories.