ahas

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AHAS_SENTINEL_TOTAL_QPS = "ahas_sentinel_total_qps"
	AHAS_SENTINEL_PASS_QPS  = "ahas_sentinel_pass_qps"
	AHAS_SENTINEL_BLOCK_QPS = "ahas_sentinel_block_qps"
	AHAS_SENTINEL_AVG_RT    = "ahas_sentinel_avg_rt"

	AHAS_SENTINEL_APP_NAME       = "ahas.sentinel.app"
	AHAS_SENTINEL_NAMESPACE      = "ahas.sentinel.namespace"
	AHAS_SENTINEL_QUERY_INTERVAL = "ahas.sentinel.interval"

	DEFAULT_QUERY_INTERVAL = 10
)
View Source
const AHAS_APP_NAME_ANNOTATION_KEY = "ahasAppName"
View Source
const AHAS_NAMESPACE_ANNOTATION_KEY = "ahasNamespace"
View Source
const K8S_NAMESPACE_PATH = "/var/run/secrets/kubernetes.io/serviceaccount/namespace"

Variables

This section is empty.

Functions

This section is empty.

Types

type AHASSentinelGlobalParams

type AHASSentinelGlobalParams struct {
	AppName       string
	AhasNamespace string
	Interval      int
}

Global params

type AHASSentinelMetricSource

type AHASSentinelMetricSource struct{}

func NewAHASSentinelMetricSource

func NewAHASSentinelMetricSource() *AHASSentinelMetricSource

func (*AHASSentinelMetricSource) GetExternalMetric

func (s *AHASSentinelMetricSource) GetExternalMetric(info provider.ExternalMetricInfo, namespace string, requirements labels.Requirements) (values []external_metrics.ExternalMetricValue, err error)

func (*AHASSentinelMetricSource) GetExternalMetricInfoList

func (s *AHASSentinelMetricSource) GetExternalMetricInfoList() []provider.ExternalMetricInfo

type AHASSentinelParams

type AHASSentinelParams struct {
	AHASSentinelGlobalParams
}

type SentinelPilotMetadata

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

Jump to

Keyboard shortcuts

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