public class V1TierionDataApiClient extends Object implements TierionDataApiClient
| Constructor and Description |
|---|
V1TierionDataApiClient() |
V1TierionDataApiClient(Integer connectionPoolSize) |
V1TierionDataApiClient(String username,
String apiKey) |
V1TierionDataApiClient(String username,
String apiKey,
Integer connectionPoolSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
DatastoreObject |
createDatastore(DatastoreObject datastore)
Creates a new datastore.
|
RecordObject |
createRecord(long datastoreId,
Map<String,String> data)
Creates a new record in the specified datastore.
|
void |
deleteDatastore(long id)
Deletes an existing datastore denoted by id.
|
void |
deleteRecord(String id)
Deletes a record denoted by id.
|
List<DatastoreObject> |
getAllDatastores()
Gets a list of all datastores for the user account.
|
DatastoreObject |
getDatastore(long id)
Retrieves an existing datastore denoted by id.
|
RecordObject |
getRecord(String id)
Retrieves an existing record denoted by id.
|
GetRecordsResponse |
getRecords(Long datastoreId,
Long page,
Long pageSize,
Long startDate,
Long endDate)
Obtains a list of records from the specified datastore.
|
DatastoreObject |
updateDatastore(long id,
DatastoreObject newDatastore)
Updates an existing datastore denoted by id.
|
public V1TierionDataApiClient(String username, String apiKey, Integer connectionPoolSize)
public V1TierionDataApiClient()
public V1TierionDataApiClient(Integer connectionPoolSize)
public List<DatastoreObject> getAllDatastores()
TierionDataApiClientgetAllDatastores in interface TierionDataApiClientpublic DatastoreObject getDatastore(long id)
TierionDataApiClientgetDatastore in interface TierionDataApiClientid - ID of an existing datastore to be retrieved.public DatastoreObject createDatastore(DatastoreObject datastore)
TierionDataApiClientcreateDatastore in interface TierionDataApiClientdatastore - Representation of the datastore configuration.
Should contain all properties you wish to apply for the datastore.public void deleteDatastore(long id)
TierionDataApiClientdeleteDatastore in interface TierionDataApiClientid - The ID of the datastore to be deleted.public DatastoreObject updateDatastore(long id, DatastoreObject newDatastore)
TierionDataApiClientupdateDatastore in interface TierionDataApiClientid - The ID of the datastore to be updated.newDatastore - Representation of the new datastore. It only needs to contain those properties
which should be updated. Other properties will stay unchanged.public RecordObject getRecord(String id)
TierionDataApiClientgetRecord in interface TierionDataApiClientid - The ID of the record to be retrieved.public GetRecordsResponse getRecords(Long datastoreId, Long page, Long pageSize, Long startDate, Long endDate)
TierionDataApiClientgetRecords in interface TierionDataApiClientdatastoreId - A unique numeric identifier for the Datastore from which Records are being requested. [Required]page - The page number of the Record results to view. If not specified, page will default to 1.pageSize - The number of Records to include in the Record results, between 1 and 10000. If not specified, pageSize will default to 100.startDate - A timestamp representing the start of the requested date range for the Record results. If not specified, startDate will default to creation date and time of the Datastore.endDate - A timestamp representing the end of the requested date range for the Record results. If not specified, endDate will default to the current date and time.public RecordObject createRecord(long datastoreId, Map<String,String> data)
TierionDataApiClientcreateRecord in interface TierionDataApiClientdatastoreId - A unique numeric identifier for the Datastore associated with this Record. [Required]data - Key/value pairs for the Records's data.public void deleteRecord(String id)
TierionDataApiClientdeleteRecord in interface TierionDataApiClientid - The ID of the record to be deleted.public void close()
close in interface AutoCloseableCopyright © 2017. All rights reserved.