Commit graph

15 commits

Author SHA1 Message Date
Erik Ogenvik
f87233cd53 Clean up code. 2018-10-30 19:35:57 +01:00
Erik Ogenvik
04fe84821e Use proper singletons everywhere.
I.e. ones where the lifespan is fully controlled.
The only exception is Options, since it's accessed during static
initialization.
2018-08-04 18:01:20 +02:00
Erik Ogenvik
e7fa53214b Use nullptr instead of NULL. 2018-02-06 13:45:11 +01:00
Erik Ogenvik
a93bd55199 Add metrics for operations queue size. 2015-04-05 22:04:30 +02:00
Erik Ogenvik
e932f3464c Added http endpoints for numerical monitors.
This is useful for time series databases which only operates on
numerics.
2015-04-05 21:53:28 +02:00
Sean Ryan
1494e74e02 Fix a few small issues with updates.
Convert readVariable to const and adjust accordingly.
Adjust tests and callers of readVariable accordingly.
2014-03-25 13:39:38 -04:00
Sean Ryan
7df22f14e8 Add readVariable method to monitors.
Inquiries into the monitors, that is variables that
have a monitor attached to them, can be done on a
individual key, rather than getting the entire
lot and parsing them.
2014-03-24 16:37:15 -04:00
Olek Wojnar
7f9ff2246d Remove CVS $Id tags
The legacy tags are causing build issues in Debian.
2013-07-15 20:31:59 +02:00
Alistair Riddoch
7b5fb4bc60 No need to check for null pointer before deleting 2012-05-14 11:49:12 +01:00
Alistair Riddoch
d52550a9e3 Rename Monitor class tree to Variable for clarity. 2009-09-03 00:38:50 +01:00
Alistair Riddoch
958babd997 Add new Variable files to the build, remove copied code, and fix up includes. 2009-09-03 00:27:59 +01:00
Alistair Riddoch
a1a06b6335 Add dustructor to clean up monitors 2009-05-02 20:03:08 +01:00
Al Riddoch
d1695c9617 2008-09-01 Al Riddoch <alriddoch@googlemail.com>
* common/Monitors.cpp, common/Monitors.h: Add dynamic variable
	  monitor functionality, allowing arbitrary variables to appear
	  in the monitors output.

	* server/ServerRouting.cpp: Use the new monitor functionality for
	  variables prebviously pushed to monitors once.

	* server/WorldRouter.cpp, server/WorldRouter.h: Add a count of
	  in-game entities. Expose it to the monitors.
2008-09-01 16:14:42 +00:00
Al Riddoch
bcaf6dc7fd 2008-08-30 Al Riddoch <alriddoch@googlemail.com>
* common/Monitors.cpp: Remove the testing values for monitors.

	* server/ServerRouting.cpp: Add a bunch of server constants to the
	  monitors.
2008-08-30 16:52:01 +00:00
Al Riddoch
de4f241e4e 2008-08-29 Al Riddoch <alriddoch@googlemail.com>
* common/Monitors.cpp, common/Monitors.h: Add a new class to handle
	  storing key value pairs useful in monitoring the state of a server.

	* server/HttpCache.cpp, server/HttpCache.h: Add a function argument
	  to allow the content type to be controlled in the header.
	  Expose the Monitors class under /monitors URL.
2008-08-30 16:29:11 +00:00