cloud

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddInstance

func AddInstance(instanceName string)

func AddServerToSlb

func AddServerToSlb(serverId string, port int)

func DeleteInstance

func DeleteInstance(instanceId string, instanceName string)

func GetInstances

func GetInstances() []ecs.Instance

func GetSlbPacketRate

func GetSlbPacketRate() int

func GetVsgServerIdMap

func GetVsgServerIdMap() map[string]int

Types

type Datapoint

type Datapoint struct {
	Timestamp  int     `json:"timestamp"`
	UserId     string  `json:"userId"`
	InstanceId string  `json:"instanceId"`
	Vip        string  `json:"vip"`
	Maximum    float64 `json:"Maximum"`
	Minimum    float64 `json:"Minimum"`
	Average    float64 `json:"Average"`
	Sum        float64 `json:"Sum"`
}

type Dimension

type Dimension struct {
	InstanceId string `json:"instanceId"`
}

type Server

type Server struct {
	ServerId string `json:"ServerId"`
	Port     int    `json:"Port"`
	Weight   int    `json:"Weight"`
	Type     string `json:"Type"`
}

Jump to

Keyboard shortcuts

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