MCPcopy Create free account
hub / github.com/cortexproject/cortex / ToMilliseconds

Method ToMilliseconds

pkg/storage/tsdb/config.go:107–114  ·  view source on GitHub ↗

ToMilliseconds returns the duration list in milliseconds

()

Source from the content-addressed store, hash-verified

105
106// ToMilliseconds returns the duration list in milliseconds
107func (d *DurationList) ToMilliseconds() []int64 {
108 values := make([]int64, 0, len(*d))
109 for _, t := range *d {
110 values = append(values, t.Milliseconds())
111 }
112
113 return values
114}
115
116// RegisterFlags registers the block storage flags
117func (cfg *BlocksStorageConfig) RegisterFlags(f *flag.FlagSet) {

Calls

no outgoing calls