Documentation ¶
Index ¶
- Constants
- func GetCompatibleBlockDuration(maxBlockDuration int64) int64
- func MoveBlocks(sourceDir string, destDir string) error
- func NewTempDirectory(dir string, extension string) (string, error)
- type AppendManager
- type Appender
- type Database
- type Querier
- type QueryManager
- type RecordingRuleSampleIterator
Constants ¶
View Source
const ( DefaultBlockDuration = tsdb.DefaultBlockDuration DefaultRetention = int64(90 * 24 * time.Hour / time.Millisecond) )
Variables ¶
This section is empty.
Functions ¶
func MoveBlocks ¶
Types ¶
type AppendManager ¶
type Database ¶
type Database interface { AppendManager() (AppendManager, error) QueryManager() (QueryManager, error) GetBlockDuration() int64 Compact() error Close() error }
type Querier ¶
type Querier interface {
QueryRangeRule(ctx context.Context, recordingRule *config.RecordingRule, start int64, end int64, step int64) (RecordingRuleSampleIterator, error)
}
type QueryManager ¶
Click to show internal directories.
Click to hide internal directories.