Documentation
¶
Index ¶
Constants ¶
View Source
const SchemaName = "history"
Variables ¶
This section is empty.
Functions ¶
func TransformDSN ¶ added in v0.20.0
TransformDSN sets the search_path of the given DSN to the history schema
Types ¶
type Config ¶
type Config struct {
// Retention of data in days, defaults to 7
Retention int `default:"7" hcl:"retention,optional"`
// TimeInterval defines how chunks are split by time defaults to one chunk per 24 hours.
TimeInterval int `default:"24" hcl:"interval,optional"`
// TimeTruncation truncates fetch time by hour, for example if we fetch with TimeTruncation = 1 at 11:25 the fetch date will truncate to 11:00
// defaults to 24 hours, which means one set of fetch data per day.
TimeTruncation int `default:"24" hcl:"truncation,optional"`
}
Click to show internal directories.
Click to hide internal directories.