feat(rest):add api about configure status

This commit is contained in:
xiang.zhou
2024-07-24 10:04:57 +08:00
parent 8b8bb2a285
commit 69c616f855
8 changed files with 73 additions and 18 deletions
+3
View File
@@ -123,6 +123,8 @@ neu_manager_t *neu_manager_create()
manager->timestamp_lev_manager = 0;
strncpy(g_status, "loading", sizeof(g_status));
neu_metrics_init();
start_static_adapter(manager, DEFAULT_DASHBOARD_PLUGIN_NAME);
@@ -155,6 +157,7 @@ neu_manager_t *neu_manager_create()
manager->timer_timestamp =
neu_event_add_timer(manager->events, timestamp_timer_param);
strncpy(g_status, "ready", sizeof(g_status));
nlog_notice("manager start");
return manager;
}
+1
View File
@@ -41,6 +41,7 @@ zlog_category_t * neuron = NULL;
bool disable_jwt = false;
int default_log_level = ZLOG_LEVEL_NOTICE;
char host_port[32] = { 0 };
char g_status[32] = { 0 };
int64_t global_timestamp = 0;