Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit e3c1aed

Browse files
committed
kick circle
1 parent 28cfeeb commit e3c1aed

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

mdata/cwr.go

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"gopkg.in/raintank/schema.v1"
88
)
99

10+
// ChunkWriteRequest is a request to write a chunk into a store
1011
type ChunkWriteRequest struct {
1112
Metric *AggMetric
1213
Key schema.AMKey
@@ -16,6 +17,7 @@ type ChunkWriteRequest struct {
1617
Span uint32
1718
}
1819

20+
// NewChunkWriteRequest creates a new ChunkWriteRequest
1921
func NewChunkWriteRequest(metric *AggMetric, key schema.AMKey, chunk *chunk.Chunk, ttl, span uint32, ts time.Time) ChunkWriteRequest {
2022
return ChunkWriteRequest{metric, key, chunk, ttl, ts, span}
2123
}

stacktest/fakemetrics/out/out.go

+3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ import (
77
"gopkg.in/raintank/schema.v1"
88
)
99

10+
// Out submits metricdata to a destination
1011
type Out interface {
1112
Close() error
1213
Flush(metrics []*schema.MetricData) error
1314
}
1415

16+
// OutStats tracks metrics related to an Output
1517
type OutStats struct {
1618
FlushDuration met.Timer // duration of Flush()
1719
PublishQueued met.Gauge // not every output uses this
@@ -23,6 +25,7 @@ type OutStats struct {
2325
MessageMetrics met.Meter // number of metrics per message
2426
}
2527

28+
// NewStats creates a new OutStats
2629
func NewStats(stats met.Backend, output string) OutStats {
2730
return OutStats{
2831
FlushDuration: stats.NewTimer(fmt.Sprintf("metricpublisher.out.%s.flush_duration", output), 0),

0 commit comments

Comments
 (0)