Rename logs to audits

This commit is contained in:
Matej Bačo
2023-10-02 11:12:09 +02:00
parent c0f44537cd
commit 6cbcb610f8
4 changed files with 8 additions and 7 deletions
+5 -4
View File
@@ -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
View File
@@ -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()), []);