Schedule Cloud Upload
APIs to scheduled data uploads
Before executing APIs to schedule uploads, grant read access to the Google Cloud Storage bucket or Google BigQuery table (if using either).
Tenant Id can be retrieved from the UI as listed here
Source Id can be retrieved from the UI or using the APIs
Get all scheduled uploads for this tenant and source
GET
https://demo.api.telm.ai/{tenant}/configuration/sources/{source}/scheduled_uploads
Path Parameters
Name | Type | Description |
---|---|---|
source_id* | string | Id of source to upload data to |
tenant* | string | Name of tenant |
Headers
Name | Type | Description |
---|---|---|
Content-type | string | application/json |
Authentication* | string | Bearer <access_token>. Access token from Authentication API |
Schedule an upload
POST
https://demo.api.telm.ai/{tenant}/configuration/sources/{source}/scheduled_uploads
Examples of request body are listed below
Path Parameters
Name | Type | Description |
---|---|---|
source_id* | string | Id of source to upload data to |
tenant* | string | Name of tenant |
Headers
Name | Type | Description |
---|---|---|
Content-type | string | application/json |
Authentication* | string | Bearer <access_token>. Access token from Authentication API |
Request Body
Name | Type | Description |
---|---|---|
enabled* | Boolean | true or false |
sample_fraction | Boolean | Default false. If true, then 10% of the data will be used for sampling and processing |
schedule* | String | |
skip_investigator | Boolean | If true, investigator feature will be unavailable for this upload, only trends. |
timestamp_attribute | String | Name of the attribute column that has the timestamp information. This will be used for the delta_only field |
delta_only | Boolean | If true, only delta rows will be processed based on the timestamp column defined. For GBQ and Snowflake, if timestamp is blank, delta_only is ignored. |
upload* | Json | Inner json object that defines the location of the input file |
type* | String | Type of location of the input file. Acceptable values listed here |
payload* | Json | Depending on the type of location, this section is the same as the respective request body parameters listed here |
Update a scheduled upload
PUT
https://demo.api.telm.ai/{tenant}/configuration/sources/{source}/scheduled_uploads
Examples of request body are listed below
Path Parameters
Name | Type | Description |
---|---|---|
source_id* | string | Id of source to upload data to |
tenant* | string | Name of tenant |
Headers
Name | Type | Description |
---|---|---|
Content-type | string | application/json |
Authentication* | string | Bearer <access_token>. Access token from Authentication API |
Request Body
Name | Type | Description |
---|---|---|
enabled* | Boolean | true or false |
sample_fraction | Boolean | Default false. If true, then 10% of the data will be used for sampling and processing |
schedule* | String | |
skip_investigator | Boolean | If true, investigator feature will be unavailable for this upload, only trends. |
timestamp_attribute | String | Name of the attribute column that has the timestamp information. This will be used for the delta_only field |
delta_only | Boolean | If true, only delta rows will be processed based on the timestamp column defined. For GBQ and Snowflake, if timestamp is blank, delta_only is ignored. |
upload* | Json | Inner json object that defines the location of the input file |
type* | String | Type of location of the input file. Acceptable values listed here |
payload* | Json | Depending on the type of location, this section is the same as the respective request body parameters listed here |
Delete a scheduled upload
DELETE
https://demo.api.telm.ai/{tenant}/configuration/sources/{source}/scheduled_uploads
Path Parameters
Name | Type | Description |
---|---|---|
source_id* | string | Id of source to upload data to |
tenant* | string | Name of tenant |
Headers
Name | Type | Description |
---|---|---|
Content-type | string | application/json |
Authentication* | string | Bearer <access_token>. Access token from Authentication API |
Request Body for POST and PUT
Some examples of the request body parameters are described below
Depending on the type of input source, the "upload" section will be any one of the request body described in Upload Data Apis section.
Example 1: If input file is located in Azure
Example 2: If input file is located in BIGQUERY:
Example 3: If input file is located in S3:
Last updated