-
Notifications
You must be signed in to change notification settings - Fork 259
Expand file tree
/
Copy pathRepoStats.ts
More file actions
97 lines (94 loc) · 3.27 KB
/
RepoStats.ts
File metadata and controls
97 lines (94 loc) · 3.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// Original file: ../../vendor/zoekt/grpc/protos/zoekt/webserver/v1/webserver.proto
import type { Long } from '@grpc/proto-loader';
/**
* RepoStats is a collection of statistics for a set of repositories.
*/
export interface RepoStats {
/**
* repos is used for aggregating the number of repositories.
*/
'repos'?: (number | string | Long);
/**
* shards is the total number of search shards.
*/
'shards'?: (number | string | Long);
/**
* documents holds the number of documents or files.
*/
'documents'?: (number | string | Long);
/**
* index_bytes is the amount of RAM used for index overhead.
*/
'index_bytes'?: (number | string | Long);
/**
* content_bytes is the amount of RAM used for raw content.
*/
'content_bytes'?: (number | string | Long);
/**
* new_lines_count is the number of newlines "\n" that appear in the zoekt
* indexed documents. This is not exactly the same as line count, since it
* will not include lines not terminated by "\n" (eg a file with no "\n", or
* a final line without "\n"). Note: Zoekt deduplicates documents across
* branches, so if a path has the same contents on multiple branches, there
* is only one document for it. As such that document's newlines is only
* counted once. See DefaultBranchNewLinesCount and AllBranchesNewLinesCount
* for counts which do not deduplicate.
*/
'new_lines_count'?: (number | string | Long);
/**
* default_branch_new_lines_count is the number of newlines "\n" in the default
* branch.
*/
'default_branch_new_lines_count'?: (number | string | Long);
/**
* other_branches_new_lines_count is the number of newlines "\n" in all branches
* except the default branch.
*/
'other_branches_new_lines_count'?: (number | string | Long);
}
/**
* RepoStats is a collection of statistics for a set of repositories.
*/
export interface RepoStats__Output {
/**
* repos is used for aggregating the number of repositories.
*/
'repos': (number);
/**
* shards is the total number of search shards.
*/
'shards': (number);
/**
* documents holds the number of documents or files.
*/
'documents': (number);
/**
* index_bytes is the amount of RAM used for index overhead.
*/
'index_bytes': (number);
/**
* content_bytes is the amount of RAM used for raw content.
*/
'content_bytes': (number);
/**
* new_lines_count is the number of newlines "\n" that appear in the zoekt
* indexed documents. This is not exactly the same as line count, since it
* will not include lines not terminated by "\n" (eg a file with no "\n", or
* a final line without "\n"). Note: Zoekt deduplicates documents across
* branches, so if a path has the same contents on multiple branches, there
* is only one document for it. As such that document's newlines is only
* counted once. See DefaultBranchNewLinesCount and AllBranchesNewLinesCount
* for counts which do not deduplicate.
*/
'new_lines_count': (number);
/**
* default_branch_new_lines_count is the number of newlines "\n" in the default
* branch.
*/
'default_branch_new_lines_count': (number);
/**
* other_branches_new_lines_count is the number of newlines "\n" in all branches
* except the default branch.
*/
'other_branches_new_lines_count': (number);
}