summaryrefslogtreecommitdiffstats
path: root/src/mgr/Types.h
blob: ab90bbbe9acc4ed9c5773895464a94e4c6911791 (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
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab

#ifndef CEPH_MGR_TYPES_H
#define CEPH_MGR_TYPES_H

typedef int MetricQueryID;

typedef std::pair<uint64_t,uint64_t> PerformanceCounter;
typedef std::vector<PerformanceCounter> PerformanceCounters;

struct MetricListener {
  virtual ~MetricListener() {
  }

  virtual void handle_query_updated() = 0;
};

struct PerfCollector {
  MetricQueryID query_id;
  PerfCollector(MetricQueryID query_id)
    : query_id(query_id) {
  }
};

#endif // CEPH_MGR_TYPES_H