use of org.apache.beam.sdk.testutils.publishing.InfluxDBSettings in project beam by apache.
the class Main method savePerfsToInfluxDB.
private static void savePerfsToInfluxDB(final NexmarkOptions options, final Map<String, String> schema, final Map<NexmarkConfiguration, NexmarkPerf> results, final long timestamp) {
final InfluxDBSettings settings = getInfluxSettings(options);
final Map<String, String> tags = options.getInfluxTags();
final String runner = options.getRunner().getSimpleName();
final List<Map<String, Object>> schemaResults = results.entrySet().stream().map(entry -> getResultsFromSchema(entry.getValue(), schema, timestamp, runner, produceMeasurement(options, entry))).collect(toList());
InfluxDBPublisher.publishNexmarkResults(schemaResults, settings, tags);
}
Aggregations