diff --git a/app/controllers/api/health.php b/app/controllers/api/health.php index 0660b26990..b2cf8676f7 100644 --- a/app/controllers/api/health.php +++ b/app/controllers/api/health.php @@ -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) diff --git a/docs/references/health/get-queue-audits.md b/docs/references/health/get-queue-logs.md similarity index 100% rename from docs/references/health/get-queue-audits.md rename to docs/references/health/get-queue-logs.md diff --git a/tests/e2e/Services/Health/HealthCustomServerTest.php b/tests/e2e/Services/Health/HealthCustomServerTest.php index 22c869fdef..0ea9811617 100644 --- a/tests/e2e/Services/Health/HealthCustomServerTest.php +++ b/tests/e2e/Services/Health/HealthCustomServerTest.php @@ -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()), []);