summaryrefslogtreecommitdiffstats
path: root/src/common/json/BalancerStructures.h
blob: bbf5c748eb3125513360c987f2f96b6dc1e403b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once

#include <string>

#include "include/types.h"

class JSONObj;

namespace ceph {
namespace messaging {
namespace balancer {
struct BalancerOffRequest {
  void dump(Formatter* f) const;
  void decode_json(JSONObj* obj);
};

struct BalancerStatusRequest {
  void dump(Formatter* f) const;
  void decode_json(JSONObj* obj);
};

struct BalancerStatusReply {
  bool active;
  std::string last_optimization_duration;
  std::string last_optimization_started;
  std::string mode;
  bool no_optimization_needed;
  std::string optimize_result;

  void dump(Formatter* f) const;
  void decode_json(JSONObj* obj);
};
}  // namespace balancer
}  // namespace messaging
}  // namespace ceph