Skip to content

Commit

Permalink
Merge pull request #22 from appwrite/dev
Browse files Browse the repository at this point in the history
Appwrite 1.5 support
  • Loading branch information
TorstenDittmann authored Mar 8, 2024
2 parents e477418 + 1abd928 commit 1844aa0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions docs/examples/health/get-queue-usage-dump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
require 'appwrite'

include Appwrite

client = Client.new
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key

health = Health.new(client)

result = health.get_queue_usage_dump(
threshold: null # optional
)
2 changes: 1 addition & 1 deletion lib/appwrite/services/health.rb
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def get_queue_usage(threshold: nil)
# @param [Integer] threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
#
# @return [HealthQueue]
def get_queue_usage(threshold: nil)
def get_queue_usage_dump(threshold: nil)
api_path = '/health/queue/usage-dump'

api_params = {
Expand Down

0 comments on commit 1844aa0

Please sign in to comment.