Skip to content
Snippets Groups Projects
Commit 8ce6aa08 authored by Lorenz Boguhn's avatar Lorenz Boguhn
Browse files

Add slo name for csv writter

parent a3dab4fb
No related branches found
No related tags found
1 merge request!274Feature/381 get multiple slo results
......@@ -50,9 +50,11 @@ class AnalysisExecutor(
)
}
val sloName = slo.properties["name"] ?: ""
prometheusData.forEach { data ->
ioHandler.writeToCSVFile(
fileURL = "${fileURL}_${repetitionCounter++}",
fileURL = "${fileURL}_${sloName}_${repetitionCounter++}",
data = data.getResultAsList(),
columns = listOf("labels", "timestamp", "value")
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment