Skip to content

Commit 895e829

Browse files
committed
Java: Add QLDoc for query predicates
1 parent c448767 commit 895e829

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

java/ql/src/Telemetry/AutomodelSinkModelMrvaQueries.ql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
private import java
77
private import AutomodelAlertSinkUtil
88

9+
/**
10+
* Holds if `alertCount` is the number of alerts for the query with ID `queryId` for which the
11+
* sinks correspond to the given `ai-generated` sink model.
12+
*/
913
query predicate sinkModelCountPerQuery(
1014
string queryId, int alertCount, string package, string type, boolean subtypes, string name,
1115
string signature, string input, string ext, string kind, string provenance
@@ -25,6 +29,10 @@ query predicate sinkModelCountPerQuery(
2529
)
2630
}
2731

32+
/**
33+
* Holds if `instanceCount` is the number of instances corresponding to the given `ai-generated`
34+
* sink model (as identified by the `package`, `name`, `input`, etc.).
35+
*/
2836
query predicate instanceCount(
2937
int instanceCount, string package, string type, boolean subtypes, string name, string signature,
3038
string input, string ext, string kind, string provenance

0 commit comments

Comments
 (0)