Documentation ¶
Index ¶
- type BulkType
- type Collector
- func (collect *Collector) AddMetadata(collection string, m *metadata.Metadata) gobol.Error
- func (collect *Collector) CheckMetadata(index, tsType, id string, idByte []byte) (bool, gobol.Error)
- func (collect *Collector) GenerateID(rcvMsg *structs.TSDBpoint) (string, []byte, error)
- func (collect *Collector) HandleJSONBytes(data []byte, sourceType *constants.SourceType, ip 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 *constants.SourceType)
- func (collect *Collector) HandleText(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (collector *Collector) HandleUDPpacket(buf []byte, addr string)
- func (collect *Collector) InsertPoint(ksid, tsid string, timestamp int64, value float64) gobol.Error
- func (collect *Collector) InsertText(ksid, tsid string, timestamp int64, text string) gobol.Error
- func (collect *Collector) MakePacket(rcvMsg *structs.TSDBpoint, number bool) (*Point, gobol.Error)
- func (collect *Collector) ParsePoint(function string, isNumber bool, data []byte) (*structs.TSDBpoint, string, gobol.Error)
- func (collect *Collector) ParsePointArray(function string, isNumber bool, data []byte, outPoints *structs.TSDBpoints, ...) (keyset string)
- func (collect *Collector) ParsePoints(function string, isNumber bool, data []byte, outPoints *structs.TSDBpoints, ...) string
- 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 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( tm *tlmanager.TimelineManager, cass *gocql.Session, metaStorage *metadata.Storage, set *structs.Settings, keyspaceTTLMap map[int]string, validation *validation.Service, ) (*Collector, error)
New - creates a new Collector
func (*Collector) AddMetadata ¶
AddMetadata - adds a new document metadata
func (*Collector) CheckMetadata ¶
func (collect *Collector) CheckMetadata(index, tsType, id string, idByte []byte) (bool, gobol.Error)
CheckMetadata - checks for the metadata existence
func (*Collector) GenerateID ¶
GenerateID - generates the unique ID from a point
func (*Collector) HandleJSONBytes ¶
func (collect *Collector) HandleJSONBytes(data []byte, sourceType *constants.SourceType, ip 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 ¶
func (collect *Collector) HandlePacket(vp *Point, source *constants.SourceType)
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) InsertPoint ¶
func (*Collector) InsertText ¶
func (*Collector) MakePacket ¶
MakePacket - validates a point and fills the packet
func (*Collector) ParsePoint ¶
func (collect *Collector) ParsePoint(function string, isNumber bool, data []byte) (*structs.TSDBpoint, string, gobol.Error)
ParsePoint - parses the json bytes to the object fields (seconds return is the keyset)
func (*Collector) ParsePointArray ¶
func (collect *Collector) ParsePointArray(function string, isNumber bool, data []byte, outPoints *structs.TSDBpoints, outErrs *[]gobol.Error) (keyset string)
ParsePointArray - parses an array of points
type EsTagValue ¶
type EsTagValue struct {
Value string `json:"value"`
}
type RestErrorUser ¶
type RestErrors ¶
type RestErrors struct { Errors []RestErrorUser `json:"errors"` Failed int `json:"failed"` Success int `json:"success"` }