staticImmutableList<GroupResult>groupFindingsWithSource(SourceNamesourceName){try(SecurityCenterClientclient=SecurityCenterClient.create()){// SourceName sourceName = SourceName.of(/*organization=*/"123234324",/*source=*/// "423432321");GroupFindingsRequest.Builderrequest=GroupFindingsRequest.newBuilder().setParent(sourceName.toString()).setGroupBy("category");// Call the API.GroupFindingsPagedResponseresponse=client.groupFindings(request.build());// This creates one list for all findings. If your organization has a large number of// findings// this can cause out of memory issues. You can process them batches by returning// the Iterable returned response.iterateAll() directly.ImmutableList<GroupResult>results=ImmutableList.copyOf(response.iterateAll());System.out.println("Findings:");System.out.println(results);returnresults;}catch(IOExceptione){thrownewRuntimeException("Couldn't create client.",e);}}
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],[],[],[]]