aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/common/hostreporter/versionreporter.cpp
blob: 379db12ebac7d2959a6cd62a979f65b690667e43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "versionreporter.h"
#include <vespa/vespalib/component/vtag.h>

namespace storage {

namespace {
using Object = vespalib::JsonStream::Object;
using End = vespalib::JsonStream::End;
}
void VersionReporter::report(vespalib::JsonStream& jsonreport) {
    jsonreport << "vtag" << Object()
               << "version" << vespalib::Vtag::currentVersion.toString()
               << End();
}

} /* namespace storage */