Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
3.0 KiB

  1. /*++
  2. Copyright (c) 1998-2000 Microsoft Corporation
  3. Module Name:
  4. httpctrs.c
  5. Abstract:
  6. This file contains array descriptions of counters
  7. that are needed for handling worker processes counters.
  8. Author:
  9. Emily Kruglick (EmilyK) 19-Sept-2000
  10. Revision History:
  11. --*/
  12. #include "precomp.h"
  13. //
  14. // These are used by WAS to determine the size of the data
  15. // that each counter has in the structure above and it's offset.
  16. //
  17. HTTP_PROP_DESC aIISULGlobalDescription[] =
  18. {
  19. { RTL_FIELD_SIZE(HTTP_GLOBAL_COUNTERS, CurrentUrisCached),
  20. FIELD_OFFSET(HTTP_GLOBAL_COUNTERS, CurrentUrisCached),
  21. FALSE },
  22. { RTL_FIELD_SIZE(HTTP_GLOBAL_COUNTERS, TotalUrisCached),
  23. FIELD_OFFSET(HTTP_GLOBAL_COUNTERS, TotalUrisCached),
  24. FALSE },
  25. { RTL_FIELD_SIZE(HTTP_GLOBAL_COUNTERS, UriCacheHits),
  26. FIELD_OFFSET(HTTP_GLOBAL_COUNTERS, UriCacheHits),
  27. FALSE },
  28. { RTL_FIELD_SIZE(HTTP_GLOBAL_COUNTERS, UriCacheMisses),
  29. FIELD_OFFSET(HTTP_GLOBAL_COUNTERS, UriCacheMisses),
  30. FALSE },
  31. { RTL_FIELD_SIZE(HTTP_GLOBAL_COUNTERS, UriCacheFlushes),
  32. FIELD_OFFSET(HTTP_GLOBAL_COUNTERS, UriCacheFlushes),
  33. FALSE },
  34. { RTL_FIELD_SIZE(HTTP_GLOBAL_COUNTERS, TotalFlushedUris),
  35. FIELD_OFFSET(HTTP_GLOBAL_COUNTERS, TotalFlushedUris),
  36. FALSE }
  37. };
  38. //
  39. // Used by WAS to figure out offset information and size
  40. // of counter field in the above structure.
  41. //
  42. HTTP_PROP_DESC aIISULSiteDescription[] =
  43. {
  44. { RTL_FIELD_SIZE(HTTP_SITE_COUNTERS, BytesSent),
  45. FIELD_OFFSET(HTTP_SITE_COUNTERS, BytesSent),
  46. TRUE },
  47. { RTL_FIELD_SIZE(HTTP_SITE_COUNTERS, BytesReceived),
  48. FIELD_OFFSET(HTTP_SITE_COUNTERS, BytesReceived),
  49. TRUE },
  50. { RTL_FIELD_SIZE(HTTP_SITE_COUNTERS, BytesTransfered),
  51. FIELD_OFFSET(HTTP_SITE_COUNTERS, BytesTransfered),
  52. TRUE },
  53. { RTL_FIELD_SIZE(HTTP_SITE_COUNTERS, CurrentConns),
  54. FIELD_OFFSET(HTTP_SITE_COUNTERS, CurrentConns),
  55. FALSE },
  56. { RTL_FIELD_SIZE(HTTP_SITE_COUNTERS, MaxConnections),
  57. FIELD_OFFSET(HTTP_SITE_COUNTERS, MaxConnections),
  58. FALSE },
  59. { RTL_FIELD_SIZE(HTTP_SITE_COUNTERS, ConnAttempts),
  60. FIELD_OFFSET(HTTP_SITE_COUNTERS, ConnAttempts),
  61. TRUE },
  62. { RTL_FIELD_SIZE(HTTP_SITE_COUNTERS, GetReqs),
  63. FIELD_OFFSET(HTTP_SITE_COUNTERS, GetReqs),
  64. TRUE },
  65. { RTL_FIELD_SIZE(HTTP_SITE_COUNTERS, HeadReqs),
  66. FIELD_OFFSET(HTTP_SITE_COUNTERS, HeadReqs),
  67. TRUE },
  68. { RTL_FIELD_SIZE(HTTP_SITE_COUNTERS, AllReqs),
  69. FIELD_OFFSET(HTTP_SITE_COUNTERS, AllReqs),
  70. TRUE },
  71. { RTL_FIELD_SIZE(HTTP_SITE_COUNTERS, MeasuredIoBandwidthUsage),
  72. FIELD_OFFSET(HTTP_SITE_COUNTERS, MeasuredIoBandwidthUsage),
  73. TRUE },
  74. { RTL_FIELD_SIZE(HTTP_SITE_COUNTERS, CurrentBlockedBandwidthBytes),
  75. FIELD_OFFSET(HTTP_SITE_COUNTERS, CurrentBlockedBandwidthBytes),
  76. TRUE },
  77. { RTL_FIELD_SIZE(HTTP_SITE_COUNTERS, TotalBlockedBandwidthBytes),
  78. FIELD_OFFSET(HTTP_SITE_COUNTERS, TotalBlockedBandwidthBytes),
  79. TRUE }
  80. };