common

package
v0.0.0-...-eef5595 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectMeteringData

func CollectMeteringData() (mapSumNetworkIn map[string]uint64)

func LoopPushMeteringData

func LoopPushMeteringData()

func PostAliyun

func PostAliyun(meteringValue string)

func PushMeteringData

func PushMeteringData(mapSumNetworkIn map[string]uint64)

func Send2RMQS

func Send2RMQS(body []byte)

Types

type Entities

type Entities struct {
	Key   string `json:"Key"` //NetworkIn
	Value string `json:"Value"`
}

type Metering

type Metering struct {
	InstanceId string     `json:"InstanceId"` //云市场实例ID
	StartTime  int64      `json:"StartTime"`  //计量开始时间,单位秒(格式为unix时间戳)
	EndTime    int64      `json:"EndTime"`    //计量结束时间,单位秒(格式为unix时间戳)
	Entities   []Entities `json:"Entities"`   //计量实体对象

}

Jump to

Keyboard shortcuts

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