From 3d6148a8a8329946156f395fc5454a01c26d3d47 Mon Sep 17 00:00:00 2001 From: Danila Gulderov Date: Fri, 12 Jan 2024 16:52:16 +0300 Subject: [PATCH] Xlsx support Signed-off-by: Danila Gulderov --- .../org/opensearch/reportsscheduler/model/ReportDefinition.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/org/opensearch/reportsscheduler/model/ReportDefinition.kt b/src/main/kotlin/org/opensearch/reportsscheduler/model/ReportDefinition.kt index 5aed866c..44fc671f 100644 --- a/src/main/kotlin/org/opensearch/reportsscheduler/model/ReportDefinition.kt +++ b/src/main/kotlin/org/opensearch/reportsscheduler/model/ReportDefinition.kt @@ -33,7 +33,7 @@ import java.time.Duration * }, * "format":{ * "duration":"PT1H", - * "fileFormat":"Pdf", // Pdf, Png, Csv + * "fileFormat":"Pdf", // Pdf, Png, Csv, Xlsx * "limit":1000, // optional * "header":"optional header", * "footer":"optional footer" @@ -76,7 +76,7 @@ internal data class ReportDefinition( internal enum class SourceType { Dashboard, Visualization, SavedSearch, Notebook } internal enum class TriggerType { Download, OnDemand, CronSchedule, IntervalSchedule } internal enum class DeliveryFormat { LinkOnly, Attachment, Embedded } - internal enum class FileFormat { Pdf, Png, Csv } + internal enum class FileFormat { Pdf, Png, Csv, Xlsx } internal companion object { private val log by logger(ReportDefinition::class.java)