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: 2

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