Documentation ¶
Index ¶
- Constants
- func DisposeMetricMonitorInfo(metric, endpoint, tags, fileds []string, timestamp int64)
- func DisposeMonitorInfo(endpoint, tags, fileds []string, timestamp int64)
- func SetDefaultMetric(metric string)
- func SetDefaultReportApi(url string)
- type AlarmHeader
- type AlarmInfos
- type ReportHeader
- type ReportInfo
Constants ¶
View Source
const ( COUNTER_TYPE = "GAUGE" HOSTNAME_FILE = "/allconf/hostname.conf" )
[{"counterType": "GAUGE","step": 60,"value":0,"metric": "gslb_center_data","endpoint": "hostname", "tags":"user=ping", "fields":"size=","timestamp":1473327905}]
Variables ¶
This section is empty.
Functions ¶
func DisposeMonitorInfo ¶
func SetDefaultMetric ¶
func SetDefaultMetric(metric string)
func SetDefaultReportApi ¶
func SetDefaultReportApi(url string)
Types ¶
type AlarmHeader ¶
type AlarmInfos ¶
type AlarmInfos []*AlarmHeader
type ReportHeader ¶
type ReportInfo ¶
type ReportInfo struct {
Data []*ReportHeader `json:"data"`
}
func DecodeReport ¶
func DecodeReport(data []byte) (*ReportInfo, error)
Click to show internal directories.
Click to hide internal directories.