1//===--- MonitoringService.proto - CLangd Remote index monitoring service -===// 2// 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 6// 7//===----------------------------------------------------------------------===// 8 9syntax = "proto2"; 10 11package clang.clangd.remote.v1; 12 13message MonitoringInfoRequest {} 14message 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; 23} 24 25service Monitor { 26 rpc MonitoringInfo(MonitoringInfoRequest) returns (MonitoringInfoReply) {} 27} 28