case EDG_WLL_STAT_FILE_TRANSFER_COLLECTION:
edg_wll_ServerStatisticsIncrement(ctx, SERVER_STATS_SANDBOX_REGS);
break;
+ case EDG_WLL_STAT_VIRTUAL_MACHINE:
+ edg_wll_ServerStatisticsIncrement(ctx, SERVER_STATS_VM_REGS);
default:
glite_common_log(LOG_CATEGORY_LB_SERVER_REQUEST, LOG_PRIORITY_DEBUG, "Unknown job type, registration will not be counted in statistics.");
break;
isadm = ctx->noAuth || edg_wll_amIroot(ctx->peerName, ctx->fqans,&ctx->authz_policy);
if ( !isadm && ctx->count_server_stats == 2 ) {
ret = HTTP_UNAUTH;
- edg_wll_SetError(ctx, EPERM, "Only superusers can view server usage statistics on this particular server.");
+ edg_wll_SetError(ctx, EPERM, "Only superusers can view server usage statistics on this server.");
}
else {
edg_wll_StatisticsToHTML(ctx, &message, text);
"Notifications sent (legacy)",
"Notifications sent (msg)",
"WS queries",
- "L&B protocol accesses" };
+ "L&B protocol accesses",
+ "VM regs" };
char *edg_wll_server_statistics_type_key[] = {
"glite_jobs",
"notifs_legacy",
"notis_msg",
"queries_ws",
- "queries_api" };
+ "queries_api",
+ "vm_jobs" };
int edg_wll_InitServerStatistics(edg_wll_Context ctx, char *prefix)
{
time_t start;
} edg_wll_server_statistics;
+// Add new values at the end of the enum (before SERVER_STATISTICS_COUNT)
+// Also for new vales, add text descriptions to server_stats.c
typedef enum _edg_wll_server_statistics_type{
SERVER_STATS_GLITEJOB_REGS = 0,
SERVER_STATS_PBSJOB_REGS,
SERVER_STATS_NOTIF_MSG_SENT,
SERVER_STATS_WS_QUERIES,
SERVER_STATS_LBPROTO,
+ SERVER_STATS_VM_REGS,
SERVER_STATISTICS_COUNT
} edg_wll_server_statistics_type;
-// Add new values in front of LAST and do not change order
-// Also for new vales, add text descriptions to server_stats.c
+
extern char *edg_wll_server_statistics_type_title[];
extern char *edg_wll_server_statistics_type_key[];