monitorcontroller

package
v0.0.0-...-8f7bd20 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MonitorController

type MonitorController struct {
	sync.Mutex
	// contains filtered or unexported fields
}

MonitorController instance.

func New

func New(
	config *config.Config, monitoringSender MonitoringSender,
) (monitor *MonitorController, err error)

New creates new monitor controller instance.

func (*MonitorController) Close

func (monitor *MonitorController) Close()

Close closes monitor controller instance.

func (*MonitorController) CloudConnected

func (monitor *MonitorController) CloudConnected()

CloudConnected indicates unit connected to cloud.

func (*MonitorController) CloudDisconnected

func (monitor *MonitorController) CloudDisconnected()

CloudDisconnected indicates unit disconnected from cloud.

func (*MonitorController) SendNodeMonitoring

func (monitor *MonitorController) SendNodeMonitoring(nodeMonitoring aostypes.NodeMonitoring)

SendNodeMonitoring sends monitoring data.

type MonitoringSender

type MonitoringSender interface {
	SubscribeForConnectionEvents(consumer amqphandler.ConnectionEventsConsumer) error
	UnsubscribeFromConnectionEvents(consumer amqphandler.ConnectionEventsConsumer) error
	SendMonitoringData(monitoringData cloudprotocol.Monitoring) error
}

MonitoringSender sends monitoring data.

Jump to

Keyboard shortcuts

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