|
|
|
@ -31,18 +31,16 @@ |
|
|
|
|
* |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
#ifndef CENSUS_RESOURCE_ID_H |
|
|
|
|
#define CENSUS_RESOURCE_ID_H |
|
|
|
|
#ifndef CENSUS_RPC_STAT_ID_H |
|
|
|
|
#define CENSUS_RPC_STAT_ID_H |
|
|
|
|
|
|
|
|
|
/* Resource ID's used for census measurements. */ |
|
|
|
|
#define RESOURCE_INVALID 0 /* Make default be invalid. */ |
|
|
|
|
#define RESOURCE_RPC_CLIENT_REQUESTS 1 /* Count of client requests sent. */ |
|
|
|
|
#define RESOURCE_RPC_SERVER_REQUESTS 2 /* Count of server requests sent. */ |
|
|
|
|
#define RESOURCE_RPC_CLIENT_ERRORS 3 /* Client error counts. */ |
|
|
|
|
#define RESOURCE_RPC_SERVER_ERRORS 4 /* Server error counts. */ |
|
|
|
|
#define RESOURCE_RPC_CLIENT_LATENCY 5 /* Client side request latency. */ |
|
|
|
|
#define RESOURCE_RPC_SERVER_LATENCY 6 /* Server side request latency. */ |
|
|
|
|
#define RESOURCE_RPC_CLIENT_CPU 7 /* Client CPU processing time. */ |
|
|
|
|
#define RESOURCE_RPC_SERVER_CPU 8 /* Server CPU processing time. */ |
|
|
|
|
/* Stats ID's used for RPC measurements. */ |
|
|
|
|
#define CENSUS_INVALID_STAT_ID 0 /* ID 0 is always invalid */ |
|
|
|
|
#define CENSUS_RPC_CLIENT_REQUESTS 1 /* Count of client requests sent. */ |
|
|
|
|
#define CENSUS_RPC_SERVER_REQUESTS 2 /* Count of server requests sent. */ |
|
|
|
|
#define CENSUS_RPC_CLIENT_ERRORS 3 /* Client error counts. */ |
|
|
|
|
#define CENSUS_RPC_SERVER_ERRORS 4 /* Server error counts. */ |
|
|
|
|
#define CENSUS_RPC_CLIENT_LATENCY 5 /* Client side request latency. */ |
|
|
|
|
#define CENSUS_RPC_SERVER_LATENCY 6 /* Server side request latency. */ |
|
|
|
|
|
|
|
|
|
#endif /* CENSUS_RESOURCE_ID_H */ |
|
|
|
|
#endif /* CENSUS_RPC_STAT_ID_H */ |