Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameter

Mandatory

Description

Comments

report_name

Yes

Name of the report


query_engine

Yes

Data Source

DRUID, CASSANDRA, ELASTICSEARCH

execution_frequency

Yes

Report generation frequency

DAILY, WEEKLY, MONTHLY

channel_id

No

ChannelId for filtering


report_interval

Yes

Date range for queries

  1. YESTERDAY
  2. LAST_7_DAYS,
  3. LAST_WEEK,
  4. LAST_30_DAYS,
  5. LAST_MONTH,
  6. LAST_QUARTER,
  7. LAST_3_MONTHS,
  8. LAST_6_MONTHS
  9. LAST_YEAR

query

Yes

Query to be executed


output_format

Yes

Output format of the report

json, csv

output_file_pattern

No

Report output filename pattern

report_id and end_date from the interval is are used by default

{report_id}-{end_date}.{output_format}

Other Supported Placeholders are:

  1. report_name
  2. timestamp

...

Code Block
themeFadeToGrey
borderStylesolid
   # Schema of table
   TABLE platform_db.druid_reports_configuration (
     report_id text, // hash of report_id, channel_id and report_interval
     report_name text,
     report_interval text,
     query_engine text,
     cron_expression text,
     status text,
     report_query_location text,
     report_output_format text,
     report_output_location text,
     report_output_filename text,
     report_output_file_pattern list<text>text,
     report_last_generated timestamp,
     PRIMARY KEY (report_id) );
   )

...