mirror of
https://github.com/netdata/netdata.git
synced 2025-05-21 16:27:14 +00:00

* Pass DB connection in db_execute() * Add support for loading/saving models. * Fix ML stats when no training takes place. * Make model flushing batch size configurable. * Delete unused function * Update ML config. * Restore threshold for logs/period. * Rm whitespace. * Add missing dummy function. * Update function call arguments * Guard transactions with a lock when flushing ML models. * Mark dimensions with loaded models as trained.
23 lines
695 B
C
23 lines
695 B
C
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#ifndef NETDATA_SQLITE_METADATA_H
|
|
#define NETDATA_SQLITE_METADATA_H
|
|
|
|
#include "sqlite3.h"
|
|
#include "sqlite_functions.h"
|
|
|
|
// To initialize and shutdown
|
|
void metadata_sync_init(void);
|
|
void metadata_sync_shutdown(void);
|
|
void metadata_sync_shutdown_prepare(void);
|
|
|
|
void metaqueue_delete_dimension_uuid(uuid_t *uuid);
|
|
void metaqueue_store_claim_id(uuid_t *host_uuid, uuid_t *claim_uuid);
|
|
void metaqueue_host_update_info(RRDHOST *host);
|
|
void metaqueue_ml_load_models(RRDDIM *rd);
|
|
void migrate_localhost(uuid_t *host_uuid);
|
|
void metadata_queue_load_host_context(RRDHOST *host);
|
|
|
|
// UNIT TEST
|
|
int metadata_unittest(void);
|
|
#endif //NETDATA_SQLITE_METADATA_H
|