Documentation ¶
Index ¶
Constants ¶
View Source
const (
DatetimeFormat = `2006-01-02 15:04:05`
)
Variables ¶
View Source
var DataCache []*Member
View Source
var DataCacheFile = `cache.data`
View Source
var DataStore []*MemberStore
View Source
var LocalIp string
View Source
var LocalPort string
View Source
var MonitorUrl string
View Source
var TokenCache = make(map[string]string)
View Source
var TokenCacheFile = `token.data`
Functions ¶
func CleanTimeoutData ¶
func CleanTimeoutData(timeout int64)
func InitMonitorUrl ¶
func InitMonitorUrl(url, port string)
func LoadCacheData ¶
func LoadCacheData(dataDir string)
func SaveCacheData ¶
func SaveCacheData()
Types ¶
type MemberStore ¶
type RequestMetricData ¶
type RequestMetricData struct { SubSystemId int `json:"subSystemId" form:"subSystemId" binding:"required"` InterfaceName string `json:"interfaceName" form:"interfaceName" binding:"required"` AttrName string `json:"attrName" form:"attrName" binding:"required"` CollectTimestamp int64 `json:"collectTimestamp" form:"collectTimestamp"` MetricValue float64 `json:"metricValue" form:"metricValue" binding:"required"` HostIp string `json:"hostIp" form:"hostIp" binding:"required"` }
type TransGatewayRequestDto ¶
type TransRequest ¶
type TransRequest struct { UserAuthKey string `json:"userAuthKey" form:"userAuthKey" binding:"required"` MetricDataList []*RequestMetricData `json:"metricDataList"` }
type TransResult ¶
Click to show internal directories.
Click to hide internal directories.