aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/distributor/update_metric_set.h
blob: ad39f8e93cc8ef46d9d983728e5b115022adfc4b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include "persistence_operation_metric_set.h"

namespace storage::distributor {

class UpdateMetricSet : public PersistenceOperationMetricSet {
public:
    metrics::LongCountMetric diverging_timestamp_updates;
    metrics::LongCountMetric fast_path_restarts;

    explicit UpdateMetricSet(MetricSet* owner = nullptr);
    ~UpdateMetricSet() override;

    MetricSet* clone(std::vector<Metric::UP>& ownerList, CopyType copyType,
                     MetricSet* owner, bool includeUnused) const override;
};

} // storage