static void constructTotalHitsGraph ( Map . Entry < String , LrProjectScenarioResults > scenarioResults , JSONObject scenarioGraphData ) { Map < Integer , WholeRunResult > totalHitsResults = scenarioResults . getValue ( ) . getTotalHitsResults ( ) ; JSONObject totalHitsGraphSet = extractWholeRunSlaResult ( totalHitsResults , "Hits" ) ; if ( ! totalHitsGraphSet . getJSONArray ( LABELS ) . isEmpty ( ) ) { totalHitsGraphSet . put ( TITLE , "Total Hits" ) ; totalHitsGraphSet . put ( X_AXIS_TITLE , "Build number" ) ; totalHitsGraphSet . put ( Y_AXIS_TITLE , "Hits" ) ; totalHitsGraphSet . put ( DESCRIPTION , "Displays the number of hits made on the Web server by Vusers " + "during each second of the load test. This graph helps you evaluate the amount of load " + "Vusers" + " " + "generate, in terms of the number of hits." ) ; scenarioGraphData . put ( "totalHits" , totalHitsGraphSet ) ; } }
Construct total hits graph .