Elastic cube build options (REST API)
Hi,
is there a way how to build elastic cube through REST API by using different build options?
Example:
Every midnight I would like to trigger "Replace all" build. During the day, I would like to trigger only "By table" mode. After doing some research I haven't found a way how to do that.
Any idea please?
Best regards,
Matej Podstrelenec
Vendavo
-
In windows the start cube build end point accepts schema_changes or full for build type. I am not sure what the parameter would be for building by table. This may need more direct outreach from Sisense.
In Linux it's pretty clear. There is an endpoint that takes by_table. See a python implementation of the endpoint here
Here is a sample script for building datamodels in linux: https://github.com/nathangiusti/PySense/blob/master/Scripts/BuildDatamodels/BuildDatamodels.py
-
As Nathan mentioned, you can use this endpoint to start a build:
POST /api/elasticubes/{server}/{cube_title}/startBuild
You can find it in the v0.9 API reference.
It accepts a "type" parameter, which as far as I know can be one of the following values:
- "Entire" = Replace all
- "Accumulate" = By Table
- "SchemaChanges" = Changes Only
Please try this out, and if you run into any issues report them here and/or via a support ticket (depending on the urgency of the issue)
-
Thank you Moti Granovsky, your answer has solved my issue.
It would be very helpful if these options are listed in your REST API reference documentation.
Please sign in to leave a comment.
Comments
6 comments