blob: d84855f820475b061a800518f794363e4fdb5935 (
plain) (
blame)
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
36
37
38
39
|
#pragma once
#include <library/cpp/threading/future/future.h>
#include <util/generic/ptr.h>
#include <util/generic/string.h>
#include <util/generic/vector.h>
namespace NYql {
struct TStatUploadOptions {
TString ProviderName;
TString SessionId;
ui32 PublicId;
TString Cluster;
TString Table;
TString Scale;
TVector<TString> ReplaceMask;
TString YtServer;
TString YtTable;
TString YtTx;
TString YtToken;
TMaybe<TString> YtPool;
};
class IStatUploader : public TThrRefBase {
public:
using TPtr = TIntrusivePtr<IStatUploader>;
virtual NThreading::TFuture<void> Upload(TStatUploadOptions&& options) = 0;
virtual ~IStatUploader() = default;
};
} // namespace NYql
|