Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdaptHttpHandler ¶
func AdaptHttpHandler(h http.Handler) gin.HandlerFunc
func GetName ¶
func GetName(name string) gin.HandlerFunc
func P_list ¶
func P_list() gin.HandlerFunc
func Some_sec_info ¶
Types ¶
type ClbMetrics ¶
type ClbMetrics struct { ID string Port string Protocol string // TCP/tcp/HTTP/http MetricsName string MontiorNs string PrometheusMetrics prometheus.Gauge Client *monitor.Client MonitorGetRequest *monitor.GetMonitorDataRequest }
func NewClbMetrics ¶
func NewClbMetrics(id, port, protocol, cloudMonitorNs, cloudMonitorMetricsName string) *ClbMetrics
func (*ClbMetrics) GetMetricsVaule ¶
func (cm *ClbMetrics) GetMetricsVaule() (float64, error)
func (*ClbMetrics) SetMetricsValue ¶
func (cm *ClbMetrics) SetMetricsValue()
func (*ClbMetrics) SetMonitorClientAndRequest ¶
func (cm *ClbMetrics) SetMonitorClientAndRequest(id, key string) error
func (*ClbMetrics) WatchMetricsValue ¶
func (cm *ClbMetrics) WatchMetricsValue()
Click to show internal directories.
Click to hide internal directories.