Cedarling JavaScript/TypeScript API
    Preparing search index...

    Class DataStoreStats

    A WASM wrapper for the Rust cedarling::DataStoreStats struct. Statistics about the DataStore.

    Index

    avg_entry_size_bytes

    avg_entry_size_bytes: number

    Average size per entry in bytes (0 if no entries)

    capacity_usage_percent: number

    Percentage of capacity used (0.0-100.0, based on entry count)

    entry_count

    entry_count: number

    Number of entries currently stored

    max_entries: number

    Maximum number of entries allowed (0 = unlimited)

    max_entry_size

    max_entry_size: number

    Maximum size per entry in bytes (0 = unlimited)

    memory_alert_threshold: number

    Memory usage threshold percentage (from config)

    memory_alert_triggered: boolean

    Whether memory usage exceeds the alert threshold

    metrics_enabled: boolean

    Whether metrics tracking is enabled

    total_size_bytes: number

    Total size of all entries in bytes (approximate, based on JSON serialization)

    • Returns void

    • Returns void

    • Convert DataStoreStats to json string value

      Returns string