Class: NgrokAPI::Models::EndpointCircuitBreaker
- Inherits:
-
Object
- Object
- NgrokAPI::Models::EndpointCircuitBreaker
- Defined in:
- lib/ngrokapi/models/endpoint_circuit_breaker.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#enabled ⇒ Object
readonly
Returns the value of attribute enabled.
-
#error_threshold_percentage ⇒ Object
readonly
Returns the value of attribute error_threshold_percentage.
-
#num_buckets ⇒ Object
readonly
Returns the value of attribute num_buckets.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#rolling_window ⇒ Object
readonly
Returns the value of attribute rolling_window.
-
#tripped_duration ⇒ Object
readonly
Returns the value of attribute tripped_duration.
-
#volume_threshold ⇒ Object
readonly
Returns the value of attribute volume_threshold.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(client:, result:) ⇒ EndpointCircuitBreaker
constructor
A new instance of EndpointCircuitBreaker.
- #to_s ⇒ Object
Constructor Details
#initialize(client:, result:) ⇒ EndpointCircuitBreaker
Returns a new instance of EndpointCircuitBreaker.
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 15 def initialize(client:, result:) @client = client @result = result @enabled = @result['enabled'] @tripped_duration = @result['tripped_duration'] @rolling_window = @result['rolling_window'] @num_buckets = @result['num_buckets'] @volume_threshold = @result['volume_threshold'] @error_threshold_percentage = @result['error_threshold_percentage'] end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 6 def client @client end |
#enabled ⇒ Object (readonly)
Returns the value of attribute enabled.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 6 def enabled @enabled end |
#error_threshold_percentage ⇒ Object (readonly)
Returns the value of attribute error_threshold_percentage.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 6 def error_threshold_percentage @error_threshold_percentage end |
#num_buckets ⇒ Object (readonly)
Returns the value of attribute num_buckets.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 6 def num_buckets @num_buckets end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 6 def result @result end |
#rolling_window ⇒ Object (readonly)
Returns the value of attribute rolling_window.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 6 def rolling_window @rolling_window end |
#tripped_duration ⇒ Object (readonly)
Returns the value of attribute tripped_duration.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 6 def tripped_duration @tripped_duration end |
#volume_threshold ⇒ Object (readonly)
Returns the value of attribute volume_threshold.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 6 def volume_threshold @volume_threshold end |
Instance Method Details
#==(other) ⇒ Object
26 27 28 |
# File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 26 def ==(other) @result == other.result end |
#to_s ⇒ Object
30 31 32 |
# File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 30 def to_s @result.to_s end |