Skip to content

Commit

Permalink
Merge pull request #8393 from influxdata/jw-shard-status2
Browse files Browse the repository at this point in the history
Expose shard meta info on Shard
  • Loading branch information
jwilder committed May 16, 2017
2 parents 51b60e2 + 9445ccb commit aa8ea43
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tsdb/shard.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,21 @@ func (s *Shard) SetEnabled(enabled bool) {
s.mu.Unlock()
}

// ID returns the shards ID.
func (s *Shard) ID() uint64 {
return s.id
}

// Database returns the database of the shard.
func (s *Shard) Database() string {
return s.database
}

// RetentionPolicy returns the retention policy of the shard.
func (s *Shard) RetentionPolicy() string {
return s.retentionPolicy
}

// ShardStatistics maintains statistics for a shard.
type ShardStatistics struct {
WriteReq int64
Expand Down

0 comments on commit aa8ea43

Please sign in to comment.