Skip to main content

Endpoints

Overview

The table below shows all the TIM endpoints implemented into the Python Client. For each endpoint a specific function is available to communicate directly to the TIM API. These functions are grouped into classes and are organized along the different sections of the TIM API.

TIM EndpointClassNameType
/user-groupsuser_groupslist_user_groupGET
/user-groupsuser_groupscreate_user_groupPOST
/user-groups/{id}user_groupsdetails_user_groupGET
/user-groups/{id}user_groupsupdate_user_groupPUT
/user-groups/{id}user_groupsdelete_user_groupDELETE
/workspacesworkspaceslist_workspaceGET
/workspacesworkspacescreate_workspacePOST
/workspaces/{id}workspacesdetails_workspaceGET
/workspaces/{id}workspacesedit_workspacePATCH
/workspaces/{id}workspacesdelete_workspaceDELETE
/datasets/csvdatasetsupload_datasetPOST
/datasets/{id}/csvdatasetsupdate_datasetPATCH
/datasetsdatasetslist_datasetGET
/datasetsdatasetsdelete_dataset_listDELETE
/datasets/{id}datasetsdetails_datasetGET
/datasets/{id}datasetsedit_dataset_detailsPATCH
/datasets/{id}datasetsdelete_datasetDELETE
/datasets/{id}/logdatasetsdataset_logsGET
/datasets/{id}/versions/{version}/logdatasetslogs_dataset_versionGET
/datasets/{id}/versionsdatasetslist_dataset_versionsGET
/datasets/{id}/versions/{version}datasetsdetails_dataset_versionGET
/datasets/{id}/versions/{version}datasetsdelete_dataset_versionDELETE
/datasets/{id}/versions/{version}/statusdatasetsstatus_dataset_versionGET
/datasets/{id}/versions/{version}/slicedatasetsslice_dataset_versionPOST
/use-casesuse_caseslist_use_caseGET
/use-casesuse_casescreate_use_casePOST
/use-cases/{id}use_casesdetails_use_caseGET
/use-cases/{id}use_casesedit_use_casePATCH
/use-cases/{id}use_casesdelete_use_caseDELETE
/experimentsexperimentslist_experimentGET
/experimentsexperimentscreate_experimentPOST
/experiments/{id}experimentsdetails_experimentGET
/experiments/{id}experimentsedit_experimentPATCH
/experiments/{id}experimentsdelete_experimentDELETE
/forecast-jobs/build-modelforecastingbuild_modelPOST
/forecast-jobs/upload-modelforecastingupload_modelPOST
/forecast-jobs/{id}/rebuild-modelforecastingrebuild_modelPOST
/forecast-jobs/{id}/retrain-modelforecastingretrain_modelPOST
/forecast-jobs/{id}/predictforecastingpredictPOST
/forecast-jobs/{id}/rcaforecastingrcaPOST
/forecast-jobs/{id}/what-ifforecastingwhat_ifPOST
/forecast-jobsforecastingjob_listGET
/forecast-jobsforecastingdelete_job_listDELETE
/forecast-jobs/{id}forecastingjob_detailsGET
/forecast-jobs/{id}forecastingdelete_jobDELETE
/forecast-jobs/{id}/copyforecastingcopy_jobPOST
/forecast-jobs/{id}/executeforecastingexecutePOST
/forecast-jobs/{id}/logforecastingjob_logsGET
/forecast-jobs/{id}/statusforecastingstatusGET
/forecast-jobs/{id}/status/collectforecastingstatus_collectGET
/forecast-jobs/{id}/results/tableforecastingresults_tableGET
/forecast-jobs/{id}/results/production-forecastforecastingresults_production_forecastGET
/forecast-jobs/{id}/results/modelforecastingresults_modelGET
/forecast-jobs/{id}/results/accuraciesforecastingresults_accuraciesGET
/forecast-jobs/{id}/results/rcaforecastingresults_rcaGET
/forecast-jobs/results/production-tableforecastingresults_production_tableGET
/forecast-jobs/results/production-accuraciesforecastingresults_production_accuraciesGET
/detection-jobs/build-model/kpi-drivenanomaly_detectionbuild_kpi_modelPOST
/detection-jobs/build-model/system-drivenanomaly_detectionbuild_system_modelPOST
/detection-jobs/build-model/outlieranomaly_detectionbuild_outlier_modelPOST
/detection-jobs/build-model/drift/kolmogorov-smirnovanomaly_detectionbuild_drift_model_kolmogorov_smirnovPOST
/detection-jobs/build-model/drift/jensen-shannonanomaly_detectionbuild_drift_model_jensen_shannonPOST
/detection-jobs/upload-modelanomaly_detectionupload_modelPOST
/detection-jobs/{id}/rebuild-model/kpi-drivenanomaly_detectionrebuild_kpi_modelPOST
/detection-jobs/{id}/detectanomaly_detectiondetectPOST
/detection-jobs/{id}/rcaanomaly_detectionrcaPOST
/detection-jobs/{id}/what-ifanomaly_detectionwhat_ifPOST
/detection-jobsanomaly_detectionjobs_listGET
/detection-jobsanomaly_detectiondelete_job_listDELETE
/detection-jobs/{id}anomaly_detectionjob_detailsGET
/detection-jobs/{id}anomaly_detectiondelete_jobDELETE
/detection-jobs/{id}/copyanomaly_detectioncopy_jobPOST
/detection-jobs/{id}/executeanomaly_detectionexecutePOST
/detection-jobs/{id}/loganomaly_detectionjob_logsGET
/detection-jobs/{id}/statusanomaly_detectionstatusGET
/detection-jobs/{id}/status/collectanomaly_detectionstatus_collectGET
/detection-jobs/{id}/results/tableanomaly_detectionresults_tableGET
/detection-jobs/{id}/results/modelanomaly_detectionresults_modelGET
/detection-jobs/{id}/results/accuraciesanomaly_detectionresults_accuraciesGET
/detection-jobs/{id}/results/rcaanomaly_detectionresults_rcaGET
/detection-jobs/results/production-tableanomaly_detectionresults_production_tableGET
/detection-jobs/results/production-accuraciesanomaly_detectionresults_production_accuraciesGET
/licenseslicensedetails_licenseGET
/licenses/storagelicensestorage_licenseGET
/users/meuserdetails_userGET
/ops/dataset-callstelemetrydataset_callsGET
/ops/job-callstelemetryjob_callsGET

User Groups

This chapter covers all the functions in the "user_groups" class which communicate directly to the endpoints in the User Groups section of the TIM API.

list_user_group

This function allows the user to list all users groups to which the user has access. The user is able to sort the list, offset the start of the list of items and limit the number of items returned from the API.

user_groups_list_user_group = client.user_groups.list_user_group(
offset = None,
limit = None,
sort = None,
)

create_user_group

This function allows the user to create a new user group within TIM. A JSON configuration with details about the new user group is required to use this function.

user_groups_create_user_group = client.user_groups.create_user_group(
configuration = create_user_group_configuration
)

details_user_group

This function allows the user to extract the details of an existing user group within the TIM Platform. A valid TIM user group ID is required to use this function.

user_groups_details_user_group = client.user_groups.details_user_group(
id = user_group_id
)

update_user_group

This function allows the user to update the details of an existing user group within the TIM Platform. A valid TIM user group ID and a JSON configuration are required to use this function.

user_groups_update_user_group = client.user_groups.update_user_group(
id = user_group_id,
configuration = create_user_group_configuration
)

delete_user_group

This function allows the user to delete an existing user group within the TIM Platform. A valid TIM user group ID is required to use this function.

user_groups_delete_user_group = client.user_groups.delete_user_group(
id = user_group_id
)

Workspaces

This chapter covers all the functions in the "workspaces" class which communicate directly to the endpoints in the Workspace section of the TIM API.

list_workspace

This function allows the user to list all workspaces to which the user has access. The user is able to sort the list, offset the start of the list of items and limit the number of items returned from the API. The user can also filter workspaces from a specific user group.

workspaces_list_workspace = client.workspaces.list_workspace(
offset = None,
limit = None,
user_group_id = None,
sort = None
)

create_workspace

This function allows the user to create a new workspace within TIM. A JSON configuration with details about the new workspace is required to use this function.

workspaces_create_workspace = client.workspaces.create_workspace(
configuration = create_workspace_configuration
)

details_workspace

This function allows the user to extract the details of an existing workspace within the TIM Platform. A valid TIM workspace ID is required to use this function.

workspaces_details_workspace = client.workspaces.details_workspace(
id = workspace_id
)

edit_workspace

This function allows the user to edit the details of an existing workspace within the TIM Platform. A valid TIM workspace ID and a JSON configuration are required to use this function.

workspaces_update_workspace = client.workspaces.edit_workspace(
id = workspace_id,
configuration = edit_workspace_configuration
)

delete_workspace

This function allows the user to delete an existing workspace within the TIM Platform. A valid TIM workspace ID is required to use this function.

workspaces_delete_workspace = client.workspaces.delete_workspace(
id = workspace_id
)

Datasets

This chapter covers all the functions in the "datasets" class which communicate directly to the endpoints in the Datasets section of the TIM API.

upload_dataset

This function allows the user to upload an new dataset to the TIM Platform. A dataset in the form of a pandas dataframe with the right properties as outlined in the TIM documentation as well as a JSON configuration with details about the dataset are required to use this function.

datasets_upload_dataset = client.datasets.upload_dataset(
dataset = dataset,
configuration = upload_dataset_configuration
)

update_dataset

This function allows the user to update an existing dataset in the TIM Platform. The following items are required to use this function:

  • A valid TIM dataset ID.
  • A dataset in the form of a pandas dataframe with the right properties as outlined in the TIM documentation.
  • A JSON configuration with details about the dataset.
datasets_update_dataset = client.datasets.update_dataset(
id = dataset_id,
dataset = dataset,
configuration = update_dataset_configuration
)

list_dataset

This function allows the user to list all datasets to which the user has access. The user is able to sort the list, offset the start of the list of items and limit the number of items returned from the API. The user can also filter datasets from a specific workspace.

datasets_list_dataset = client.datasets.list_dataset(
offset = None,
limit = None,
workspace_id = None,
sort = None
)

delete_dataset_list

This function allows the user to delete multiple datasets within the TIM Platform. The user is able to sort the list of datasets, offset the start of the list of items and limit the number of datasets deleted within the API. The user can also delete datasets from a specific workspace.

datasets_list_dataset = client.datasets.list_dataset(
offset = None,
limit = None,
workspace_id = None,
sort = None
)

details_dataset

This function allows the user to extract the details of an existing dataset within the TIM Platform. A valid TIM dataset ID is required to use this function.

datasets_details_dataset = client.datasets.details_dataset(
id = dataset_id
)

edit_dataset_details

This function allows the user to edit the details of an existing dataset within the TIM Platform. A valid TIM dataset ID and a JSON configuration are required to use this function.

datasets_edit_dataset_details = client.datasets.edit_dataset_details(
id = dataset_id,
configuration = edit_dataset_details_configuration
)

delete_dataset

This function allows the user to delete an existing dataset within the TIM Platform. A valid TIM dataset ID is required to use this function.

datasets_delete_dataset = client.datasets.delete_dataset(
id = dataset_id
)

dataset_logs

This function allows the user to extract the logs of an upload or update of a dataset to the TIM Platform. A valid TIM dataset ID is required to use this function.

datasets_dataset_logs = client.datasets.dataset_logs(
id = dataset_id
)

logs_dataset_version

This function allows the user to extract the logs of a specific update of a dataset to the TIM Platform. A valid TIM dataset ID and dataset version ID are required to use this function.

datasets_logs_dataset_version = client.datasets.logs_dataset_version(
id = dataset_id,
version = dataset_version_id
)

list_dataset_versions

This function allows the user to list all version updates of a TIM dataset. A valid TIM dataset ID is required to use this function.

datasets_list_dataset_versions = client.datasets.list_dataset_versions(
id = dataset_id
)

details_dataset_version

This function allows the user to extract the details of an existing dataset version within the TIM Platform. A valid TIM dataset ID and dataset version ID are required to use this function.

datasets_dataset_version_status = client.datasets.status_dataset_version(
id = dataset_id,
version_id = dataset_version_id
)

delete_dataset_version

This function allows the user to delete a version of an existing dataset within the TIM Platform. A valid TIM dataset ID and dataset version ID are required to use this function.

datasets_delete_dataset_version = client.datasets.delete_dataset_version(
id = dataset_id,
version = version_id
)

status_dataset_version

This function allows the user to check the status of a dataset upload or version update to the TIM platform. A valid TIM dataset ID and dataset version ID are required to use this function.

datasets_dataset_version_status = client.datasets.status_dataset_version(
id = dataset_id,
version_id = dataset_version_id
)

slice_dataset_version

This function allows the user to get a slice of data from a specific dataset version. A valid TIM dataset ID and dataset version ID are required to use this function.

datasets_dataset_version_slice = client.datasets.slice_dataset_version(
id = dataset_id,
version_id = dataset_version_id
)

Use Cases

This chapter covers all the functions in the "use_cases" class which communicate directly to the endpoints in the Use Cases section of the TIM API.

list_use_case

This function allows the user to list all use cases to which the user has access. The user is able to sort the list, offset the start of the list of items and limit the number of items returned from the API. The user can also filter use cases from a specific user group, workspace and/or dataset. Lastly, the user can filter the use cases with panel data.

use_cases_list_use_case = client.use_cases.list_use_case(
offset = None,
limit = None,
user_group_id = None,
workspace_id = None,
dataset_id = None,
sort = None,
is_panel_data = None,
)

create_use_case

This function allows the user to create a new use case within TIM. A JSON configuration with details about the new use case is required to use this function.

use_cases_create_use_case = client.use_cases.create_use_case(
configuration = create_use_case_configuration
)

details_use_case

This function allows the user to extract the details of an existing use case within the TIM Platform. A valid TIM use case ID is required to use this function.

use_cases_details_use_case = client.use_cases.details_use_case(
id = use_case_id
)

edit_use_case

This function allows the user to edit the details of an existing use case within the TIM Platform. A valid TIM use case ID and a JSON configuration are required to use this function.

use_cases_update_use_case = client.use_cases.edit_use_case(
id = use_case_id,
configuration = edit_use_case_configuration
)

delete_use_case

This function allows the user to delete an existing use case within the TIM Platform. A valid TIM use case ID is required to use this function.

use_cases_delete_use_case = client.use_cases.delete_use_case(
id = use_case_id
)

Experiments

This chapter covers all the functions in the "experiments" class which communicate directly to the endpoints in the Experiments section of the TIM API.

list_experiment

This function allows the user to list all experiments to which the user has access. The user is able to sort the list, offset the start of the list of items and limit the number of items returned from the API. The user can also filter experiments from a specific workspace, use case and/or dataset. Lastly, the user can filter the experiments of a specific type (forecasting or anomaly detection).

experiments_list_experiment = client.experiments.list_experiment(
offset = None,
limit = None,
workspace_id = None,
use_case_id = None,
dataset_id = None,
sort = None,
type = None,
)

create_experiment

This function allows the user to create a new experiment within TIM. A JSON configuration with details about the new experiment is required to use this function.

experiments_create_experiment = client.experiments.create_experiment(
configuration = create_experiment_configuration
)

details_experiment

This function allows the user to extract the details of an existing experiment within the TIM Platform. A valid TIM experiment ID is required to use this function.

experiments_details_experiment = client.experiments.details_experiment(
id = experiment_id
)

edit_experiment

This function allows the user to edit the details of an existing experiment within the TIM Platform. A valid TIM experiment ID and a JSON configuration are required to use this function.

experiments_update_experiment = client.experiments.edit_experiment(
id = experiment_id,
configuration = edit_experiment_configuration
)

delete_experiment

This function allows the user to delete an existing experiment within the TIM Platform. A valid TIM experiment ID is required to use this function.

experiments_delete_experiment = client.experiments.delete_experiment(
id = experiment_id
)

Forecasting

This chapter covers all the functions in the "forecasting" class which communicate directly to the endpoints in the Forecasting section of the TIM API.

build_model

This function allows the user to register a new forecasting job of the type "build_model". A JSON configuration with details about the new job is required to use this function.

forecasting_build_model = client.forecasting.build_model(
configuration = forecast_build_model_configuration
)

upload_model

This function allows the user to register a new forecasting job by uploading a pre-built model. A JSON configuration with details about the new job and containing the pre-built model, is required to use this function.

forecasting_upload_model = client.forecasting.upload_model(
configuration = forecasting_upload_model_configuration
)

rebuild_model

This function allows the user to register a new forecasting job of the type "rebuild_model". A valid TIM ID from a previously built model and a JSON configuration with details about the new job are required to use this function.

forecasting_rebuild_model = client.forecasting.rebuild_model(
parent_job_id = forecasting_build_model_id,
configuration = forecast_rebuild_model_configuration
)

retrain_model

This function allows the user to register a new forecasting job of the type "retrain_model". A valid TIM ID from a previously built model and a JSON configuration with details about the new job are required to use this function.

forecasting_retrain_model = client.forecasting.retrain_model(
parent_job_id = forecasting_build_model_id,
configuration = forecast_retrain_model_configuration
)

predict

This function allows the user to register a new forecasting job of the type "predict". A valid TIM ID from a previously built model and a JSON configuration with details about the new job are required to use this function.

forecasting_predict = client.forecasting.predict(
parent_job_id = forecasting_build_model_id,
configuration = forecast_predict_configuration
)

rca

This function allows the user to register a new forecasting job of the type "rca". A valid TIM ID from an executed forecasting job is required to use this function.

forecasting_rca = client.forecasting.rca(
parent_job_id = forecasting_build_model_id
)

what_if

This function allows the user to register a new forecasting job of the type "what-if". A valid TIM ID from an executed forecasting job and a what-if configuration are required to use this function.

forecasting_what_if = client.forecasting.what_if(
parent_job_id = forecasting_build_model_id,
configuration = forecasting_what_if_configuration
)

job_list

This function allows the user to list all forecasting jobs to which the user has access. The user is able to sort the list, offset the start of the list of items and limit the number of items returned from the API. The user can also filter jobs from a specific experiment, use case, sequence and/or parent job. Next, the user can filter the jobs of a specific type, status and period of registration.

forecasting_job_list = client.forecasting.job_list(
offset = None,
limit = None,
experiment_id = None,
use_case_id = None,
type = None,
status = None,
parent_id = None,
from_datetime = None,
to_datetime = None,
sort = None,
sequence_job_id = None,
)

delete_job_list

This function allows the user to delete multiple jobs within the TIM Platform. The user is able to sort the list of job, offset the start of the list of items and limit the number of jobs deleted within the API. The user can also filter jobs from a specific experiment, use case and/or parent job. Next, the user can filter the jobs of a specific type, status and period of registration.

forecasting_delete_job_list = client.forecasting.delete_job_list(
experiment_id = None,
use_case_id = None,
type = None,
status = None,
parent_id = None,
from_datetime = None,
to_datetime = None,
)

job_details

This function allows the user to extract the details of an existing job within the TIM Platform. A valid TIM forecasting job ID is required to use this function.

forecasting_job_details= client.forecasting.job_details(
id = job_id
)

delete_job

This function allows the user to delete an existing job within the TIM Platform. A valid TIM forecasting job ID is required to use this function.

forecasting_delete_job = client.forecasting.delete_job(
id = job_id
)

copy_job

This function allows the user to copy an existing job within the TIM Platform and register a new one with the same configuration. A valid TIM forecasting job ID is required to use this function.

forecasting_copy_job = client.forecasting.copy_job(
id = job_id
)

execute

This function allows the user to execute a registered forecasting job. A valid TIM forecasting job ID is required to use this function.

forecasting_status = client.forecasting.status(
id = job_id
)

job_logs

This function allows the user to collect the logs of an executed forecasting job. A valid TIM forecasting job ID is required to use this function.

forecasting_job_logs = client.forecasting.job_logs(
id = job_id
)

status

This function allows the user to check the status of an executed forecasting job. A valid TIM forecasting job ID is required to use this function.

forecasting_status = client.forecasting.status(
id = job_id
)

status_collect

This function allows the user to collect the status history of an executed forecasting job. A valid TIM forecasting job ID is required to use this function.

forecasting_status_collect = client.forecasting.status_collect(
id = job_id
)

results_table

This function allows the user to collect the results table of a forecasting job containing the forecasted values and additional useful information. The user can filter for specific forecast types and model indices. A valid and finished TIM forecasting job ID is required to use this function.

forecasting_results_table = client.forecasting.results_table(
id = job_id,
forecast_type = None,
model_index = None
)

results_production_forecast

This function allows the user to collect the results table of a forecasting job containing only the forecasted values of the type "Production" and a timestamp. This gives the user a lean way of collecting forecasted values. A valid and finished TIM forecasting job ID is required to use this function.

forecasting_results_production_forecast = client.forecasting.results_production_forecast(
id = job_id
)

results_model

This function allows the user to collect the model information of forecasting build jobs. A valid and finished TIM forecasting job ID is required to use this function.

forecasting_results_model = client.forecasting.results_model(
id = job_id
)

results_accuracies

This function allows the user to collect the accuracy information of forecasting build jobs. A valid and finished TIM forecasting job ID is required to use this function.

forecasting_results_accuracies = client.forecasting.results_accuracies(
id = job_id
)

results_rca

This function allows the user to collect the results table of forecasting root cause analysis jobs. A valid and finished TIM forecasting rca job ID is required to use this function. The user can filter for specific model indices and select a timestamp and a radius of number of samples around that sample to extract RCA information for.

forecasting_results_rca = client.forecasting.results_rca(
id = forecasting_rca_id,
index_of_model = 1,
timestamp = None,
radius = None
)

results_production_table

This function allows the user to collect the production table results for a sequence of forecasting jobs. A valid and finished TIM forecasting job ID is required to use this function. The user can filter for results from specific dataset versions, registration period, type and allow for overlapping or colocated jobs.

forecasting_results_production_table = client.forecasting.results_production_table(
sequence_job_id = job_id,
dataset_version_id = None,
type = None,
from_datetime = None,
to_datetime = None,
allow_overlapping = None,
colocated_jobs = None,
)

results_production_accuracies

This function allows the user to collect the production accuracy results for a sequence of forecasting jobs. A valid and finished TIM forecasting job ID is required to use this function. The user can filter for results from specific dataset versions, registration period, type and allow for overlapping or colocated jobs.

forecasting_results_production_accuracies = client.forecasting.results_production_accuracies(
sequence_job_id = forecasting_build_model_id,
dataset_version_id = None,
type = None,
from_datetime = None,
to_datetime = None,
allow_overlapping = None,
colocated_jobs = None,
)

Anomaly Detection

This chapter covers all the functions in the "detection" class which communicate directly to the endpoints in the Anomaly Detection section of the TIM API.

build_kpi_model

This function allows the user to register a new detection job of the type "build_model" with the KPI-driven approach. A JSON configuration with details about the new job is required to use this function.

detection_build_kpi_model = client.detection.build_kpi_model(
configuration = detection_build_kpi_model_configuration
)

build_system_model

This function allows the user to register a new detection job of the type "build_model" with the system-driven approach. A JSON configuration with details about the new job is required to use this function.

detection_build_system_model = client.detection.build_system_model(
configuration = detection_build_system_model_configuration
)

build_outlier_model

This function allows the user to register a new detection job of the type "outlier". A JSON configuration with details about the new job is required to use this function.

detection_build_outlier_model = client.detection.build_outlier_model(
configuration = detection_build_outlier_model_configuration
)

build_drift_model_kolmogorov_smirnov

This function allows the user to register a new detection job of the type "build_drift_model" with the Kolmogorov-Smirnov approach. A JSON configuration with details about the new job is required to use this function.

detection_build_drift_model_kolmogorov_smirnov = client.detection.build_drift_model_kolmogorov_smirnov(
configuration = detection_build_drift_model_kolmogorov_smirnov_configuration
)

build_drift_model_jensen_shannon

This function allows the user to register a new detection job of the type "build_drift_model" with the Jensen-Shannon approach. A JSON configuration with details about the new job is required to use this function.

detection_build_drift_model_jensen_shannon = client.detection.build_drift_model_jensen_shannon(
configuration = detection_build_drift_model_jensen_shannon_configuration
)

upload_model

This function allows the user to register a new detection job by uploading a pre-built model. A JSON configuration with details about the new job and containing the pre-built model, is required to use this function.

detection_upload_model = client.detection.upload_model(
configuration = detection_upload_model_configuration
)

rebuild_kpi_model

This function allows the user to register a new forecasting job of the type "rebuild_model" with the KPI-driven approach. A valid TIM ID from a previously built model and a JSON configuration with details about the new job are required to use this function.

detection_rebuild_kpi_model = client.detection.rebuild_kpi_model(
parent_job_id = build_kpi_model_id,
configuration = detection_rebuild_kpi_model_configuration
)

detect

This function allows the user to register a new detection job of the type "detect". A valid TIM ID from a previously built model and a JSON configuration with details about the new job are required to use this function.

detection_detect = client.detection.detect(
parent_job_id = parent_job_id,
configuration = detection_detect_configuration
)

rca

This function allows the user to register a new detection job of the type "rca". A valid TIM ID from an executed detection job is required to use this function.

detection_rca = client.detection.rca(
parent_job_id = build_kpi_model_id
)

what_if

This function allows the user to register a new detection job of the type "what-if". A valid TIM ID from an executed detection job and a what-if configuration are required to use this function.

detection_what_if = client.detection.what_if(
parent_job_id = detect_id,
configuration = detection_what_if_configuration
)

job_list

This function allows the user to list all detection jobs to which the user has access. The user is able to sort the list, offset the start of the list of items and limit the number of items returned from the API. The user can also filter jobs from a specific experiment, use case and/or parent job. Next, the user can filter the jobs of a specific type, status and period of registration.

detection_job_list = client.detection.job_list(
offset = None,
limit = None,
sort = None,
experiment_id = None,
use_case_id = None,
type = None,
status = None,
parent_id = None,
from_datetime = None,
to_datetime = None,
)

delete_job_list

This function allows the user to delete multiple jobs within the TIM Platform. The user is able to sort the list of job, offset the start of the list of items and limit the number of jobs deleted within the API. The user can also filter jobs from a specific experiment, use case and/or parent job. Next, the user can filter the jobs of a specific type, status, approach and period of registration.

detection_delete_job_list = client.detection.delete_job_list(
experiment_id = None,
use_case_id = None,
type = None,
approach = None,
status = None,
parent_id = None,
from_datetime = None,
to_datetime = None,
)

job_details

This function allows the user to extract the details of an existing job within the TIM Platform. A valid TIM detection job ID is required to use this function.

detection_job_details = client.detection.job_details(
id = job_id
)

delete_job

This function allows the user to delete an existing job within the TIM Platform. A valid TIM detection job ID is required to use this function.

detection_delete_job = client.detection.delete_job(
id = job_id
)

copy_job

This function allows the user to copy an existing job within the TIM Platform and register a new one with the same configuration. A valid TIM detection job ID is required to use this function.

detection_copy_job = client.detection.copy_job(
id = job_id
)

execute

This function allows the user to execute a registered detection job. A valid TIM detection job ID is required to use this function.

detection_execute = client.detection.execute(
id = job_id
)

job_logs

This function allows the user to collect the logs of an executed detection job. A valid TIM detection job ID is required to use this function.

detection_job_logs = client.detection.job_logs(
id = job_id
)

status

This function allows the user to check the status of an executed detection job. A valid TIM detection job ID is required to use this function.

detection_status = client.detection.status(
id = job_id
)

status_collect

This function allows the user to collect the status history of an executed detection job. A valid TIM detection job ID is required to use this function.

detection_status_collect = client.detection.status_collect(
id = job_id
)

results_table

This function allows the user to collect the results table of a detection job containing the calculated values and additional useful information. A valid TIM detection job ID is required to use this function.

detection_results_table = client.detection.results_table(
id = job_id
)

results_model

This function allows the user to collect the model information of detection build jobs. A valid and finished TIM detection job ID is required to use this function.

detection_results_model = client.detection.results_model(
id = job_id
)

results_accuracies

This function allows the user to collect the accuracy information of detection jobs. A valid and finished TIM detection job ID is required to use this function.

detection_results_accuracies = client.detection.results_accuracies(
id = job_id
)

results_rca

This function allows the user to collect the results table of detection root cause analysis jobs. A valid and finished TIM detection rca job ID is required to use this function. The user can filter for specific model indices and select a timestamp and a radius of number of samples around that sample to extract RCA information for.

detection_results_rca = client.detection.results_rca(
id = detection_rca_id,
index_of_model = 1,
timestamp = None,
radius = None
)

results_production_table

This function allows the user to collect the production table results for a sequence of detection jobs. A valid and finished TIM detection job ID is required to use this function. The user can filter for results from specific dataset versions, registration period and allow for overlapping or colocated jobs.

detection_results_production_table = client.detection.results_production_table(
sequence_job_id = detect_id,
dataset_version_id = None,
from_datetime = None,
to_datetime = None,
allow_overlapping = None,
colocated_jobs = None,
)

results_production_accuracies

This function allows the user to collect the production accuracy results for a sequence of detection jobs. A valid and finished TIM detection job ID is required to use this function. The user can filter for results from specific dataset versions, registration period, type and allow for overlapping or colocated jobs and individual accuracies.

detection_results_production_accuracies = client.detection.results_production_accuracies(
sequence_job_id = detect_id,
dataset_version_id = None,
from_datetime = None,
to_datetime = None,
allow_overlapping = None,
colocated_jobs = None,
individual_accuracies = None,
)

Licenses

This chapter covers all the functions in the "licenses" class which communicate directly to the endpoints in the Licenses section of the TIM API.

details_license

This function allows the user to collect information about his the details of his TIM license.

licenses_details_license = client.licenses.details_license()

storage_license

This function allows the user to collect information about his the amount of storage used on the TIM license.

licenses_storage_license = client.licenses.storage_license()

Users

This chapter covers all the functions in the "users" class which communicate directly to the endpoints in the Users section of the TIM API.

details_user

This function allows the user to collect information about his TIM user account.

user_details = client.users.details_user()

Telemetry

This chapter covers all the functions in the "telemetry" class which communicate directly to the endpoints in the Telemetry section of the TIM API.

dataset_calls

This function allows the user to see the amount of API calls that have been made on their license in dataset management. The user is able to sort the list, offset the start of the list of items and limit the number of items returned from the API. The user can also filter dataset calls from a specific experiment, dataset, user and/or endpoint. Lastly, the user can filter the jobs of a specific dataset_state and dataset_version_state.

telemetry_dataset_calls = client.telemetry.dataset_calls(
offset = None,
limit = None,
dataset_id = None,
experiment_id = None,
user_id = None,
dataset_state = None,
dataset_version_state = None,
endpoint_id = None,
from_datetime = None,
to_datetime = None,
sort = None,
)

job_calls

This function allows the user to see the amount of API calls that have been made on their license in job management. The user is able to sort the list, offset the start of the list of items and limit the number of items returned from the API. The user can also filter jobs calls with a specific dataset, dataset version, experiment, user, job and/or parent job. Lastly, the user can filter the jobs of a specific job_state, endpoint and other elements.

telemetry_job_calls = client.telemetry.job_calls(
offset = None,
limit = None,
dataset_id = None,
dataset_version_id = None,
experiment_id = None,
job_id = None,
parent_job_id = None,
user_id = None,
type = None,
job_state = None,
endpoint_id = None,
from_datetime = None,
to_datetime = None,
from_calculation_time = None,
to_calculation_time = None,
sort = None,
)