Skip to content

Commit

Permalink
Merge branch 'main' into fxsrstatus
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana committed Jan 25, 2022
2 parents ca6b48c + d9e3046 commit 68ef06d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
1 change: 0 additions & 1 deletion cluster-commands.go
Expand Up @@ -743,7 +743,6 @@ func (adm *AdminClient) SiteReplicationEdit(ctx context.Context, site PeerInfo)
// SRPeerEdit - used only by minio server to update peer endpoint
// for a server already in the site replication setup
func (adm *AdminClient) SRPeerEdit(ctx context.Context, pi PeerInfo) error {

b, err := json.Marshal(pi)
if err != nil {
return err
Expand Down
13 changes: 10 additions & 3 deletions tier.go
Expand Up @@ -22,6 +22,7 @@ import (
"io/ioutil"
"net/http"
"path"
"time"
)

// tierAPI is API path prefix for tier related admin APIs
Expand Down Expand Up @@ -131,9 +132,15 @@ func (adm *AdminClient) EditTier(ctx context.Context, tierName string, creds Tie

// TierInfo contains tier name, type and statistics
type TierInfo struct {
Name string
Type string
Stats TierStats
Name string
Type string
Stats TierStats
DailyStats DailyTierStats
}

type DailyTierStats struct {
Bins [24]TierStats
UpdatedAt time.Time
}

// TierStats returns per-tier stats of all configured tiers (incl. internal
Expand Down

0 comments on commit 68ef06d

Please sign in to comment.