2016-01-20 21:32:01 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-06-06 17:18:32 +00:00
|
|
|
#include <ext/shared_ptr_helper.h>
|
2018-07-24 14:28:56 +00:00
|
|
|
#include <Storages/System/IStorageSystemOneBlock.h>
|
2016-01-20 21:32:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2016-12-08 02:49:04 +00:00
|
|
|
class Context;
|
|
|
|
|
|
|
|
|
2017-04-16 15:00:33 +00:00
|
|
|
/** Implements `metrics` system table, which provides information about the operation of the server.
|
2017-06-06 18:36:13 +00:00
|
|
|
*/
|
2018-07-24 14:28:56 +00:00
|
|
|
class StorageSystemMetrics : public ext::shared_ptr_helper<StorageSystemMetrics>, public IStorageSystemOneBlock<StorageSystemMetrics>
|
2016-01-20 21:32:01 +00:00
|
|
|
{
|
|
|
|
public:
|
2017-04-01 07:20:54 +00:00
|
|
|
std::string getName() const override { return "SystemMetrics"; }
|
2016-01-20 21:32:01 +00:00
|
|
|
|
2018-07-24 14:28:56 +00:00
|
|
|
static NamesAndTypesList getNamesAndTypes();
|
2016-01-20 21:32:01 +00:00
|
|
|
|
2017-11-04 03:20:18 +00:00
|
|
|
protected:
|
2018-07-24 14:28:56 +00:00
|
|
|
using IStorageSystemOneBlock::IStorageSystemOneBlock;
|
|
|
|
|
|
|
|
void fillData(MutableColumns & res_columns, const Context & context, const SelectQueryInfo & query_info) const override;
|
2016-01-20 21:32:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|