Back to index
Summary
Creates a new report.projectNameStringrequiredThe name for the project that must be unique among all projects. reportNameStringrequiredThe name of the report. definitionStringoptionalThe Elasticsearch query definition to use for retrieving report data. descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. parametersStringoptionalInput parameters in JSON format accepted by the report definition. reportObjectTypeForSourceTypeStringoptionalThe report object type name to use to determine the source type for the report. Set this if the sourceType of the report's reportObjectType is different from the actual source of the report data. reportObjectTypeNameStringoptionalReport object type name. reportQueryStringoptionalThe report query in JSON format. It will be translated to the Elasticsearch query definition when retrieving report data. titleStringoptionalThe title of report. 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 . |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.createReport( projectName: "test-projectName", reportName: "test-reportName" /* optional arguments */ )