Make MetricsForE2E public

pull/6/head
gmarek 2016-01-12 13:23:47 +01:00
parent 5b43a12775
commit e704e6c0bc
2 changed files with 4 additions and 4 deletions

View File

@ -157,7 +157,7 @@ func (f *Framework) afterEach() {
if err != nil {
Logf("MetricsGrabber failed grab metrics. Skipping metrics gathering.")
} else {
summaries = append(summaries, (*metricsForE2E)(&received))
summaries = append(summaries, (*MetricsForE2E)(&received))
}
}
}

View File

@ -47,9 +47,9 @@ const (
apiCallLatencyLargeThreshold time.Duration = 1 * time.Second
)
type metricsForE2E metrics.MetricsCollection
type MetricsForE2E metrics.MetricsCollection
func (m *metricsForE2E) PrintHumanReadable() string {
func (m *MetricsForE2E) PrintHumanReadable() string {
buf := bytes.Buffer{}
for _, interestingMetric := range InterestingApiServerMetrics {
buf.WriteString(fmt.Sprintf("For %v:\n", interestingMetric))
@ -69,7 +69,7 @@ func (m *metricsForE2E) PrintHumanReadable() string {
return buf.String()
}
func (m *metricsForE2E) PrintJSON() string {
func (m *MetricsForE2E) PrintJSON() string {
return prettyPrintJSON(*m)
}