diff --git a/src/Opserver.Web/Controllers/GraphController.Spark.cs b/src/Opserver.Web/Controllers/GraphController.Spark.cs index 0c5b534a..76297d3f 100644 --- a/src/Opserver.Web/Controllers/GraphController.Spark.cs +++ b/src/Opserver.Web/Controllers/GraphController.Spark.cs @@ -167,6 +167,18 @@ public async Task VolumeSpark(string direction, string id, string return SparkSVG(points, Convert.ToInt64(points.Max(getter)), p => getter(p)); } + [OnlyAllow(DashboardRoles.Viewer)] + [ResponseCache(Duration = SparkGraphDuration, Location = ResponseCacheLocation.Client)] + [Route("graph/volumePerformance/spark/all"), AlsoAllow(Roles.InternalRequest)] + public Task VolumeSparkSvgAll() + { + return SparkSvgAll( + "Volume", + getPoints: n => n.GetVolumePerformanceUtilization(SparkStart, null, SparkPoints), + getMax: (_, points) => Convert.ToInt64(points.Max(p => p.Value + p.BottomValue).GetValueOrDefault()), + getVal: p => (p.Value + p.BottomValue).GetValueOrDefault()); + } + [OnlyAllow(SQLRoles.Viewer)] [ResponseCache(Duration = SparkGraphDuration, VaryByQueryKeys = new string[] { "node" }, Location = ResponseCacheLocation.Client)] [Route("graph/sql/cpu/spark")]