Documentation
¶
Index ¶
- type ArrayItem
- type Serializer
- func (s *Serializer) Serialize(metric string, timestamp int64, value float64, tags ...interface{}) (string, error)
- func (s *Serializer) SerializeArray(items ...*ArrayItem) (string, error)
- func (s *Serializer) SerializeGeneric(item interface{}) (string, error)
- func (s *Serializer) SerializeGenericArray(items ...interface{}) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Serializer ¶
type Serializer struct {
serializer.Serializer
// contains filtered or unexported fields
}
Serializer - the json serializer
func (*Serializer) Serialize ¶
func (s *Serializer) Serialize(metric string, timestamp int64, value float64, tags ...interface{}) (string, error)
Serialize - serializes an opentsdb data line
func (*Serializer) SerializeArray ¶
func (s *Serializer) SerializeArray(items ...*ArrayItem) (string, error)
SerializeArray - serializes an array of opentsdb data lines
func (*Serializer) SerializeGeneric ¶ added in v1.2.1
func (s *Serializer) SerializeGeneric(item interface{}) (string, error)
SerializeGeneric - serializes with the correct cast based on the struct ArrayItem
func (*Serializer) SerializeGenericArray ¶ added in v1.2.1
func (s *Serializer) SerializeGenericArray(items ...interface{}) (string, error)
SerializeGenericArray - serializes with the correct cast based on the struct ArrayItem
Click to show internal directories.
Click to hide internal directories.