mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Push SDKs
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ result = databases.create_relationship_attribute(
|
||||
database_id = '<DATABASE_ID>',
|
||||
collection_id = '<COLLECTION_ID>',
|
||||
related_collection_id = '<RELATED_COLLECTION_ID>',
|
||||
type = RelationshipType.ONE_TO_ONE,
|
||||
type = RelationshipType.ONETOONE,
|
||||
two_way = False, # optional
|
||||
key = '', # optional
|
||||
two_way_key = '', # optional
|
||||
|
||||
@@ -11,7 +11,7 @@ functions = Functions(client)
|
||||
result = functions.create(
|
||||
function_id = '<FUNCTION_ID>',
|
||||
name = '<NAME>',
|
||||
runtime = .NODE-14.5,
|
||||
runtime = .NODE_14_5,
|
||||
execute = ["any"], # optional
|
||||
events = [], # optional
|
||||
schedule = '', # optional
|
||||
|
||||
@@ -10,7 +10,7 @@ functions = Functions(client)
|
||||
result = functions.update(
|
||||
function_id = '<FUNCTION_ID>',
|
||||
name = '<NAME>',
|
||||
runtime = .NODE-14.5, # optional
|
||||
runtime = .NODE_14_5, # optional
|
||||
execute = ["any"], # optional
|
||||
events = [], # optional
|
||||
schedule = '', # optional
|
||||
|
||||
@@ -9,6 +9,6 @@ client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
health = Health(client)
|
||||
|
||||
result = health.get_failed_jobs(
|
||||
name = .V1-DATABASE,
|
||||
name = .V1_DATABASE,
|
||||
threshold = None # optional
|
||||
)
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
|
||||
client = Client()
|
||||
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
||||
client.set_project('5df5acd0d48c2') # Your project ID
|
||||
client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
health = Health(client)
|
||||
|
||||
result = health.get_queue_usage(
|
||||
threshold = None # optional
|
||||
)
|
||||
@@ -0,0 +1,10 @@
|
||||
from appwrite.client import Client
|
||||
|
||||
client = Client()
|
||||
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
||||
client.set_project('5df5acd0d48c2') # Your project ID
|
||||
client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
health = Health(client)
|
||||
|
||||
result = health.get_storage()
|
||||
Reference in New Issue
Block a user