slb

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: 14 Imported by: 2

Documentation

Index

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 DataPoint

type DataPoint struct {
	Timestamp int64   `json:"timestamp"`
	Vip       string  `json:"vip,omitempty"`
	Average   float64 `json:"Average"`
	Minimum   float64 `json:"Minimum"`
	Maximum   float64 `json:"Maximum"`
}

type Dimensions

type Dimensions struct {
	InstanceId string `json:"instanceId"`
	Port       string `json:"port"`
}

request.Dimensions

type SLBGlobalParams

type SLBGlobalParams struct {
	InstanceId string `json:"instanceId"`
	Port       string `json:"port"`
}

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
}

Jump to

Keyboard shortcuts

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