Class: Datadog::Transport::Statistics::Counts
- Inherits:
 - 
      Object
      
        
- Object
 - Datadog::Transport::Statistics::Counts
 
 
- Defined in:
 - lib/ddtrace/transport/statistics.rb
 
Overview
Stat counts
Instance Attribute Summary collapse
- 
  
    
      #client_error  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute client_error.
 - 
  
    
      #consecutive_errors  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute consecutive_errors.
 - 
  
    
      #internal_error  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute internal_error.
 - 
  
    
      #server_error  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute server_error.
 - 
  
    
      #success  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute success.
 
Instance Method Summary collapse
- 
  
    
      #initialize  ⇒ Counts 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Counts.
 - #reset! ⇒ Object
 
Constructor Details
#initialize ⇒ Counts
Returns a new instance of Counts.
      58 59 60  | 
    
      # File 'lib/ddtrace/transport/statistics.rb', line 58 def initialize reset! end  | 
  
Instance Attribute Details
#client_error ⇒ Object
Returns the value of attribute client_error.
      51 52 53  | 
    
      # File 'lib/ddtrace/transport/statistics.rb', line 51 def client_error @client_error end  | 
  
#consecutive_errors ⇒ Object
Returns the value of attribute consecutive_errors.
      51 52 53  | 
    
      # File 'lib/ddtrace/transport/statistics.rb', line 51 def consecutive_errors @consecutive_errors end  | 
  
#internal_error ⇒ Object
Returns the value of attribute internal_error.
      51 52 53  | 
    
      # File 'lib/ddtrace/transport/statistics.rb', line 51 def internal_error @internal_error end  | 
  
#server_error ⇒ Object
Returns the value of attribute server_error.
      51 52 53  | 
    
      # File 'lib/ddtrace/transport/statistics.rb', line 51 def server_error @server_error end  | 
  
#success ⇒ Object
Returns the value of attribute success.
      51 52 53  | 
    
      # File 'lib/ddtrace/transport/statistics.rb', line 51 def success @success end  | 
  
Instance Method Details
#reset! ⇒ Object
      62 63 64 65 66 67 68  | 
    
      # File 'lib/ddtrace/transport/statistics.rb', line 62 def reset! @success = 0 @client_error = 0 @server_error = 0 @internal_error = 0 @consecutive_errors = 0 end  |