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

Adapt AnalysisExecutor to use slo names for experiment file name

parent 016b3407
No related branches found
No related tags found
1 merge request!274Feature/381 get multiple slo results
Pipeline #8557 passed
......@@ -48,15 +48,9 @@ class AnalysisExecutor(
)
}
// set name if not defined in properties
var sloName = slo.properties["name"] ?: ""
if (sloName.length > 0){
sloName = "_" + sloName
}
prometheusData.forEachIndexed{ index, data ->
prometheusData.forEach{ data ->
ioHandler.writeToCSVFile(
fileURL = "${fileURL}_${index}${sloName}_${repetitionCounter++}",
fileURL = "${fileURL}_${slo.name}_${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