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 ¶
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
}
Click to show internal directories.
Click to hide internal directories.