]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/InfoAction.h
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 /* DEBUG: section 16 Cache Manager API */
11 #ifndef SQUID_MGR_INFO_ACTION_H
12 #define SQUID_MGR_INFO_ACTION_H
14 #include "mgr/Action.h"
15 #include "StoreStats.h"
20 /// store general runtime information
26 InfoActionData
& operator += (const InfoActionData
& stats
);
29 struct timeval squid_start
;
30 struct timeval current_time
;
31 double client_http_clients
;
32 double client_http_requests
;
35 double icp_replies_queued
;
37 double htcp_pkts_recv
;
38 double htcp_pkts_sent
;
40 double request_failure_ratio
;
41 double avg_client_http_requests
;
42 double avg_icp_messages
;
45 double request_hit_ratio5
;
46 double request_hit_ratio60
;
47 double byte_hit_ratio5
;
48 double byte_hit_ratio60
;
49 double request_hit_mem_ratio5
;
50 double request_hit_mem_ratio60
;
51 double request_hit_disk_ratio5
;
52 double request_hit_disk_ratio60
;
54 StoreInfoStats store
; ///< disk and memory cache statistics
56 double unlink_requests
;
57 double http_requests5
;
58 double http_requests60
;
60 double cache_misses60
;
65 double not_modified_replies5
;
66 double not_modified_replies60
;
78 #if HAVE_MSTATS && HAVE_GNUMALLOC_H
79 double ms_bytes_total
;
82 double total_accounted
;
83 double gb_saved_count
;
84 double gb_freed_count
;
94 /// implement aggregated 'info' action
95 class InfoAction
: public Action
98 InfoAction(const CommandPointer
&cmd
);
101 static Pointer
Create(const CommandPointer
&cmd
);
103 virtual void add(const Action
& action
);
104 virtual void respond(const Request
& request
);
105 virtual void pack(Ipc::TypedMsgHdr
& msg
) const;
106 virtual void unpack(const Ipc::TypedMsgHdr
& msg
);
110 virtual void collect();
111 virtual void dump(StoreEntry
* entry
);
119 #endif /* SQUID_MGR_INFO_ACTION_H */