open_falcon

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	CounterTypeGauge string = "GAUGE"
	Success          string = "success"
)

Variables

This section is empty.

Functions

func NewSender

func NewSender(c conf.MapConf) (sender.Sender, error)

Types

type RespData

type RespData struct {
	Message string `json:"message"`
	Total   int    `json:"total"`
	Invalid int    `json:"invalid"`
	Latency int    `json:"latency"`
}

type TransferData

type TransferData struct {
	Metric      string  `json:"metric"`
	EndPoint    string  `json:"endpoint"`
	Tags        string  `json:"tags"`
	Value       float64 `json:"value"`
	Step        int     `json:"step"`        // 采集频率,秒
	CounterType string  `json:"counterType"` // 默认使用 GAUGE,原值
	TimeStamp   int64   `json:"timestamp"`   // 秒
}

type TransferResponse

type TransferResponse struct {
	Msg  string   `json:"msg"`
	Data RespData `json:"data"`
}

type TransferSender

type TransferSender struct {
	// contains filtered or unexported fields
}

func (*TransferSender) Close

func (ts *TransferSender) Close() (err error)

func (*TransferSender) Name

func (ts *TransferSender) Name() string

func (*TransferSender) Send

func (ts *TransferSender) Send(datas []Data) error

Jump to

Keyboard shortcuts

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