]> git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/rgw_usage.h
import quincy beta 17.1.0
[ceph.git] / 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 ft=cpp
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 "common/dout.h"
12 #include "rgw_formats.h"
13 #include "rgw_user.h"
14
15 namespace rgw { namespace sal { class Store; } }
16
17
18 class RGWUsage
19 {
20 public:
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,
25 std::map<std::string, bool> *categories, RGWFormatterFlusher& flusher);
26
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);
30
31 static int clear(const DoutPrefixProvider *dpp, rgw::sal::Store* store);
32 };
33
34
35 #endif