Skip to content

Commit 50703d0

Browse files
committed
Merge remote-tracking branch 'origin/main' into craver/net8
2 parents 43e5786 + e291918 commit 50703d0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Opserver.Web/Controllers/GraphController.Spark.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,18 @@ public async Task<ActionResult> VolumeSpark(string direction, string id, string
167167
return SparkSVG(points, Convert.ToInt64(points.Max(getter)), p => getter(p));
168168
}
169169

170+
[OnlyAllow(DashboardRoles.Viewer)]
171+
[ResponseCache(Duration = SparkGraphDuration, Location = ResponseCacheLocation.Client)]
172+
[Route("graph/volumePerformance/spark/all"), AlsoAllow(Roles.InternalRequest)]
173+
public Task<ActionResult> VolumeSparkSvgAll()
174+
{
175+
return SparkSvgAll(
176+
"Volume",
177+
getPoints: n => n.GetVolumePerformanceUtilization(SparkStart, null, SparkPoints),
178+
getMax: (_, points) => Convert.ToInt64(points.Max(p => p.Value + p.BottomValue).GetValueOrDefault()),
179+
getVal: p => (p.Value + p.BottomValue).GetValueOrDefault());
180+
}
181+
170182
[OnlyAllow(SQLRoles.Viewer)]
171183
[ResponseCache(Duration = SparkGraphDuration, VaryByQueryKeys = new string[] { "node" }, Location = ResponseCacheLocation.Client)]
172184
[Route("graph/sql/cpu/spark")]

0 commit comments

Comments
 (0)