Skip to content

Commit ace4b79

Browse files
authored
add retrieveTotalReportWithExcludes() to fusionauth client (#164)
1 parent 6b015bb commit ace4b79

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/main/java/io/fusionauth/client/FusionAuthClient.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4076,6 +4076,20 @@ public ClientResponse<TotalsReportResponse, Void> retrieveTotalReport() {
40764076
.go();
40774077
}
40784078

4079+
/**
4080+
* Retrieves the totals report. This allows excluding applicationTotals from the report. An empty list will include the applicationTotals.
4081+
*
4082+
* @param excludes List of fields to exclude in the response. Currently only allows applicationTotals.
4083+
* @return The ClientResponse object.
4084+
*/
4085+
public ClientResponse<TotalsReportResponse, Void> retrieveTotalReportWithExcludes(List<String> excludes) {
4086+
return start(TotalsReportResponse.class, Void.TYPE)
4087+
.uri("/api/report/totals")
4088+
.urlParameter("excludes", excludes)
4089+
.get()
4090+
.go();
4091+
}
4092+
40794093
/**
40804094
* Retrieve two-factor recovery codes for a user.
40814095
*

0 commit comments

Comments
 (0)