Class: Datadog::Tracing::Transport::Statistics::Counts

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/tracing/transport/statistics.rb

Overview

Stat counts

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCounts

Returns a new instance of Counts.



62
63
64
# File 'lib/datadog/tracing/transport/statistics.rb', line 62

def initialize
  reset!
end

Instance Attribute Details

#client_errorObject

Returns the value of attribute client_error.



55
56
57
# File 'lib/datadog/tracing/transport/statistics.rb', line 55

def client_error
  @client_error
end

#consecutive_errorsObject

Returns the value of attribute consecutive_errors.



55
56
57
# File 'lib/datadog/tracing/transport/statistics.rb', line 55

def consecutive_errors
  @consecutive_errors
end

#internal_errorObject

Returns the value of attribute internal_error.



55
56
57
# File 'lib/datadog/tracing/transport/statistics.rb', line 55

def internal_error
  @internal_error
end

#server_errorObject

Returns the value of attribute server_error.



55
56
57
# File 'lib/datadog/tracing/transport/statistics.rb', line 55

def server_error
  @server_error
end

#successObject

Returns the value of attribute success.



55
56
57
# File 'lib/datadog/tracing/transport/statistics.rb', line 55

def success
  @success
end

Instance Method Details

#reset!Object



66
67
68
69
70
71
72
# File 'lib/datadog/tracing/transport/statistics.rb', line 66

def reset!
  @success = 0
  @client_error = 0
  @server_error = 0
  @internal_error = 0
  @consecutive_errors = 0
end