appwrite 11.0.1 → 13.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/appwrite/client.rb +54 -76
- data/lib/appwrite/enums/credit_card.rb +1 -1
- data/lib/appwrite/enums/flag.rb +1 -0
- data/lib/appwrite/enums/image_format.rb +1 -0
- data/lib/appwrite/enums/name.rb +1 -2
- data/lib/appwrite/enums/runtime.rb +5 -0
- data/lib/appwrite/models/attribute_boolean.rb +10 -0
- data/lib/appwrite/models/attribute_datetime.rb +10 -0
- data/lib/appwrite/models/attribute_email.rb +10 -0
- data/lib/appwrite/models/attribute_enum.rb +10 -0
- data/lib/appwrite/models/attribute_float.rb +10 -0
- data/lib/appwrite/models/attribute_integer.rb +10 -0
- data/lib/appwrite/models/attribute_ip.rb +10 -0
- data/lib/appwrite/models/attribute_relationship.rb +10 -0
- data/lib/appwrite/models/attribute_string.rb +10 -0
- data/lib/appwrite/models/attribute_url.rb +10 -0
- data/lib/appwrite/models/build.rb +67 -0
- data/lib/appwrite/models/deployment.rb +5 -0
- data/lib/appwrite/models/document.rb +4 -9
- data/lib/appwrite/models/document_list.rb +1 -2
- data/lib/appwrite/models/execution.rb +8 -3
- data/lib/appwrite/models/function.rb +13 -3
- data/lib/appwrite/models/index.rb +13 -3
- data/lib/appwrite/models/mfa_factors.rb +8 -3
- data/lib/appwrite/models/preferences.rb +4 -9
- data/lib/appwrite/models/runtime.rb +5 -0
- data/lib/appwrite/models/session.rb +5 -0
- data/lib/appwrite/models/specification.rb +42 -0
- data/lib/appwrite/models/specification_list.rb +32 -0
- data/lib/appwrite/multipart.rb +127 -0
- data/lib/appwrite/payload.rb +94 -0
- data/lib/appwrite/services/account.rb +54 -61
- data/lib/appwrite/services/avatars.rb +24 -22
- data/lib/appwrite/services/databases.rb +136 -114
- data/lib/appwrite/services/functions.rb +174 -72
- data/lib/appwrite/services/graphql.rb +2 -2
- data/lib/appwrite/services/health.rb +15 -15
- data/lib/appwrite/services/messaging.rb +230 -228
- data/lib/appwrite/services/storage.rb +40 -40
- data/lib/appwrite/services/teams.rb +19 -19
- data/lib/appwrite/services/users.rb +108 -72
- data/lib/appwrite.rb +5 -1
- metadata +7 -3
- data/lib/appwrite/input_file.rb +0 -33
@@ -18,8 +18,8 @@ module Appwrite
|
|
18
18
|
api_path = '/functions'
|
19
19
|
|
20
20
|
api_params = {
|
21
|
-
|
22
|
-
|
21
|
+
queries: queries,
|
22
|
+
search: search,
|
23
23
|
}
|
24
24
|
|
25
25
|
api_headers = {
|
@@ -52,6 +52,7 @@ module Appwrite
|
|
52
52
|
# @param [] logging Whether executions will be logged. When set to false, executions will not be logged, but will reduce resource used by your Appwrite project.
|
53
53
|
# @param [String] entrypoint Entrypoint File. This path is relative to the "providerRootDirectory".
|
54
54
|
# @param [String] commands Build Commands.
|
55
|
+
# @param [Array] scopes List of scopes allowed for API key auto-generated for every execution. Maximum of 100 scopes are allowed.
|
55
56
|
# @param [String] installation_id Appwrite Installation ID for VCS (Version Control System) deployment.
|
56
57
|
# @param [String] provider_repository_id Repository ID of the repo linked to the function.
|
57
58
|
# @param [String] provider_branch Production branch for the repo linked to the function.
|
@@ -60,10 +61,11 @@ module Appwrite
|
|
60
61
|
# @param [String] template_repository Repository name of the template.
|
61
62
|
# @param [String] template_owner The name of the owner of the template.
|
62
63
|
# @param [String] template_root_directory Path to function code in the template repo.
|
63
|
-
# @param [String]
|
64
|
+
# @param [String] template_version Version (tag) for the repo linked to the function template.
|
65
|
+
# @param [String] specification Runtime specification for the function and builds.
|
64
66
|
#
|
65
67
|
# @return [Function]
|
66
|
-
def create(function_id:, name:, runtime:, execute: nil, events: nil, schedule: nil, timeout: nil, enabled: nil, logging: nil, entrypoint: nil, commands: nil, installation_id: nil, provider_repository_id: nil, provider_branch: nil, provider_silent_mode: nil, provider_root_directory: nil, template_repository: nil, template_owner: nil, template_root_directory: nil,
|
68
|
+
def create(function_id:, name:, runtime:, execute: nil, events: nil, schedule: nil, timeout: nil, enabled: nil, logging: nil, entrypoint: nil, commands: nil, scopes: nil, installation_id: nil, provider_repository_id: nil, provider_branch: nil, provider_silent_mode: nil, provider_root_directory: nil, template_repository: nil, template_owner: nil, template_root_directory: nil, template_version: nil, specification: nil)
|
67
69
|
api_path = '/functions'
|
68
70
|
|
69
71
|
if function_id.nil?
|
@@ -79,26 +81,28 @@ module Appwrite
|
|
79
81
|
end
|
80
82
|
|
81
83
|
api_params = {
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
84
|
+
functionId: function_id,
|
85
|
+
name: name,
|
86
|
+
runtime: runtime,
|
87
|
+
execute: execute,
|
88
|
+
events: events,
|
89
|
+
schedule: schedule,
|
90
|
+
timeout: timeout,
|
91
|
+
enabled: enabled,
|
92
|
+
logging: logging,
|
93
|
+
entrypoint: entrypoint,
|
94
|
+
commands: commands,
|
95
|
+
scopes: scopes,
|
96
|
+
installationId: installation_id,
|
97
|
+
providerRepositoryId: provider_repository_id,
|
98
|
+
providerBranch: provider_branch,
|
99
|
+
providerSilentMode: provider_silent_mode,
|
100
|
+
providerRootDirectory: provider_root_directory,
|
101
|
+
templateRepository: template_repository,
|
102
|
+
templateOwner: template_owner,
|
103
|
+
templateRootDirectory: template_root_directory,
|
104
|
+
templateVersion: template_version,
|
105
|
+
specification: specification,
|
102
106
|
}
|
103
107
|
|
104
108
|
api_headers = {
|
@@ -139,6 +143,31 @@ module Appwrite
|
|
139
143
|
end
|
140
144
|
|
141
145
|
|
146
|
+
# List allowed function specifications for this instance.
|
147
|
+
#
|
148
|
+
#
|
149
|
+
#
|
150
|
+
# @return [SpecificationList]
|
151
|
+
def list_specifications()
|
152
|
+
api_path = '/functions/specifications'
|
153
|
+
|
154
|
+
api_params = {
|
155
|
+
}
|
156
|
+
|
157
|
+
api_headers = {
|
158
|
+
"content-type": 'application/json',
|
159
|
+
}
|
160
|
+
|
161
|
+
@client.call(
|
162
|
+
method: 'GET',
|
163
|
+
path: api_path,
|
164
|
+
headers: api_headers,
|
165
|
+
params: api_params,
|
166
|
+
response_type: Models::SpecificationList
|
167
|
+
)
|
168
|
+
end
|
169
|
+
|
170
|
+
|
142
171
|
# Get a function by its unique ID.
|
143
172
|
#
|
144
173
|
# @param [String] function_id Function ID.
|
@@ -182,14 +211,16 @@ module Appwrite
|
|
182
211
|
# @param [] logging Whether executions will be logged. When set to false, executions will not be logged, but will reduce resource used by your Appwrite project.
|
183
212
|
# @param [String] entrypoint Entrypoint File. This path is relative to the "providerRootDirectory".
|
184
213
|
# @param [String] commands Build Commands.
|
214
|
+
# @param [Array] scopes List of scopes allowed for API Key auto-generated for every execution. Maximum of 100 scopes are allowed.
|
185
215
|
# @param [String] installation_id Appwrite Installation ID for VCS (Version Controle System) deployment.
|
186
216
|
# @param [String] provider_repository_id Repository ID of the repo linked to the function
|
187
217
|
# @param [String] provider_branch Production branch for the repo linked to the function
|
188
218
|
# @param [] provider_silent_mode Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
|
189
219
|
# @param [String] provider_root_directory Path to function code in the linked repo.
|
220
|
+
# @param [String] specification Runtime specification for the function and builds.
|
190
221
|
#
|
191
222
|
# @return [Function]
|
192
|
-
def update(function_id:, name:, runtime: nil, execute: nil, events: nil, schedule: nil, timeout: nil, enabled: nil, logging: nil, entrypoint: nil, commands: nil, installation_id: nil, provider_repository_id: nil, provider_branch: nil, provider_silent_mode: nil, provider_root_directory: nil)
|
223
|
+
def update(function_id:, name:, runtime: nil, execute: nil, events: nil, schedule: nil, timeout: nil, enabled: nil, logging: nil, entrypoint: nil, commands: nil, scopes: nil, installation_id: nil, provider_repository_id: nil, provider_branch: nil, provider_silent_mode: nil, provider_root_directory: nil, specification: nil)
|
193
224
|
api_path = '/functions/{functionId}'
|
194
225
|
.gsub('{functionId}', function_id)
|
195
226
|
|
@@ -202,21 +233,23 @@ module Appwrite
|
|
202
233
|
end
|
203
234
|
|
204
235
|
api_params = {
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
236
|
+
name: name,
|
237
|
+
runtime: runtime,
|
238
|
+
execute: execute,
|
239
|
+
events: events,
|
240
|
+
schedule: schedule,
|
241
|
+
timeout: timeout,
|
242
|
+
enabled: enabled,
|
243
|
+
logging: logging,
|
244
|
+
entrypoint: entrypoint,
|
245
|
+
commands: commands,
|
246
|
+
scopes: scopes,
|
247
|
+
installationId: installation_id,
|
248
|
+
providerRepositoryId: provider_repository_id,
|
249
|
+
providerBranch: provider_branch,
|
250
|
+
providerSilentMode: provider_silent_mode,
|
251
|
+
providerRootDirectory: provider_root_directory,
|
252
|
+
specification: specification,
|
220
253
|
}
|
221
254
|
|
222
255
|
api_headers = {
|
@@ -266,7 +299,7 @@ module Appwrite
|
|
266
299
|
# params to filter your results.
|
267
300
|
#
|
268
301
|
# @param [String] function_id Function ID.
|
269
|
-
# @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: size, buildId, activate, entrypoint, commands
|
302
|
+
# @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: size, buildId, activate, entrypoint, commands, type, size
|
270
303
|
# @param [String] search Search term to filter your list results. Max length: 256 chars.
|
271
304
|
#
|
272
305
|
# @return [DeploymentList]
|
@@ -279,8 +312,8 @@ module Appwrite
|
|
279
312
|
end
|
280
313
|
|
281
314
|
api_params = {
|
282
|
-
|
283
|
-
|
315
|
+
queries: queries,
|
316
|
+
search: search,
|
284
317
|
}
|
285
318
|
|
286
319
|
api_headers = {
|
@@ -309,7 +342,7 @@ module Appwrite
|
|
309
342
|
# Use the "command" param to set the entrypoint used to execute your code.
|
310
343
|
#
|
311
344
|
# @param [String] function_id Function ID.
|
312
|
-
# @param [
|
345
|
+
# @param [Payload] code Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.
|
313
346
|
# @param [] activate Automatically activate the deployment when it is finished building.
|
314
347
|
# @param [String] entrypoint Entrypoint File.
|
315
348
|
# @param [String] commands Build Commands.
|
@@ -332,10 +365,10 @@ module Appwrite
|
|
332
365
|
end
|
333
366
|
|
334
367
|
api_params = {
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
368
|
+
entrypoint: entrypoint,
|
369
|
+
commands: commands,
|
370
|
+
code: code,
|
371
|
+
activate: activate,
|
339
372
|
}
|
340
373
|
|
341
374
|
api_headers = {
|
@@ -466,19 +499,17 @@ module Appwrite
|
|
466
499
|
end
|
467
500
|
|
468
501
|
|
469
|
-
#
|
470
|
-
# be used to retry a failed build.
|
502
|
+
#
|
471
503
|
#
|
472
504
|
# @param [String] function_id Function ID.
|
473
505
|
# @param [String] deployment_id Deployment ID.
|
474
506
|
# @param [String] build_id Build unique ID.
|
475
507
|
#
|
476
508
|
# @return []
|
477
|
-
def create_build(function_id:, deployment_id:, build_id:)
|
478
|
-
api_path = '/functions/{functionId}/deployments/{deploymentId}/
|
509
|
+
def create_build(function_id:, deployment_id:, build_id: nil)
|
510
|
+
api_path = '/functions/{functionId}/deployments/{deploymentId}/build'
|
479
511
|
.gsub('{functionId}', function_id)
|
480
512
|
.gsub('{deploymentId}', deployment_id)
|
481
|
-
.gsub('{buildId}', build_id)
|
482
513
|
|
483
514
|
if function_id.nil?
|
484
515
|
raise Appwrite::Exception.new('Missing required parameter: "functionId"')
|
@@ -488,8 +519,40 @@ module Appwrite
|
|
488
519
|
raise Appwrite::Exception.new('Missing required parameter: "deploymentId"')
|
489
520
|
end
|
490
521
|
|
491
|
-
|
492
|
-
|
522
|
+
api_params = {
|
523
|
+
buildId: build_id,
|
524
|
+
}
|
525
|
+
|
526
|
+
api_headers = {
|
527
|
+
"content-type": 'application/json',
|
528
|
+
}
|
529
|
+
|
530
|
+
@client.call(
|
531
|
+
method: 'POST',
|
532
|
+
path: api_path,
|
533
|
+
headers: api_headers,
|
534
|
+
params: api_params,
|
535
|
+
)
|
536
|
+
end
|
537
|
+
|
538
|
+
|
539
|
+
#
|
540
|
+
#
|
541
|
+
# @param [String] function_id Function ID.
|
542
|
+
# @param [String] deployment_id Deployment ID.
|
543
|
+
#
|
544
|
+
# @return [Build]
|
545
|
+
def update_deployment_build(function_id:, deployment_id:)
|
546
|
+
api_path = '/functions/{functionId}/deployments/{deploymentId}/build'
|
547
|
+
.gsub('{functionId}', function_id)
|
548
|
+
.gsub('{deploymentId}', deployment_id)
|
549
|
+
|
550
|
+
if function_id.nil?
|
551
|
+
raise Appwrite::Exception.new('Missing required parameter: "functionId"')
|
552
|
+
end
|
553
|
+
|
554
|
+
if deployment_id.nil?
|
555
|
+
raise Appwrite::Exception.new('Missing required parameter: "deploymentId"')
|
493
556
|
end
|
494
557
|
|
495
558
|
api_params = {
|
@@ -500,10 +563,11 @@ module Appwrite
|
|
500
563
|
}
|
501
564
|
|
502
565
|
@client.call(
|
503
|
-
method: '
|
566
|
+
method: 'PATCH',
|
504
567
|
path: api_path,
|
505
568
|
headers: api_headers,
|
506
569
|
params: api_params,
|
570
|
+
response_type: Models::Build
|
507
571
|
)
|
508
572
|
end
|
509
573
|
|
@@ -515,7 +579,7 @@ module Appwrite
|
|
515
579
|
# @param [String] deployment_id Deployment ID.
|
516
580
|
#
|
517
581
|
# @return []
|
518
|
-
def
|
582
|
+
def get_deployment_download(function_id:, deployment_id:)
|
519
583
|
api_path = '/functions/{functionId}/deployments/{deploymentId}/download'
|
520
584
|
.gsub('{functionId}', function_id)
|
521
585
|
.gsub('{deploymentId}', deployment_id)
|
@@ -548,7 +612,7 @@ module Appwrite
|
|
548
612
|
# query params to filter your results.
|
549
613
|
#
|
550
614
|
# @param [String] function_id Function ID.
|
551
|
-
# @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: trigger, status, responseStatusCode, duration
|
615
|
+
# @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId
|
552
616
|
# @param [String] search Search term to filter your list results. Max length: 256 chars.
|
553
617
|
#
|
554
618
|
# @return [ExecutionList]
|
@@ -561,8 +625,8 @@ module Appwrite
|
|
561
625
|
end
|
562
626
|
|
563
627
|
api_params = {
|
564
|
-
|
565
|
-
|
628
|
+
queries: queries,
|
629
|
+
search: search,
|
566
630
|
}
|
567
631
|
|
568
632
|
api_headers = {
|
@@ -585,14 +649,15 @@ module Appwrite
|
|
585
649
|
# function execution process will start asynchronously.
|
586
650
|
#
|
587
651
|
# @param [String] function_id Function ID.
|
588
|
-
# @param [
|
652
|
+
# @param [Payload] body HTTP body of execution. Default value is empty string.
|
589
653
|
# @param [] async Execute code in the background. Default value is false.
|
590
654
|
# @param [String] xpath HTTP path of execution. Path can include query params. Default value is /
|
591
655
|
# @param [ExecutionMethod] method HTTP method of execution. Default value is GET.
|
592
656
|
# @param [Hash] headers HTTP headers of execution. Defaults to empty.
|
657
|
+
# @param [String] scheduled_at Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.
|
593
658
|
#
|
594
659
|
# @return [Execution]
|
595
|
-
def create_execution(function_id:, body: nil, async: nil, xpath: nil, method: nil, headers: nil)
|
660
|
+
def create_execution(function_id:, body: nil, async: nil, xpath: nil, method: nil, headers: nil, scheduled_at: nil, on_progress: nil)
|
596
661
|
api_path = '/functions/{functionId}/executions'
|
597
662
|
.gsub('{functionId}', function_id)
|
598
663
|
|
@@ -601,15 +666,16 @@ module Appwrite
|
|
601
666
|
end
|
602
667
|
|
603
668
|
api_params = {
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
669
|
+
body: body,
|
670
|
+
async: async,
|
671
|
+
path: xpath,
|
672
|
+
method: method,
|
673
|
+
headers: headers,
|
674
|
+
scheduledAt: scheduled_at,
|
609
675
|
}
|
610
676
|
|
611
677
|
api_headers = {
|
612
|
-
"content-type": '
|
678
|
+
"content-type": 'multipart/form-data',
|
613
679
|
}
|
614
680
|
|
615
681
|
@client.call(
|
@@ -658,6 +724,42 @@ module Appwrite
|
|
658
724
|
end
|
659
725
|
|
660
726
|
|
727
|
+
# Delete a function execution by its unique ID.
|
728
|
+
#
|
729
|
+
#
|
730
|
+
# @param [String] function_id Function ID.
|
731
|
+
# @param [String] execution_id Execution ID.
|
732
|
+
#
|
733
|
+
# @return []
|
734
|
+
def delete_execution(function_id:, execution_id:)
|
735
|
+
api_path = '/functions/{functionId}/executions/{executionId}'
|
736
|
+
.gsub('{functionId}', function_id)
|
737
|
+
.gsub('{executionId}', execution_id)
|
738
|
+
|
739
|
+
if function_id.nil?
|
740
|
+
raise Appwrite::Exception.new('Missing required parameter: "functionId"')
|
741
|
+
end
|
742
|
+
|
743
|
+
if execution_id.nil?
|
744
|
+
raise Appwrite::Exception.new('Missing required parameter: "executionId"')
|
745
|
+
end
|
746
|
+
|
747
|
+
api_params = {
|
748
|
+
}
|
749
|
+
|
750
|
+
api_headers = {
|
751
|
+
"content-type": 'application/json',
|
752
|
+
}
|
753
|
+
|
754
|
+
@client.call(
|
755
|
+
method: 'DELETE',
|
756
|
+
path: api_path,
|
757
|
+
headers: api_headers,
|
758
|
+
params: api_params,
|
759
|
+
)
|
760
|
+
end
|
761
|
+
|
762
|
+
|
661
763
|
# Get a list of all variables of a specific function.
|
662
764
|
#
|
663
765
|
# @param [String] function_id Function unique ID.
|
@@ -713,8 +815,8 @@ module Appwrite
|
|
713
815
|
end
|
714
816
|
|
715
817
|
api_params = {
|
716
|
-
|
717
|
-
|
818
|
+
key: key,
|
819
|
+
value: value,
|
718
820
|
}
|
719
821
|
|
720
822
|
api_headers = {
|
@@ -793,8 +895,8 @@ module Appwrite
|
|
793
895
|
end
|
794
896
|
|
795
897
|
api_params = {
|
796
|
-
|
797
|
-
|
898
|
+
key: key,
|
899
|
+
value: value,
|
798
900
|
}
|
799
901
|
|
800
902
|
api_headers = {
|
@@ -89,7 +89,7 @@ module Appwrite
|
|
89
89
|
api_path = '/health/certificate'
|
90
90
|
|
91
91
|
api_params = {
|
92
|
-
|
92
|
+
domain: domain,
|
93
93
|
}
|
94
94
|
|
95
95
|
api_headers = {
|
@@ -189,7 +189,7 @@ module Appwrite
|
|
189
189
|
api_path = '/health/queue/builds'
|
190
190
|
|
191
191
|
api_params = {
|
192
|
-
|
192
|
+
threshold: threshold,
|
193
193
|
}
|
194
194
|
|
195
195
|
api_headers = {
|
@@ -217,7 +217,7 @@ module Appwrite
|
|
217
217
|
api_path = '/health/queue/certificates'
|
218
218
|
|
219
219
|
api_params = {
|
220
|
-
|
220
|
+
threshold: threshold,
|
221
221
|
}
|
222
222
|
|
223
223
|
api_headers = {
|
@@ -245,8 +245,8 @@ module Appwrite
|
|
245
245
|
api_path = '/health/queue/databases'
|
246
246
|
|
247
247
|
api_params = {
|
248
|
-
|
249
|
-
|
248
|
+
name: name,
|
249
|
+
threshold: threshold,
|
250
250
|
}
|
251
251
|
|
252
252
|
api_headers = {
|
@@ -273,7 +273,7 @@ module Appwrite
|
|
273
273
|
api_path = '/health/queue/deletes'
|
274
274
|
|
275
275
|
api_params = {
|
276
|
-
|
276
|
+
threshold: threshold,
|
277
277
|
}
|
278
278
|
|
279
279
|
api_headers = {
|
@@ -306,7 +306,7 @@ module Appwrite
|
|
306
306
|
end
|
307
307
|
|
308
308
|
api_params = {
|
309
|
-
|
309
|
+
threshold: threshold,
|
310
310
|
}
|
311
311
|
|
312
312
|
api_headers = {
|
@@ -333,7 +333,7 @@ module Appwrite
|
|
333
333
|
api_path = '/health/queue/functions'
|
334
334
|
|
335
335
|
api_params = {
|
336
|
-
|
336
|
+
threshold: threshold,
|
337
337
|
}
|
338
338
|
|
339
339
|
api_headers = {
|
@@ -360,7 +360,7 @@ module Appwrite
|
|
360
360
|
api_path = '/health/queue/logs'
|
361
361
|
|
362
362
|
api_params = {
|
363
|
-
|
363
|
+
threshold: threshold,
|
364
364
|
}
|
365
365
|
|
366
366
|
api_headers = {
|
@@ -387,7 +387,7 @@ module Appwrite
|
|
387
387
|
api_path = '/health/queue/mails'
|
388
388
|
|
389
389
|
api_params = {
|
390
|
-
|
390
|
+
threshold: threshold,
|
391
391
|
}
|
392
392
|
|
393
393
|
api_headers = {
|
@@ -414,7 +414,7 @@ module Appwrite
|
|
414
414
|
api_path = '/health/queue/messaging'
|
415
415
|
|
416
416
|
api_params = {
|
417
|
-
|
417
|
+
threshold: threshold,
|
418
418
|
}
|
419
419
|
|
420
420
|
api_headers = {
|
@@ -441,7 +441,7 @@ module Appwrite
|
|
441
441
|
api_path = '/health/queue/migrations'
|
442
442
|
|
443
443
|
api_params = {
|
444
|
-
|
444
|
+
threshold: threshold,
|
445
445
|
}
|
446
446
|
|
447
447
|
api_headers = {
|
@@ -468,7 +468,7 @@ module Appwrite
|
|
468
468
|
api_path = '/health/queue/usage'
|
469
469
|
|
470
470
|
api_params = {
|
471
|
-
|
471
|
+
threshold: threshold,
|
472
472
|
}
|
473
473
|
|
474
474
|
api_headers = {
|
@@ -495,7 +495,7 @@ module Appwrite
|
|
495
495
|
api_path = '/health/queue/usage-dump'
|
496
496
|
|
497
497
|
api_params = {
|
498
|
-
|
498
|
+
threshold: threshold,
|
499
499
|
}
|
500
500
|
|
501
501
|
api_headers = {
|
@@ -522,7 +522,7 @@ module Appwrite
|
|
522
522
|
api_path = '/health/queue/webhooks'
|
523
523
|
|
524
524
|
api_params = {
|
525
|
-
|
525
|
+
threshold: threshold,
|
526
526
|
}
|
527
527
|
|
528
528
|
api_headers = {
|