Back to index
Summary
Retrieves data for the requested report from the reporting system.projectNameStringrequiredThe name for the project that must be unique among all projects. reportNameStringrequiredThe name of the report. dashboardNameStringoptionalThe name of the dashboard that the widget using the report belongs to. dashboardProjectNameStringoptionalSet if the dashboard is in a different project than the report. definitionStringoptionalThe Elasticsearch query definition to use for retrieving report data. filtersArray<Filter>optionalA list of zero or more filter criteria definitions used to define objects to find. previewModeBooleanoptionalWhether the report should be run in preview mode returning a small result sample. reportObjectTypeNameStringoptionalReport object type name. reportQueryStringoptionalThe report query in JSON format. It will be translated to the Elasticsearch query definition when retrieving report data. uriStringoptionalAn advanced mode option for identifying the Elasticsearch URI to use for retrieving report data. By default, the reportObjectTypeName argument will be used to construct the URI based on the Elasticsearch index for the report object, e.g., ef-deployment-*/_search?pretty .widgetNameStringoptionalThe name of the widget using the report. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.runReport( projectName: "test-projectName", reportName: "test-reportName" /* optional arguments */ )