Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for toServerConnStats (0.17 sec)

  1. cmd/metrics-v3-api.go

    // loadAPIRequestsNetworkMetrics - loads S3 network metrics.
    //
    // This is a `MetricsLoaderFn`.
    func loadAPIRequestsNetworkMetrics(ctx context.Context, m MetricValues, _ *metricsCache) error {
    	connStats := globalConnStats.toServerConnStats()
    	m.Set(apiTrafficSentBytes, float64(connStats.s3OutputBytes), "type", "s3")
    	m.Set(apiTrafficRecvBytes, float64(connStats.s3InputBytes), "type", "s3")
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. cmd/http-stats.go

    func (s *connStats) getS3OutputBytes() uint64 {
    	return atomic.LoadUint64(&s.s3OutputBytes)
    }
    
    // Return connection stats (total input/output bytes and total s3 input/output bytes)
    func (s *connStats) toServerConnStats() serverConnStats {
    	return serverConnStats{
    		internodeInputBytes:  s.getInternodeInputBytes(),  // Traffic internode received
    		internodeOutputBytes: s.getInternodeOutputBytes(), // Traffic internode sent
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top