blocks

package
v0.0.0-...-f8418de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blocks

type Blocks []LightMeta

Blocks an array of metadata

func (*Blocks) DropOverlappingBlocks

func (blk *Blocks) DropOverlappingBlocks()

DropOverlappingBlocks drops overlapping blocks while keeping the ones with a higher resolution

func (Blocks) Len

func (blk Blocks) Len() int

func (Blocks) Less

func (blk Blocks) Less(i, j int) bool

func (Blocks) Swap

func (blk Blocks) Swap(i, j int)

type LightMeta

type LightMeta struct {
	ULID       ulid.ULID
	MinTime    int64
	MaxTime    int64
	Resolution int64
	NumSamples uint64
}

LightMeta a simplified version of metadata.Meta that contains only the required attributes

func NewLightMeta

func NewLightMeta(m metadata.Meta) LightMeta

NewLightMeta returns a LightMeta from a Thanos metadata struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL