@@ -286,51 +286,53 @@ func (fr FlushReason) Generate(rand *rand.Rand, size int) reflect.Value {
286286
287287func StatsFromProto (p * webserverv1.Stats ) Stats {
288288 return Stats {
289- ContentBytesLoaded : p .GetContentBytesLoaded (),
290- IndexBytesLoaded : p .GetIndexBytesLoaded (),
291- Crashes : int (p .GetCrashes ()),
292- Duration : p .GetDuration ().AsDuration (),
293- FileCount : int (p .GetFileCount ()),
294- ShardFilesConsidered : int (p .GetShardFilesConsidered ()),
295- FilesConsidered : int (p .GetFilesConsidered ()),
296- FilesLoaded : int (p .GetFilesLoaded ()),
297- FilesSkipped : int (p .GetFilesSkipped ()),
298- ShardsScanned : int (p .GetShardsScanned ()),
299- ShardsSkipped : int (p .GetShardsSkipped ()),
300- ShardsSkippedFilter : int (p .GetShardsSkippedFilter ()),
301- MatchCount : int (p .GetMatchCount ()),
302- NgramMatches : int (p .GetNgramMatches ()),
303- NgramLookups : int (p .GetNgramLookups ()),
304- Wait : p .GetWait ().AsDuration (),
305- MatchTreeConstruction : p .GetMatchTreeConstruction ().AsDuration (),
306- MatchTreeSearch : p .GetMatchTreeSearch ().AsDuration (),
307- RegexpsConsidered : int (p .GetRegexpsConsidered ()),
308- FlushReason : FlushReasonFromProto (p .GetFlushReason ()),
289+ ContentBytesLoaded : p .GetContentBytesLoaded (),
290+ IndexBytesLoaded : p .GetIndexBytesLoaded (),
291+ Crashes : int (p .GetCrashes ()),
292+ Duration : p .GetDuration ().AsDuration (),
293+ FileCount : int (p .GetFileCount ()),
294+ ShardFilesConsidered : int (p .GetShardFilesConsidered ()),
295+ FilesConsidered : int (p .GetFilesConsidered ()),
296+ FilesLoaded : int (p .GetFilesLoaded ()),
297+ FilesSkipped : int (p .GetFilesSkipped ()),
298+ FilesSkippedDueToCancellation : int (p .GetFilesSkippedDueToCancellation ()),
299+ ShardsScanned : int (p .GetShardsScanned ()),
300+ ShardsSkipped : int (p .GetShardsSkipped ()),
301+ ShardsSkippedFilter : int (p .GetShardsSkippedFilter ()),
302+ MatchCount : int (p .GetMatchCount ()),
303+ NgramMatches : int (p .GetNgramMatches ()),
304+ NgramLookups : int (p .GetNgramLookups ()),
305+ Wait : p .GetWait ().AsDuration (),
306+ MatchTreeConstruction : p .GetMatchTreeConstruction ().AsDuration (),
307+ MatchTreeSearch : p .GetMatchTreeSearch ().AsDuration (),
308+ RegexpsConsidered : int (p .GetRegexpsConsidered ()),
309+ FlushReason : FlushReasonFromProto (p .GetFlushReason ()),
309310 }
310311}
311312
312313func (s * Stats ) ToProto () * webserverv1.Stats {
313314 return & webserverv1.Stats {
314- ContentBytesLoaded : s .ContentBytesLoaded ,
315- IndexBytesLoaded : s .IndexBytesLoaded ,
316- Crashes : int64 (s .Crashes ),
317- Duration : durationpb .New (s .Duration ),
318- FileCount : int64 (s .FileCount ),
319- ShardFilesConsidered : int64 (s .ShardFilesConsidered ),
320- FilesConsidered : int64 (s .FilesConsidered ),
321- FilesLoaded : int64 (s .FilesLoaded ),
322- FilesSkipped : int64 (s .FilesSkipped ),
323- ShardsScanned : int64 (s .ShardsScanned ),
324- ShardsSkipped : int64 (s .ShardsSkipped ),
325- ShardsSkippedFilter : int64 (s .ShardsSkippedFilter ),
326- MatchCount : int64 (s .MatchCount ),
327- NgramMatches : int64 (s .NgramMatches ),
328- NgramLookups : int64 (s .NgramLookups ),
329- Wait : durationpb .New (s .Wait ),
330- MatchTreeConstruction : durationpb .New (s .MatchTreeConstruction ),
331- MatchTreeSearch : durationpb .New (s .MatchTreeSearch ),
332- RegexpsConsidered : int64 (s .RegexpsConsidered ),
333- FlushReason : s .FlushReason .ToProto (),
315+ ContentBytesLoaded : s .ContentBytesLoaded ,
316+ IndexBytesLoaded : s .IndexBytesLoaded ,
317+ Crashes : int64 (s .Crashes ),
318+ Duration : durationpb .New (s .Duration ),
319+ FileCount : int64 (s .FileCount ),
320+ ShardFilesConsidered : int64 (s .ShardFilesConsidered ),
321+ FilesConsidered : int64 (s .FilesConsidered ),
322+ FilesLoaded : int64 (s .FilesLoaded ),
323+ FilesSkipped : int64 (s .FilesSkipped ),
324+ FilesSkippedDueToCancellation : int64 (s .FilesSkippedDueToCancellation ),
325+ ShardsScanned : int64 (s .ShardsScanned ),
326+ ShardsSkipped : int64 (s .ShardsSkipped ),
327+ ShardsSkippedFilter : int64 (s .ShardsSkippedFilter ),
328+ MatchCount : int64 (s .MatchCount ),
329+ NgramMatches : int64 (s .NgramMatches ),
330+ NgramLookups : int64 (s .NgramLookups ),
331+ Wait : durationpb .New (s .Wait ),
332+ MatchTreeConstruction : durationpb .New (s .MatchTreeConstruction ),
333+ MatchTreeSearch : durationpb .New (s .MatchTreeSearch ),
334+ RegexpsConsidered : int64 (s .RegexpsConsidered ),
335+ FlushReason : s .FlushReason .ToProto (),
334336 }
335337}
336338
0 commit comments