Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / rgw / rgw_usage.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3
4 #ifndef CEPH_RGW_USAGE_H
5 #define CEPH_RGW_USAGE_H
6
7 #include <string>
8 #include <map>
9
10 #include "common/Formatter.h"
11 #include "rgw_formats.h"
12
13 class RGWRados;
14
15
16 class RGWUsage
17 {
18 public:
19   static int show(RGWRados *store, rgw_user& uid, uint64_t start_epoch,
20                   uint64_t end_epoch, bool show_log_entries, bool show_log_sum,
21                   std::map<std::string, bool> *categories,
22                   RGWFormatterFlusher& flusher);
23
24   static int trim(RGWRados *store, rgw_user& uid, uint64_t start_epoch,
25                   uint64_t end_epoch);
26 };
27
28
29 #endif