From 8ebd1eed07e5fdb372bc919666af9e09ca704fda Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 5 Mar 2024 21:45:22 +0000 Subject: [PATCH] Xlsx support (#940) Signed-off-by: Danila Gulderov Co-authored-by: Joshua Li (cherry picked from commit 2092cf9887a59f664e3b72f86b9da5db88926624) Signed-off-by: github-actions[bot] --- .../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)