Target - Report
Configuration​
The name of this target is ReportTarget
To configure the report run action, you need to provide the following:
- report
The name of the report to run
 - range
The optional date range expression
 
Adding a report target​
To add a report target to an existing subscription:
- Web Portal
 - OpenDataDSL
 - REST API
 
- Select Subscriptions
 - Find the subscription you want to add the target to.
 - Click the + button next to targets
 - Select ReportTarget
 - Fill out the report and range fields appropriately
 - Click the save button
 
// Adding a report run target to an existing subscription
sub = ${subscription:"MySubscription"}
sub.addReportTarget("myreport", "from(T-1M)")
save sub
POST https://api.opendatadsl.com/api/subscription/v1
Authorization: Bearer {{token}}
{
    "name": "MySubscription",
    "targets":[{
      "name": "ReportTarget",
      "report": "myreport",
      "range": "from(T-1M)"
    }]
}