rrd: deprecate create_pbs_default_rrd

This one should be in the client code.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
Lukas Wagner 2024-08-06 14:59:51 +02:00 committed by Wolfgang Bumiller
parent 846e85ed2e
commit 4ca2e01442

View File

@ -103,7 +103,10 @@ impl Cache {
/// * cf=maximum,r=7*86400,n=570 => 10year
///
/// The resulting data file size is about 80KB.
#[deprecated(note="Implement in client code")]
pub fn create_proxmox_backup_default_rrd(dst: DataSourceType) -> Database {
use crate::rrd::Archive;
let rra_list = vec![
// 1 min * 1440 => 1 day
Archive::new(AggregationFn::Average, 60, 1440),