aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/metrics/documentdb_metrics_collection.h
blob: 8fa15dffc9d7840f2039a534a31a593251979ca0 (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
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include "documentdb_tagged_metrics.h"
#include "legacy_documentdb_metrics.h"

namespace proton {

/**
 * A collection of all the metrics for a document db (both tagged and no-tagged).
 */
class DocumentDBMetricsCollection
{
private:
    LegacyDocumentDBMetrics _metrics;
    DocumentDBTaggedMetrics _taggedMetrics;

public:
    DocumentDBMetricsCollection(const vespalib::string &docTypeName, size_t maxNumThreads);
    ~DocumentDBMetricsCollection();
    LegacyDocumentDBMetrics &getLegacyMetrics() { return _metrics; }
    DocumentDBTaggedMetrics &getTaggedMetrics() { return _taggedMetrics; }
};

} // namespace proton