Documentation ¶
Index ¶
- type BulkType
- type Collector
- func (collect *Collector) GenerateID(rcvMsg *TSDBpoint) (string, error)
- func (collect *Collector) HandleJSONBytes(data []byte, source string, isNumber bool) (int, gobol.Error)
- func (collect *Collector) HandleNumber(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (collect *Collector) HandlePacket(vp *Point, source string)
- func (collect *Collector) HandleText(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (collector *Collector) HandleUDPpacket(buf []byte, addr string)
- func (collector *Collector) MakePacket(rcvMsg *TSDBpoint, number bool) (*Point, gobol.Error)
- func (collect *Collector) Stop()
- type EsIndex
- type EsMetric
- type EsTagKey
- type EsTagValue
- type LogMeta
- type MetaInfo
- type Point
- type RestError
- type RestErrorUser
- type RestErrors
- type StructV2Error
- type TSDBpoint
- type TSDBpoints
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector - implements a point collector structure
func New ¶
func New( log *structs.Loggers, sts *tsstats.StatsTS, cass *gocql.Session, metaStorage *metadata.Storage, set *structs.Settings, keyspaceTTLMap map[int]string, ks *keyset.KeySet, ) (*Collector, error)
New - creates a new Collector
func (*Collector) GenerateID ¶
GenerateID - generates the unique ID from a point
func (*Collector) HandleJSONBytes ¶
func (collect *Collector) HandleJSONBytes(data []byte, source string, isNumber bool) (int, gobol.Error)
HandleJSONBytes - handles a point in byte format
func (*Collector) HandleNumber ¶
func (collect *Collector) HandleNumber(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
HandleNumber - handles the point in number format
func (*Collector) HandlePacket ¶
HandlePacket - handles a point in struct format
func (*Collector) HandleText ¶
func (collect *Collector) HandleText(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
HandleText - handles the point in text format
func (*Collector) HandleUDPpacket ¶
HandleUDPpacket - handles the UDP packet received from the collector
func (*Collector) MakePacket ¶
MakePacket - validates a point and fills the packet
type EsTagValue ¶
type EsTagValue struct {
Value string `json:"value"`
}
type RestErrorUser ¶
type RestErrorUser struct { Datapoint TSDBpoint `json:"datapoint"` Error interface{} `json:"error"` }
type RestErrors ¶
type RestErrors struct { Errors []RestErrorUser `json:"errors"` Failed int `json:"failed"` Success int `json:"success"` }
type StructV2Error ¶
type TSDBpoint ¶
type TSDBpoint struct { Metric string `json:"metric,omitempty"` Timestamp int64 `json:"timestamp,omitempty"` Value *float64 `json:"value,omitempty"` Text string `json:"text,omitempty"` Tags map[string]string `json:"tags,omitempty"` }
TSDBpoint - an opentsdb point
type TSDBpoints ¶
type TSDBpoints []*TSDBpoint
TSDBpoints - an array of point
func ParsePoints ¶
ParsePoints - parses an array of points
func (TSDBpoints) Validate ¶
func (p TSDBpoints) Validate() gobol.Error
Validate - validates the array of points
Click to show internal directories.
Click to hide internal directories.