ServiceTimesAction.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3  *
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.
7  */
8 
9 /* DEBUG: section 16 Cache Manager API */
10 
11 #ifndef SQUID_SRC_MGR_SERVICETIMESACTION_H
12 #define SQUID_SRC_MGR_SERVICETIMESACTION_H
13 
14 #include "mgr/Action.h"
15 
16 namespace Mgr
17 {
18 
21 {
22 public:
23  enum { seriesSize = 19 };
24 
25 public:
28 
29 public:
44  unsigned int count;
45 };
46 
49 {
50 protected:
52 
53 public:
54  static Pointer Create(const CommandPointer &cmd);
55  /* Action API */
56  void add(const Action& action) override;
57  void pack(Ipc::TypedMsgHdr& msg) const override;
58  void unpack(const Ipc::TypedMsgHdr& msg) override;
59 
60 protected:
61  /* Action API */
62  void collect() override;
63  void dump(StoreEntry* entry) override;
64 
65 private:
67 };
68 
69 } // namespace Mgr
70 
71 #endif /* SQUID_SRC_MGR_SERVICETIMESACTION_H */
72 
ServiceTimesActionData & operator+=(const ServiceTimesActionData &stats)
implement aggregated 'service_times' action
double cache_misses60[seriesSize]
void add(const Action &action) override
incrementally merge in remote information (of the same action type)
double dns_lookups5[seriesSize]
void dump(StoreEntry *entry) override
double near_hits60[seriesSize]
store service times for 5 and 60 min
const CommandPointer cmd
the command that caused this action
Definition: Action.h:90
double cache_hits5[seriesSize]
void unpack(const Ipc::TypedMsgHdr &msg) override
unpack action info from the message received by Coordinator
double cache_misses5[seriesSize]
ServiceTimesActionData data
double cache_hits60[seriesSize]
static Pointer Create(const CommandPointer &cmd)
ServiceTimesAction(const CommandPointer &cmd)
double http_requests5[seriesSize]
double not_modified_replies60[seriesSize]
double icp_queries5[seriesSize]
double not_modified_replies5[seriesSize]
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:34
double dns_lookups60[seriesSize]
double icp_queries60[seriesSize]
void pack(Ipc::TypedMsgHdr &msg) const override
pack collected action info into a message to be sent to Coordinator
double http_requests60[seriesSize]
void collect() override
calculate and keep local action-specific information
Cache Manager API.
Definition: Action.h:20

 

Introduction

Documentation

Support

Miscellaneous