lib/freno/client.rb in freno-client-0.3.0 vs lib/freno/client.rb in freno-client-0.4.0
- old
+ new
@@ -38,21 +38,21 @@
@decorated_requests = {}
yield self if block_given?
end
- # Provides an interface to Freno's check request
+ # Provides an interface to Freno"s check request
#
# See https://github.com/github/freno/blob/master/doc/http.md#check-request
#
# Returns Result
#
def check(app: default_app, store_type: default_store_type, store_name: default_store_name, options: self.options)
perform :check, app: app, store_type: store_type, store_name: store_name, options: options
end
- # Provides an interface to Freno's check-read request
+ # Provides an interface to Freno"s check-read request
#
# See https://github.com/github/freno/blob/master/doc/http.md#specialized-requests
#
# Returns Result
#
@@ -70,18 +70,18 @@
def replication_delay(app: default_app, store_type: default_store_type, store_name: default_store_name, options: self.options)
perform :replication_delay, app: app, store_type: store_type, store_name: store_name, options: options
end
- # Determines whether Freno considers it's OK to write to masters
+ # Determines whether Freno considers it"s OK to write to masters
#
# Returns true or false.
#
def check?(app: default_app, store_type: default_store_type, store_name: default_store_name, options: self.options)
check(app: app, store_type: store_type, store_name: store_name, options: options).ok?
end
- # Determines whether it's OK to read from replicas as replication delay is below
+ # Determines whether it"s OK to read from replicas as replication delay is below
# the given threshold.
#
# Returns true or false.
#
def check_read?(threshold:, app: default_app, store_type: default_store_type, store_name: default_store_name, options: self.options)