Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getS3InOutBytes (0.09 sec)

  1. cmd/http-stats.go

    	}
    	s.stats[bucket] = stats
    }
    
    type inOutBytes struct {
    	In  uint64
    	Out uint64
    }
    
    // Return S3 total input bytes for input bucket
    func (s *bucketConnStats) getS3InOutBytes() map[string]inOutBytes {
    	s.RLock()
    	defer s.RUnlock()
    
    	if len(s.stats) == 0 {
    		return nil
    	}
    
    	bucketStats := make(map[string]inOutBytes, len(s.stats))
    	for k, v := range s.stats {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  2. cmd/metrics-v2.go

    					Value:          float64(value),
    					VariableLabels: map[string]string{"api": api},
    				})
    			}
    			return
    		}
    
    		for bucket, inOut := range globalBucketConnStats.getS3InOutBytes() {
    			recvBytes := inOut.In
    			if recvBytes > 0 {
    				metrics = append(metrics, MetricV2{
    					Description:    getBucketTrafficReceivedBytes(),
    					Value:          float64(recvBytes),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 131.9K bytes
    - Viewed (0)
Back to top