Fledge
An open source edge computing platform for industrial users
storage_stats.h
1 #ifndef _STORAGE_STATS_H
2 #define _STORAGE_STATS_H
3 /*
4  * Fledge storage service.
5  *
6  * Copyright (c) 2017 OSisoft, LLC
7  *
8  * Released under the Apache 2.0 Licence
9  *
10  * Author: Mark Riddoch
11  */
12 #include <json_provider.h>
13 #include <string>
14 
15 class StorageStats : public JSONProvider {
16  public:
17  StorageStats();
18  void asJSON(std::string &) const;
19  unsigned int commonInsert;
20  unsigned int commonSimpleQuery;
21  unsigned int commonQuery;
22  unsigned int commonUpdate;
23  unsigned int commonDelete;
24  unsigned int readingAppend;
25  unsigned int readingFetch;
26  unsigned int readingQuery;
27  unsigned int readingPurge;
28 };
29 #endif
Definition: json_provider.h:14
Definition: storage_stats.h:15
StorageStats()
Construct the statistics class for the storage service.
Definition: storage_stats.cpp:19
void asJSON(std::string &) const
Serialise the statistics as JSON.
Definition: storage_stats.cpp:29