Documentation
¶
Overview ¶
Provides a set of structures for passing data around Kapacitor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BatchToRow ¶
func PointToRow ¶
func SortedFields ¶
func SortedKeys ¶
Types ¶
type Batch ¶
type Batch struct {
Name string `json:"name,omitempty"`
Group GroupID `json:"-"`
TMax time.Time `json:"-"`
Tags map[string]string `json:"tags,omitempty"`
Points []BatchPoint `json:"points,omitempty"`
}
func (Batch) PointDimensions ¶
func (Batch) PointFields ¶
func (Batch) PointGroup ¶
type BatchPoint ¶
type BatchPoint struct {
Time time.Time `json:"time"`
Fields Fields `json:"fields"`
Tags Tags `json:"tags"`
}
A point in batch, similar to Point but most information is found on the containing Batch.
Tags on a BatchPoint are a superset of the tags on the Batch All points in a batch should have the same tag and field keys.
func BatchPointFromPoint ¶
func BatchPointFromPoint(p Point) BatchPoint
type Point ¶
type Point struct {
Name string
Database string
RetentionPolicy string
Group GroupID
Dimensions []string
Tags Tags
Fields Fields
Time time.Time
}
Represents a single data point
func (Point) PointDimensions ¶
func (Point) PointFields ¶
func (Point) PointGroup ¶
Click to show internal directories.
Click to hide internal directories.