Viewer metrics api (#208)
* Add support for ending the inbound stream. Closes #191 * Add a simple success response to API requests * Add viewers over time API * Move controllers to admin directory
This commit is contained in:
@@ -36,6 +36,6 @@ func handleRAMAlerting() {
|
||||
}
|
||||
}
|
||||
|
||||
func recentAverage(values []value) int {
|
||||
func recentAverage(values []timestampedValue) int {
|
||||
return int((values[len(values)-1].Value + values[len(values)-2].Value) / 2)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user