...
Code Block |
---|
{
"type": "create_artifact" | "create_app" | "create_stream" | "create_dataset" | "load_datapack" | "install_package"
"arguments": [
{
"name": [argument name],
"value": [argument value],
"canModify": true | false (defaults to false)
}
]
} |
...
name | description | required? | default |
---|---|---|---|
name | stream name | yes | |
description | stream description, results in call to set stream properties | no | empty |
format | stream format as json object, results in call to set stream properties | no | empty |
schema | stream schema, results in call to set stream properties | no | empty |
ttl | stream ttl, results in call to set stream properties | no | empty |
notification.threshold.mb | mb threshold for sending notifications, results in call to set stream properties | no | empty |
loadfiles | files in the package archive to write to the stream. results in a call to write to the stream in batch | no | empty |
create_dataset
Results in a call to http://docs.cdap.io/cdap/current/en/reference-manual/http-restful-api/dataset.html#creating-a-dataset
name | description | required? | default |
---|---|---|---|
name | dataset name | yes | |
type | dataset type | yes | |
description | dataset description | no | empty |
properties | json map of dataset properties | no | empty |
load_datapack
Loads a datapack into some dataset or stream.
name | description | required? | default |
---|---|---|---|
name | dataset/stream name | yes | |
files | files to load into the dataset/stream | yes |
install_package
Installs another package from the marketplace. May not be implemented for version 1.
name | description | required? | default |
---|---|---|---|
name | package name | yes | |
version | package version | yes |
...