1 //===--- MonitoringService.proto - CLangd Remote index monitoring service -===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 package clang.clangd.remote.v1;
13 message MonitoringInfoRequest {}
14 message MonitoringInfoReply {
15 // Time since the server started (in seconds).
16 optional uint64 uptime_seconds = 1;
17 // Time since the index was built on the indexing machine.
18 optional uint64 index_age_seconds = 2;
19 // ID of the indexed commit in Version Control System.
20 optional string index_commit_hash = 3;
21 // URL to the index file.
22 optional string index_link = 4;
26 rpc MonitoringInfo(MonitoringInfoRequest) returns (MonitoringInfoReply) {}