Documentation ¶
Index ¶
- Constants
- Variables
- func Scheme(ctx context.Context) meta.Scheme
- type AlertingNode
- func (s *AlertingNode) AddConfigListener(p ConfigPropagator)
- func (s *AlertingNode) Conditions() health.ConditionTracker
- func (s *AlertingNode) GetHealth(_ context.Context, _ *emptypb.Empty) (*corev1.Health, error)
- func (s *AlertingNode) SetClients(healthListenerClient controlv1.HealthListenerClient, ...)
- func (s *AlertingNode) SyncNow(_ context.Context, req *capabilityv1.Filter) (*emptypb.Empty, error)
- type ConfigPropagator
- type Plugin
- type RuleStreamer
Constants ¶
View Source
const (
CondRuleSync = "Rule Sync"
)
Variables ¶
View Source
var RuleSyncInterval = time.Minute * 2
Functions ¶
Types ¶
type AlertingNode ¶
type AlertingNode struct { capabilityv1.UnsafeNodeServer controlv1.UnsafeHealthServer // contains filtered or unexported fields }
func NewAlertingNode ¶
func NewAlertingNode( ctx context.Context, lg *slog.Logger, ct health.ConditionTracker, ) *AlertingNode
func (*AlertingNode) AddConfigListener ¶
func (s *AlertingNode) AddConfigListener(p ConfigPropagator)
func (*AlertingNode) Conditions ¶
func (s *AlertingNode) Conditions() health.ConditionTracker
func (*AlertingNode) SetClients ¶
func (s *AlertingNode) SetClients( healthListenerClient controlv1.HealthListenerClient, nodeSyncClient node.NodeAlertingCapabilityClient, identityClient controlv1.IdentityClient, )
func (*AlertingNode) SyncNow ¶
func (s *AlertingNode) SyncNow(_ context.Context, req *capabilityv1.Filter) (*emptypb.Empty, error)
type ConfigPropagator ¶
type ConfigPropagator interface {
ConfigureNode(nodeId string, config *node.AlertingCapabilityConfig) error
}
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) StreamServers ¶
func (*Plugin) UseStreamClient ¶
func (p *Plugin) UseStreamClient(cc grpc.ClientConnInterface)
type RuleStreamer ¶
type RuleStreamer struct {
// contains filtered or unexported fields
}
func NewRuleStreamer ¶
func NewRuleStreamer( ctx context.Context, lg *slog.Logger, ct healthpkg.ConditionTracker, nodeDriver drivers.NodeDriver, ) *RuleStreamer
func (*RuleStreamer) ConfigureNode ¶
func (r *RuleStreamer) ConfigureNode(nodeId string, cfg *node.AlertingCapabilityConfig) error
func (*RuleStreamer) SetClients ¶ added in v0.12.0
func (r *RuleStreamer) SetClients( ruleClient rules.RuleSyncClient, )
Click to show internal directories.
Click to hide internal directories.