Updated health routes
This commit is contained in:
parent
b6dc9ad8af
commit
06c8a2da97
|
@ -21,4 +21,5 @@ return [ // List of publicly visible scopes
|
|||
// 'webhooks.write',
|
||||
'locale.read',
|
||||
'avatars.read',
|
||||
'health.read',
|
||||
];;
|
|
@ -9,7 +9,7 @@ use Appwrite\ClamAV\Network;
|
|||
|
||||
$utopia->get('/v1/health')
|
||||
->desc('Get HTTP')
|
||||
->label('scope', 'public')
|
||||
->label('scope', 'health.read')
|
||||
->label('sdk.platform', [APP_PLATFORM_SERVER])
|
||||
->label('sdk.namespace', 'health')
|
||||
->label('sdk.method', 'get')
|
||||
|
@ -22,7 +22,7 @@ $utopia->get('/v1/health')
|
|||
|
||||
$utopia->get('/v1/health/db')
|
||||
->desc('Get DB')
|
||||
->label('scope', 'public')
|
||||
->label('scope', 'health.read')
|
||||
->label('sdk.platform', [APP_PLATFORM_SERVER])
|
||||
->label('sdk.namespace', 'health')
|
||||
->label('sdk.method', 'getDB')
|
||||
|
@ -37,7 +37,7 @@ $utopia->get('/v1/health/db')
|
|||
|
||||
$utopia->get('/v1/health/cache')
|
||||
->desc('Get Cache')
|
||||
->label('scope', 'public')
|
||||
->label('scope', 'health.read')
|
||||
->label('sdk.platform', [APP_PLATFORM_SERVER])
|
||||
->label('sdk.namespace', 'health')
|
||||
->label('sdk.method', 'getCache')
|
||||
|
@ -52,7 +52,7 @@ $utopia->get('/v1/health/cache')
|
|||
|
||||
$utopia->get('/v1/health/time')
|
||||
->desc('Get Time')
|
||||
->label('scope', 'public')
|
||||
->label('scope', 'health.read')
|
||||
->label('sdk.platform', [APP_PLATFORM_SERVER])
|
||||
->label('sdk.namespace', 'health')
|
||||
->label('sdk.method', 'getTime')
|
||||
|
@ -99,7 +99,7 @@ $utopia->get('/v1/health/time')
|
|||
|
||||
$utopia->get('/v1/health/queue/webhooks')
|
||||
->desc('Get Webhooks Queue')
|
||||
->label('scope', 'public')
|
||||
->label('scope', 'health.read')
|
||||
->label('sdk.platform', [APP_PLATFORM_SERVER])
|
||||
->label('sdk.namespace', 'health')
|
||||
->label('sdk.method', 'getQueueWebhooks')
|
||||
|
@ -112,7 +112,7 @@ $utopia->get('/v1/health/queue/webhooks')
|
|||
|
||||
$utopia->get('/v1/health/queue/tasks')
|
||||
->desc('Get Tasks Queue')
|
||||
->label('scope', 'public')
|
||||
->label('scope', 'health.read')
|
||||
->label('sdk.platform', [APP_PLATFORM_SERVER])
|
||||
->label('sdk.namespace', 'health')
|
||||
->label('sdk.method', 'getQueueTasks')
|
||||
|
@ -125,7 +125,7 @@ $utopia->get('/v1/health/queue/tasks')
|
|||
|
||||
$utopia->get('/v1/health/queue/logs')
|
||||
->desc('Get Logs Queue')
|
||||
->label('scope', 'public')
|
||||
->label('scope', 'health.read')
|
||||
->label('sdk.platform', [APP_PLATFORM_SERVER])
|
||||
->label('sdk.namespace', 'health')
|
||||
->label('sdk.method', 'getQueueLogs')
|
||||
|
@ -138,7 +138,7 @@ $utopia->get('/v1/health/queue/logs')
|
|||
|
||||
$utopia->get('/v1/health/queue/usage')
|
||||
->desc('Get Usage Queue')
|
||||
->label('scope', 'public')
|
||||
->label('scope', 'health.read')
|
||||
->label('sdk.platform', [APP_PLATFORM_SERVER])
|
||||
->label('sdk.namespace', 'health')
|
||||
->label('sdk.method', 'getQueueUsage')
|
||||
|
@ -151,7 +151,7 @@ $utopia->get('/v1/health/queue/usage')
|
|||
|
||||
$utopia->get('/v1/health/queue/certificates')
|
||||
->desc('Get Certificate Queue')
|
||||
->label('scope', 'public')
|
||||
->label('scope', 'health.read')
|
||||
->label('sdk.platform', [APP_PLATFORM_SERVER])
|
||||
->label('sdk.namespace', 'health')
|
||||
->label('sdk.method', 'getQueueCertificates')
|
||||
|
@ -162,9 +162,22 @@ $utopia->get('/v1/health/queue/certificates')
|
|||
}
|
||||
);
|
||||
|
||||
$utopia->get('/v1/health/queue/functions')
|
||||
->desc('Get Functions Queue')
|
||||
->label('scope', 'health.read')
|
||||
->label('sdk.platform', [APP_PLATFORM_SERVER])
|
||||
->label('sdk.namespace', 'health')
|
||||
->label('sdk.method', 'getQueueFunctions')
|
||||
->label('sdk.description', '/docs/references/health/get-queue-functions.md')
|
||||
->action(
|
||||
function () use ($response) {
|
||||
$response->json(['size' => Resque::size('v1-functions')]);
|
||||
}
|
||||
);
|
||||
|
||||
$utopia->get('/v1/health/storage/local')
|
||||
->desc('Get Local Storage')
|
||||
->label('scope', 'public')
|
||||
->label('scope', 'health.read')
|
||||
->label('sdk.platform', [APP_PLATFORM_SERVER])
|
||||
->label('sdk.namespace', 'health')
|
||||
->label('sdk.method', 'getStorageLocal')
|
||||
|
@ -199,7 +212,7 @@ $utopia->get('/v1/health/storage/local')
|
|||
|
||||
$utopia->get('/v1/health/anti-virus')
|
||||
->desc('Get Anti virus')
|
||||
->label('scope', 'public')
|
||||
->label('scope', 'health.read')
|
||||
->label('sdk.platform', [APP_PLATFORM_SERVER])
|
||||
->label('sdk.namespace', 'health')
|
||||
->label('sdk.method', 'getAntiVirus')
|
||||
|
|
Loading…
Reference in a new issue