mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Rename logs to audits
This commit is contained in:
@@ -353,14 +353,15 @@ App::get('/v1/health/queue/webhooks')
|
||||
$response->dynamic(new Document([ 'size' => Resque::size(Event::WEBHOOK_QUEUE_NAME) ]), Response::MODEL_HEALTH_QUEUE);
|
||||
}, ['response']);
|
||||
|
||||
App::get('/v1/health/queue/logs')
|
||||
->desc('Get logs queue')
|
||||
App::get('/v1/health/queue/audits')
|
||||
->alias('/v1/health/queue/logs')
|
||||
->desc('Get audits queue')
|
||||
->groups(['api', 'health'])
|
||||
->label('scope', 'health.read')
|
||||
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
|
||||
->label('sdk.namespace', 'health')
|
||||
->label('sdk.method', 'getQueueLogs')
|
||||
->label('sdk.description', '/docs/references/health/get-queue-logs.md')
|
||||
->label('sdk.method', 'getQueueAudits')
|
||||
->label('sdk.description', '/docs/references/health/get-queue-audits.md')
|
||||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE)
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Get the number of audits that are waiting to be processed in the Appwrite internal queue server.
|
||||
@@ -1 +0,0 @@
|
||||
Get the number of logs that are waiting to be processed in the Appwrite internal queue server.
|
||||
@@ -141,12 +141,12 @@ class HealthCustomServerTest extends Scope
|
||||
return [];
|
||||
}
|
||||
|
||||
public function testLogsSuccess(): array
|
||||
public function testAuditsSuccess(): array
|
||||
{
|
||||
/**
|
||||
* Test for SUCCESS
|
||||
*/
|
||||
$response = $this->client->call(Client::METHOD_GET, '/health/queue/logs', array_merge([
|
||||
$response = $this->client->call(Client::METHOD_GET, '/health/queue/audits', array_merge([
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
], $this->getHeaders()), []);
|
||||
|
||||
Reference in New Issue
Block a user