This is not production ready code! This is currently for us to use in our developer machines.
These are Powershell functions that wrap the REST APIs of MDS and v2 engine. In addition there are functions that do some of the common developer tasks like showing permissions, logs, fixing discovery service url etc.
To bring up the main menu, just open PowerShell and paste:
Invoke-WebRequest -useb https://raw.githubusercontent.com/HealthCatalyst/dos.powershell/release/runengine.ps1 | Invoke-Expression;
This uses a library of functions that automate some parts of DOS. You can pull in the library only by pasting:
Invoke-WebRequest -useb https://raw.githubusercontent.com/HealthCatalyst/dos.powershell/release/doslibrary.ps1 | Invoke-Expression;
Here's some of the functions available in this Powershell library:
- List all datamarts on your system: listdatamarts
- List all batch definitions in your system: listBatchDefinitions
- Get ID of DataMart by Name: getdataMartIDbyName
- Create a batch definition for a datamart: createBatchDefinitionForDataMart
- Get last batch execution for a datamart: getLastBatchExecutionForDatamart
- Run a normal batch: executeBatch
- Run a streaming batch: executeBatchAsStreaming
- Run and wait for a datamart: runAndWaitForDatamart
- Chain SAM runs. Call runAndWaitForDatamart for first SAM, then call runAndWaitForDatamart for second SAM etc etc
- Cancel a batch: cancelBatch
- Execute a JSON based datamart: executeJsonDataMart
- Download the json for a data mart: downloaddataMartIDbyName
Other helpful developer stuff:
- Show discovery service urls: showDiscoveryServiceUrls
- Show user permissions: showDiscoveryServiceUrls
- set ETLObjectAttributeBASE: setETLObjectAttribute
- Show websites installed on my machine: listWebSites
Not completely working yet that you can feel free to make work:
- Deploy a dacpac: DeployDACPAC
- Download latest build from VSO: downloadArtifactFromLatestBuild
Feel free to just check in additional helpful stuff for developers.
Branch and do your changes. Submit a pull request to master when ready.