canaryconfigmgr

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCanaryConfigMgr

func MakeCanaryConfigMgr(logger *zap.Logger, fissionClient *crd.FissionClient, kubeClient *kubernetes.Clientset, crdClient rest.Interface, prometheusSvc string) (*canaryConfigMgr, 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(path, method, funcName, funcNs string, window string) (float64, error)

func (*PrometheusApiClient) GetRequestsToFuncInWindow

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

func (*PrometheusApiClient) GetTotalFailedRequestsToFuncInWindow

func (promApiClient *PrometheusApiClient) GetTotalFailedRequestsToFuncInWindow(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