Skip to content

Commit 1f1059b

Browse files
committed
C#: Add telemetry query for supported sources.
1 parent a7ece69 commit 1f1059b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* @name Supported sources in external libraries
3+
* @description A list of 3rd party APIs detected as sources. Excludes test and generated code.
4+
* @kind metric
5+
* @tags summary
6+
* @id csharp/telemetry/supported-external-api-sources
7+
*/
8+
9+
import csharp
10+
import ExternalAPI
11+
12+
from ExternalAPI api, int usages
13+
where
14+
not api.isUninteresting() and
15+
api.isSource() and
16+
usages = strictcount(Call c | c.getTarget() = api)
17+
select api.getInfo() as info, usages order by usages desc

0 commit comments

Comments
 (0)