import { Client } from '../client'; import type { Models } from '../models'; import { Name } from '../enums/name'; export declare class Health { client: Client; constructor(client: Client); /** * Get HTTP * * Check the Appwrite HTTP server is up and responsive. * * @throws {AppwriteException} * @returns {Promise} */ get(): Promise; /** * Get antivirus * * Check the Appwrite Antivirus server is up and connection is successful. * * @throws {AppwriteException} * @returns {Promise} */ getAntivirus(): Promise; /** * Get cache * * Check the Appwrite in-memory cache servers are up and connection is successful. * * @throws {AppwriteException} * @returns {Promise} */ getCache(): Promise; /** * Get the SSL certificate for a domain * * Get the SSL certificate for a domain * * @param {string} domain * @throws {AppwriteException} * @returns {Promise} */ getCertificate(domain?: string): Promise; /** * Get DB * * Check the Appwrite database servers are up and connection is successful. * * @throws {AppwriteException} * @returns {Promise} */ getDB(): Promise; /** * Get pubsub * * Check the Appwrite pub-sub servers are up and connection is successful. * * @throws {AppwriteException} * @returns {Promise} */ getPubSub(): Promise; /** * Get queue * * Check the Appwrite queue messaging servers are up and connection is successful. * * @throws {AppwriteException} * @returns {Promise} */ getQueue(): Promise; /** * Get builds queue * * Get the number of builds that are waiting to be processed in the Appwrite internal queue server. * * @param {number} threshold * @throws {AppwriteException} * @returns {Promise} */ getQueueBuilds(threshold?: number): Promise; /** * Get certificates queue * * Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server. * * @param {number} threshold * @throws {AppwriteException} * @returns {Promise} */ getQueueCertificates(threshold?: number): Promise; /** * Get databases queue * * Get the number of database changes that are waiting to be processed in the Appwrite internal queue server. * * @param {string} name * @param {number} threshold * @throws {AppwriteException} * @returns {Promise} */ getQueueDatabases(name?: string, threshold?: number): Promise; /** * Get deletes queue * * Get the number of background destructive changes that are waiting to be processed in the Appwrite internal queue server. * * @param {number} threshold * @throws {AppwriteException} * @returns {Promise} */ getQueueDeletes(threshold?: number): Promise; /** * Get number of failed queue jobs * * Returns the amount of failed jobs in a given queue. * * @param {Name} name * @param {number} threshold * @throws {AppwriteException} * @returns {Promise} */ getFailedJobs(name: Name, threshold?: number): Promise; /** * Get functions queue * * Get the number of function executions that are waiting to be processed in the Appwrite internal queue server. * * @param {number} threshold * @throws {AppwriteException} * @returns {Promise} */ getQueueFunctions(threshold?: number): Promise; /** * Get logs queue * * Get the number of logs that are waiting to be processed in the Appwrite internal queue server. * * @param {number} threshold * @throws {AppwriteException} * @returns {Promise} */ getQueueLogs(threshold?: number): Promise; /** * Get mails queue * * Get the number of mails that are waiting to be processed in the Appwrite internal queue server. * * @param {number} threshold * @throws {AppwriteException} * @returns {Promise} */ getQueueMails(threshold?: number): Promise; /** * Get messaging queue * * Get the number of messages that are waiting to be processed in the Appwrite internal queue server. * * @param {number} threshold * @throws {AppwriteException} * @returns {Promise} */ getQueueMessaging(threshold?: number): Promise; /** * Get migrations queue * * Get the number of migrations that are waiting to be processed in the Appwrite internal queue server. * * @param {number} threshold * @throws {AppwriteException} * @returns {Promise} */ getQueueMigrations(threshold?: number): Promise; /** * Get usage queue * * Get the number of metrics that are waiting to be processed in the Appwrite internal queue server. * * @param {number} threshold * @throws {AppwriteException} * @returns {Promise} */ getQueueUsage(threshold?: number): Promise; /** * Get usage dump queue * * Get the number of projects containing metrics that are waiting to be processed in the Appwrite internal queue server. * * @param {number} threshold * @throws {AppwriteException} * @returns {Promise} */ getQueueUsageDump(threshold?: number): Promise; /** * Get webhooks queue * * Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server. * * @param {number} threshold * @throws {AppwriteException} * @returns {Promise} */ getQueueWebhooks(threshold?: number): Promise; /** * Get storage * * Check the Appwrite storage device is up and connection is successful. * * @throws {AppwriteException} * @returns {Promise} */ getStorage(): Promise; /** * Get local storage * * Check the Appwrite local storage device is up and connection is successful. * * @throws {AppwriteException} * @returns {Promise} */ getStorageLocal(): Promise; /** * Get time * * Check the Appwrite server time is synced with Google remote NTP server. We use this technology to smoothly handle leap seconds with no disruptive events. The [Network Time Protocol](https://en.wikipedia.org/wiki/Network_Time_Protocol) (NTP) is used by hundreds of millions of computers and devices to synchronize their clocks over the Internet. If your computer sets its own clock, it likely uses NTP. * * @throws {AppwriteException} * @returns {Promise} */ getTime(): Promise; }