feat(mongodb): fill object statistics over the legacy agent
This commit is contained in:
1 parent
48f89a2a1a
commit
def42987a4
5 files changed
+52
-2
No files matched your search
@@ -311,7 +311,7 @@ pub async fn list_object_statistics(client: &Client, database: &str) -> Result<V
|
||||
/// Map `collStats` onto the shared statistics shape: the document count, and the
|
||||
/// on-disk footprint (data + indexes) the SQL engines report as
|
||||
/// `DATA_LENGTH + INDEX_LENGTH`.
|
||||
fn object_statistics_from_collection_stats(name: &str, database: &str, result: &Document) -> ObjectStatistics {
|
||||
pub fn object_statistics_from_collection_stats(name: &str, database: &str, result: &Document) -> ObjectStatistics {
|
||||
ObjectStatistics {
|
||||
name: name.to_string(),
|
||||
schema: Some(database.to_string()),
|
||||
|
||||
Reference in new issue
Block a user