Documentation ¶
Index ¶
- Constants
- type DataPoint
- type Dimensions
- type SLBGlobalParams
- type SLBMetricSource
- func (sb *SLBMetricSource) Client() (client *cms.Client, err error)
- func (sb *SLBMetricSource) GetExternalMetric(info p.ExternalMetricInfo, namespace string, requirements labels.Requirements) (values []external_metrics.ExternalMetricValue, err error)
- func (sb *SLBMetricSource) GetExternalMetricInfoList() []p.ExternalMetricInfo
- type SLBParams
Constants ¶
View Source
const ( SLB_L4_TRAFFIC_RX = "slb_l4_traffic_rx" SLB_L4_TRAFFIC_TX = "slb_l4_traffic_tx" SLB_L4_PACKET_TX = "slb_l4_packet_tx" SLB_L4_PACKET_RX = "slb_l4_packet_rx" SLB_L4_ACTIVE_CONNECTION = "slb_l4_active_connection" SLB_L4_MAX_CONNECTION = "slb_l4_max_connection" SLB_L4_CONNECTION_UTILIZATION = "slb_l4_connection_utilization" SLB_L7_QPS = "slb_l7_qps" SLB_L7_RT = "slb_l7_rt" SLB_L7_STATUS_2XX = "slb_l7_status_2xx" SLB_L7_STATUS_3XX = "slb_l7_status_3xx" SLB_L7_STATUS_4XX = "slb_l7_status_4xx" SLB_L7_STATUS_5XX = "slb_l7_status_5xx" SLB_L7_UPSTREAM_4XX = "slb_l7_upstream_4xx" SLB_L7_UPSTREAM_5XX = "slb_l7_upstream_5xx" SLB_L7_UPSTREAM_RT = "slb_l7_upstream_rt" //Global Params SLB_INSTANCE_ID = "slb.instance.id" SLB_PORT = "slb.instance.port" SLB_PERIOD = "slb.period" MIN_PERIOD = 60 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dimensions ¶
request.Dimensions
type SLBGlobalParams ¶
Global params
type SLBMetricSource ¶
type SLBMetricSource struct{}
func NewSLBMetricSource ¶
func NewSLBMetricSource() *SLBMetricSource
func (*SLBMetricSource) Client ¶
func (sb *SLBMetricSource) Client() (client *cms.Client, err error)
the client of slb
func (*SLBMetricSource) GetExternalMetric ¶
func (sb *SLBMetricSource) GetExternalMetric(info p.ExternalMetricInfo, namespace string, requirements labels.Requirements) (values []external_metrics.ExternalMetricValue, err error)
according to the incoming label, get the metric..
func (*SLBMetricSource) GetExternalMetricInfoList ¶
func (sb *SLBMetricSource) GetExternalMetricInfoList() []p.ExternalMetricInfo
list all external metric
type SLBParams ¶
type SLBParams struct { SLBGlobalParams Period int }
Click to show internal directories.
Click to hide internal directories.