Open La0 opened 5 years ago
Maybe we could use some monitoring service, could be useful across different projects.
We already have the history endpoint that can be filtered by analyzer and check.
For example, to view the list of issues on a day-by-day basis for clang-tidy on diagnostic error, we can use the following request https://api.code-review.moz.tools/v1/check/history/?analyzer=source-test-clang-tidy&check=clang-diagnostic-error&since=2022-07-22
This will provide the payload
[
{"date":"2022-07-22","total":193},
{"date":"2022-07-23","total":3},
...
]
We can also view the results through the frontend
The backend can lists the nb of issues detected per analyzers on the last month, week, day, and detect a trend (or even a zero value).
This could be exposed as a simple read-only api endpoint and consumed by a Taskcluster regular hook that would send email, but also a frontend displaying a small graph.