Vana SDK - v2.2.2
    Preparing search index...

    Interface StatusInfo

    Status information for health checks and service monitoring.

    Used to report the health status of various SDK components including storage providers, RPC connections, and personal servers. The details field can contain provider-specific information for debugging. Timestamps use Unix epoch milliseconds.

    // Checking storage provider health
    const status: StatusInfo = await storage.getStatus();

    if (!status.healthy) {
    console.error(`Storage unhealthy: ${status.message}`);
    // Check how long the issue has persisted
    const downtime = Date.now() - status.lastCheck;
    if (downtime > 300000) { // 5 minutes
    // Switch to backup provider
    }
    }

    // Detailed status with custom fields
    const serverStatus: StatusInfo = {
    healthy: true,
    message: 'All systems operational',
    lastCheck: Date.now(),
    details: {
    uptime: 3600000, // 1 hour
    requestsServed: 1234,
    avgResponseTime: 145, // ms
    activeConnections: 23
    }
    };
    interface StatusInfo {
        healthy: boolean;
        message?: string;
        lastCheck: number;
        details?: Record<string, unknown>;
    }
    Index

    Properties

    healthy: boolean

    Whether the service is healthy

    message?: string

    Status message

    lastCheck: number

    Last check timestamp

    details?: Record<string, unknown>

    Additional status details