service

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultMaxPowerMaxConnections is the number of workers that can query PowerMax at a time
	DefaultMaxPowerMaxConnections = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PowerMaxService

type PowerMaxService struct {
	MetricsRecorder        types.MetricsRecorder
	MaxPowerMaxConnections int
	Logger                 *logrus.Logger
	PowerMaxClients        map[string][]types.PowerMaxArray
	VolumeFinder           types.VolumeFinder
	StorageClassFinder     types.StorageClassFinder
}

PowerMaxService contains configuration stuff and represents the service for getting metrics data for a PowerMax system

func (*PowerMaxService) ExportCapacityMetrics

func (s *PowerMaxService) ExportCapacityMetrics(ctx context.Context)

ExportCapacityMetrics collect capacity for array, storageclass, srp, storagegroup and volume, and export to Otel

func (*PowerMaxService) ExportPerformanceMetrics

func (s *PowerMaxService) ExportPerformanceMetrics(ctx context.Context)

ExportPerformanceMetrics collect performance and export to Otel

func (*PowerMaxService) GetLogger

func (s *PowerMaxService) GetLogger() *logrus.Logger

GetLogger return logger

func (*PowerMaxService) GetMaxPowerMaxConnections

func (s *PowerMaxService) GetMaxPowerMaxConnections() int

GetMaxPowerMaxConnections return MaxPowerMaxConnections

func (*PowerMaxService) GetMetricsRecorder

func (s *PowerMaxService) GetMetricsRecorder() types.MetricsRecorder

GetMetricsRecorder return MetricsRecorder

func (*PowerMaxService) GetPowerMaxClients

func (s *PowerMaxService) GetPowerMaxClients() map[string][]types.PowerMaxArray

GetPowerMaxClients return PowerMaxClients

func (*PowerMaxService) GetVolumeFinder

func (s *PowerMaxService) GetVolumeFinder() types.VolumeFinder

GetVolumeFinder return VolumeFinder

Directories

Path Synopsis
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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