Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetLastDayTierStats (0.24 sec)

  1. cmd/tier-handlers.go

    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	tierStats := dui.tierStats()
    	dailyStats := globalNotificationSys.GetLastDayTierStats(ctx)
    	tierStats = dailyStats.addToTierInfo(tierStats)
    
    	data, err := json.Marshal(tierStats)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 15 19:52:44 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  2. cmd/notification.go

    			errs[index] = sys.peerClients[index].ReloadSiteReplicationConfig(ctx)
    		}(index)
    	}
    
    	wg.Wait()
    	return errs
    }
    
    // GetLastDayTierStats fetches per-tier stats of the last 24hrs from all peers
    func (sys *NotificationSys) GetLastDayTierStats(ctx context.Context) DailyAllTierStats {
    	errs := make([]error, len(sys.allPeerClients))
    	lastDayStats := make([]DailyAllTierStats, len(sys.allPeerClients))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 12 18:13:36 GMT 2024
    - 44.5K bytes
    - Viewed (0)
  3. cmd/peer-rest-client.go

    	if err != nil {
    		return result, err
    	}
    	if result.Error != "" {
    		return result, errors.New(result.Error)
    	}
    	return result, nil
    }
    
    func (client *peerRESTClient) GetLastDayTierStats(ctx context.Context) (DailyAllTierStats, error) {
    	resp, err := getLastDayTierStatsRPC.Call(ctx, client.gridConn(), grid.NewMSS())
    	if err != nil || resp == nil {
    		return DailyAllTierStats{}, err
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.8K bytes
    - Viewed (0)
Back to top