MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / replace

Method replace

pkg/outputs/elasticsearch/index.go:88–95  ·  view source on GitHub ↗
(timestamp time.Time)

Source from the content-addressed store, hash-verified

86}
87
88func (i index) replace(timestamp time.Time) string {
89 return strings.NewReplacer(
90 "%Y", timestamp.UTC().Format("2006"),
91 "%y", timestamp.UTC().Format("06"),
92 "%m", timestamp.UTC().Format("01"),
93 "%d", timestamp.UTC().Format("02"),
94 "%H", timestamp.UTC().Format("15")).Replace(i.config.IndexName)
95}

Callers 1

getNameMethod · 0.95

Calls 1

FormatMethod · 0.45

Tested by

no test coverage detected