Documentation ¶
Index ¶
- Constants
- func WithBufferSize(size uint32) influxDBV1HandlerOption
- func WithDatabase(db string) influxDBV1HandlerOption
- func WithHTTPClient(url, username, password string) influxDBV1HandlerOption
- func WithMeasurementReport(n string) influxDBV1HandlerOption
- func WithMeasurementResult(n string) influxDBV1HandlerOption
- func WithUDPClient(url string, size int) influxDBV1HandlerOption
- type InfluxDBV1Handler
Constants ¶
View Source
const ( // DefaultInfluxDatabase influxdb database name DefaultInfluxDatabase = "ultron" // DefaultMeasurementResult the measurement to store successful request DefaultMeasurementResult = "result" // DefaultMeasurementReport the measurement to store report DefaultMeasurementReport = "report" )
Variables ¶
This section is empty.
Functions ¶
func WithBufferSize ¶
func WithBufferSize(size uint32) influxDBV1HandlerOption
func WithDatabase ¶
func WithDatabase(db string) influxDBV1HandlerOption
func WithHTTPClient ¶
func WithHTTPClient(url, username, password string) influxDBV1HandlerOption
func WithMeasurementReport ¶
func WithMeasurementReport(n string) influxDBV1HandlerOption
func WithMeasurementResult ¶
func WithMeasurementResult(n string) influxDBV1HandlerOption
func WithUDPClient ¶
Types ¶
type InfluxDBV1Handler ¶
type InfluxDBV1Handler struct {
// contains filtered or unexported fields
}
func NewInfluxDBV1Handler ¶
func NewInfluxDBV1Handler() *InfluxDBV1Handler
NewInfluxDBV1Handler 实例化NewInfluxDBHelper对象
func (*InfluxDBV1Handler) Apply ¶
func (hdl *InfluxDBV1Handler) Apply(opts ...influxDBV1HandlerOption)
func (*InfluxDBV1Handler) HandleReport ¶
func (hdl *InfluxDBV1Handler) HandleReport() ultron.ReportHandleFunc
func (*InfluxDBV1Handler) HandleResult ¶
func (hdl *InfluxDBV1Handler) HandleResult(samplingRate float64) ultron.ResultHandleFunc
HandleResult samplingRate表示采样率
Click to show internal directories.
Click to hide internal directories.