1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

Rename audits back to logs

This commit is contained in:
Matej Bačo 2023-09-24 14:36:20 +02:00 committed by Christy Jacob
parent 5120152369
commit e58bf7f695
3 changed files with 5 additions and 6 deletions

View file

@ -353,15 +353,14 @@ 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/audits')
->alias('/v1/health/queue/logs')
->desc('Get Audits Queue')
App::get('/v1/health/queue/logs')
->desc('Get Logs Queue')
->groups(['api', 'health'])
->label('scope', 'health.read')
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
->label('sdk.namespace', 'health')
->label('sdk.method', 'getQueueAudits')
->label('sdk.description', '/docs/references/health/get-queue-audits.md')
->label('sdk.method', 'getQueueLogs')
->label('sdk.description', '/docs/references/health/get-queue-logs.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)

View file

@ -184,7 +184,7 @@ class HealthCustomServerTest extends Scope
$this->assertLessThan(100, $response['body']['size']);
$response = $this->client->call(Client::METHOD_GET, '/health/queue/audits', array_merge([
$response = $this->client->call(Client::METHOD_GET, '/health/queue/logs', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), []);