1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-27 23:46:25 +00:00

Add metrics

This commit is contained in:
Heran Yang
2025-03-31 15:50:05 +08:00
parent c963a54a82
commit ee5449e04b
22 changed files with 1288 additions and 69 deletions

View File

@@ -4,6 +4,8 @@
#ifdef HAVE_EVHTP
#include <glib.h>
#include "metric-mgr.h"
struct _SeafileSession;
struct _HttpServer;
@@ -23,6 +25,12 @@ struct _HttpServerStruct {
gboolean verify_client_blocks;
};
typedef struct RequestInfo {
struct timeval start;
char *url_path;
char *method;
} RequestInfo;
typedef struct _HttpServerStruct HttpServerStruct;
HttpServerStruct *
@@ -40,6 +48,7 @@ send_statistic_msg (const char *repo_id, char *user, char *operation, guint64 by
char *
get_client_ip_addr (void *data);
#endif
#endif