[FEATURE]support xx_plugin statistics(new API maat_register_thread)
This commit is contained in:
@@ -57,6 +57,10 @@ int bool_plugin_runtime_get_ex_data(void *bool_plugin_runtime, unsigned long lon
|
||||
|
||||
long long bool_plugin_runtime_update_err_count(void *bool_plugin_runtime);
|
||||
|
||||
void bool_plugin_runtime_scan_inc(void *bool_plugin_runtime, int thread_id);
|
||||
|
||||
long long bool_plugin_runtime_scan_count(void *bool_plugin_runtime);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -61,6 +61,10 @@ void fqdn_rule_free(struct FQDN_rule *fqdn_rule);
|
||||
|
||||
long long fqdn_plugin_runtime_update_err_count(void *fqdn_plugin_runtime);
|
||||
|
||||
void fqdn_plugin_runtime_scan_inc(void *fqdn_plugin_runtime, int thread_id);
|
||||
|
||||
long long fqdn_plugin_runtime_scan_count(void *fqdn_plugin_runtime);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -57,6 +57,10 @@ int ip_plugin_runtime_get_ex_data(void *ip_plugin_runtime, const struct ip_addr
|
||||
|
||||
long long ip_plugin_runtime_update_err_count(void *ip_plugin_runtime);
|
||||
|
||||
void ip_plugin_runtime_scan_inc(void *ip_plugin_rt, int thread_id);
|
||||
|
||||
long long ip_plugin_runtime_scan_count(void *ip_plugin_runtime);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -59,6 +59,10 @@ int ipport_plugin_runtime_get_ex_data(void *ipport_plugin_runtime, const struct
|
||||
|
||||
long long ipport_plugin_runtime_update_err_count(void *ipport_plugin_runtime);
|
||||
|
||||
void ipport_plugin_runtime_scan_inc(void *ipport_plugin_rt, int thread_id);
|
||||
|
||||
long long ipport_plugin_runtime_scan_count(void *ipport_plugin_runtime);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -73,6 +73,10 @@ const char *plugin_runtime_cached_row_get(void *plugin_runtime, size_t index);
|
||||
void *plugin_runtime_get_ex_data(void *plugin_runtime, void *plugin_schema,
|
||||
const char *key, size_t key_len);
|
||||
|
||||
void plugin_runtime_scan_inc(void *plugin_runtime, int thread_id);
|
||||
|
||||
long long plugin_runtime_scan_count(void *plugin_runtime);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -179,6 +179,7 @@ struct maat {
|
||||
long long new_version;
|
||||
|
||||
int is_running;
|
||||
int thread_counter;
|
||||
pthread_t cfg_mon_thread;
|
||||
pthread_mutex_t background_update_mutex;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user