Changeset 9625 for branches/HiveStatistics
- Timestamp:
- 06/13/13 17:50:00 (12 years ago)
- Location:
- branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3
- Files:
-
- 3 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/App_Start/BundleConfig.cs
r9617 r9625 23 23 24 24 namespace HeuristicLab.Services.Hive.Statistics { 25 public class BundleConfig {25 public static class BundleConfig { 26 26 public static void RegisterBundles(BundleCollection bundles) { 27 27 bundles.Add(new ScriptBundle("~/bundles/jquery").Include( … … 56 56 57 57 bundles.Add(new ScriptBundle("~/Scripts/jqPlot/jquery.jqplot").Include( 58 "~/Scripts/jqPlot/jquery.jqplot.js")); 58 "~/Scripts/jqPlot/jquery.jqplot.js", 59 "~/Scripts/jqPlot/plugins/jqplot.highlighter.js", 60 "~/Scripts/jqPlot/plugins/jqplot.dateAxisRenderer.js", 61 "~/Scripts/jqPlot/plugins/jqplot.cursor.js")); 59 62 60 63 bundles.Add(new StyleBundle("~/Styles/jqPlot/jquery.jqplot").Include( -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/App_Start/FilterConfig.cs
r9589 r9625 23 23 24 24 namespace HeuristicLab.Services.Hive.Statistics { 25 public class FilterConfig {25 public static class FilterConfig { 26 26 public static void RegisterGlobalFilters(GlobalFilterCollection filters) { 27 27 filters.Add(new HandleErrorAttribute()); -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/App_Start/RouteConfig.cs
r9589 r9625 24 24 25 25 namespace HeuristicLab.Services.Hive.Statistics { 26 public class RouteConfig {26 public static class RouteConfig { 27 27 public static void RegisterRoutes(RouteCollection routes) { 28 28 routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Content/Site.css
r9604 r9625 184 184 border: 1px solid #CCC; 185 185 } 186 187 .charts { 188 font-size: 1.5em; 189 } 190 191 .charts > div { 192 height: 300px; 193 margin-top: 15px; 194 margin-bottom: 5px; 195 margin-left: 10px; 196 margin-right: 20px; 197 } -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Controllers/HomeController.cs
r9617 r9625 21 21 22 22 using System; 23 using System.Collections.Generic;24 23 using System.Linq; 25 using System.Web.Helpers;26 24 using System.Web.Mvc; 27 25 using HeuristicLab.Services.Hive.DataAccess; … … 71 69 throw new Exception(); 72 70 } 73 74 public ActionResult Test() {75 var data = new Dictionary<string, float>76 {77 {"test", 10.023f},78 {"test2", 20.020f},79 {"test3", 19.203f},80 {"test4", 4.039f},81 {"test5", 5.343f}82 };83 84 var chart = new Chart(600, 400)85 .AddTitle("Testchart")86 .AddSeries(87 name: "13456",88 chartType: "Area",89 xValue: new[] { 1, 2, 3, 4, 5 },90 yValues: new[] { 10, 20, 35, 70, 50 }91 );92 93 chart.Write("png");94 95 return null;96 }97 71 } 98 72 } -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/HeuristicLab.Services.Hive.Statistics-3.3.csproj
r9617 r9625 108 108 <Compile Include="App_Start\RouteConfig.cs" /> 109 109 <Compile Include="Controllers\AccountController.cs" /> 110 <Compile Include="Controllers\ChartDataController.cs" /> 110 111 <Compile Include="Controllers\HomeController.cs" /> 112 <Compile Include="Helper\HtmlChartHelper.cs" /> 111 113 <Compile Include="Models\OverallStatistics.cs" /> 112 114 <Compile Include="Global.asax.cs"> … … 116 118 <Compile Include="Models\AccountModels.cs" /> 117 119 <Compile Include="Properties\AssemblyInfo.cs" /> 120 <Content Include="App_Code\ChartHelper.cshtml" /> 118 121 <None Include="Properties\AssemblyInfo.cs.frame" /> 119 122 </ItemGroup> -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Views/Home/Index.cshtml
r9617 r9625 18 18 </tr> 19 19 <tr> 20 <td>Used Cores</td> 21 <td>@Model.CurrentlyUsedCores</td> 22 </tr> 23 <tr> 20 24 <td>System-Wide Waiting Tasks</td> 21 25 <td>@Model.CurrentlyJobsWaiting</td> 22 </tr>23 <tr>24 <td>Used Cores</td>25 <td>@Model.CurrentlyUsedCores</td>26 26 </tr> 27 27 <tr> … … 36 36 </section> 37 37 38 <section> 39 <div id="chartdiv" style="height:400px;width:300px;"></div> 38 <section class="charts"> 39 <div id="AverageCpuUtilization"></div> 40 <div id="UsedCores"></div> 41 <div id="UsedMemory"></div> 40 42 </section> 41 43 42 44 @section Styles { 43 @Styles.Render("~/S cripts/jqPlot/jquery.jqplot")45 @Styles.Render("~/Styles/jqPlot/jquery.jqplot") 44 46 } 45 47 46 48 @section Scripts { 47 49 @Scripts.Render("~/Scripts/jqPlot/jquery.jqplot") 48 <script> 49 $.jqplot('chartdiv', [[[1, 2], [3, 5.12], [5, 13.1], [7, 33.6], [9, 85.9], [11, 219.9]]]); 50 </script> 50 @ChartHelper.AjaxDataRenderer() 51 52 @ChartHelper.LineChartTime( 53 "AverageCpuUtilization", 54 Url.Action("AverageCpuUtilization", "ChartData"), 55 title: "Avg. CPU Utilization History of all Slaves", 56 axisYFormat: "%.2f%%", 57 minY: 0, maxY: 100) 58 59 @ChartHelper.LineChartTime( 60 "UsedCores", 61 Url.Action("UsedCores", "ChartData"), 62 title: "Cores / Used Cores", 63 minY: 0) 64 65 @ChartHelper.LineChartTime( 66 "UsedMemory", 67 Url.Action("UsedMemory", "ChartData"), 68 title: "Memory / Used Memory", 69 minY: 0) 51 70 }
Note: See TracChangeset
for help on using the changeset viewer.