]>
Commit | Line | Data |
---|---|---|
7c673cae | 1 | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- |
9f95a23c | 2 | // vim: ts=8 sw=2 smarttab ft=cpp |
7c673cae FG |
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" | |
b3b6e05e | 11 | #include "common/dout.h" |
7c673cae | 12 | #include "rgw_formats.h" |
f67539c2 | 13 | #include "rgw_user.h" |
7c673cae | 14 | |
20effc67 | 15 | namespace rgw { namespace sal { class Store; } } |
7c673cae FG |
16 | |
17 | ||
18 | class RGWUsage | |
19 | { | |
20 | public: | |
20effc67 TL |
21 | static int show(const DoutPrefixProvider *dpp, rgw::sal::Store* store, |
22 | rgw::sal::User* user , rgw::sal::Bucket* bucket, | |
23 | uint64_t start_epoch, uint64_t end_epoch, bool show_log_entries, | |
24 | bool show_log_sum, | |
11fdf7f2 | 25 | std::map<std::string, bool> *categories, RGWFormatterFlusher& flusher); |
7c673cae | 26 | |
20effc67 TL |
27 | static int trim(const DoutPrefixProvider *dpp, rgw::sal::Store* store, |
28 | rgw::sal::User* user , rgw::sal::Bucket* bucket, | |
29 | uint64_t start_epoch, uint64_t end_epoch); | |
11fdf7f2 | 30 | |
20effc67 | 31 | static int clear(const DoutPrefixProvider *dpp, rgw::sal::Store* store); |
7c673cae FG |
32 | }; |
33 | ||
34 | ||
35 | #endif |