canaryconfigmgr

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureFeatures added in v1.18.0

func ConfigureFeatures(ctx context.Context, logger *zap.Logger, unitTestMode bool, fissionClient versioned.Interface,
	kubeClient kubernetes.Interface, mgr manager.Interface) error

ConfigureFeatures gets the feature config and configures the features that are enabled

func MakeCanaryConfigMgr

func MakeCanaryConfigMgr(ctx context.Context, logger *zap.Logger, fissionClient versioned.Interface, kubeClient kubernetes.Interface, prometheusSvc string) (*canaryConfigMgr, error)

func StartCanaryServer added in v1.18.0

func StartCanaryServer(ctx context.Context, clientGen crd.ClientGeneratorInterface, logger *zap.Logger, mgr manager.Interface, unitTestFlag bool) error

Types

type CanaryProcessingInfo

type CanaryProcessingInfo struct {
	CancelFunc *context.CancelFunc
	Ticker     *time.Ticker
}

type PrometheusApiClient

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

func MakePrometheusClient

func MakePrometheusClient(logger *zap.Logger, prometheusSvc string) (*PrometheusApiClient, error)

func (*PrometheusApiClient) GetFunctionFailurePercentage

func (promApiClient *PrometheusApiClient) GetFunctionFailurePercentage(ctx context.Context, path string, methods []string, funcName, funcNs string, window string) (float64, error)

func (*PrometheusApiClient) GetRequestsToFuncInWindow

func (promApiClient *PrometheusApiClient) GetRequestsToFuncInWindow(ctx context.Context, path string, method string, funcName string, funcNs string, window string) (float64, error)

func (*PrometheusApiClient) GetTotalFailedRequestsToFuncInWindow

func (promApiClient *PrometheusApiClient) GetTotalFailedRequestsToFuncInWindow(ctx context.Context, funcName string, funcNs string, path string, method string, window string) (float64, error)

Jump to

Keyboard shortcuts

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