csle_rest_api.resources.traces_datasets package

Submodules

csle_rest_api.resources.traces_datasets.routes module

Routes and sub-resources for the /traces-datasets resource

csle_rest_api.resources.traces_datasets.routes.download_dataset_file(traces_dataset: csle_common.dao.datasets.traces_dataset.TracesDataset) Tuple[flask.wrappers.Response, int][source]

Downloads a dataset file

Parameters

traces_dataset – the dataset file to download

Returns

the HTTP response

csle_rest_api.resources.traces_datasets.routes.traces_dataset(traces_dataset_id: int) Tuple[flask.wrappers.Response, int][source]

The /traces-datasets/id resource.

Parameters

traces_dataset_id – the id of the traces dataset

Returns

The given traces dataset or deletes the traces dataset

csle_rest_api.resources.traces_datasets.routes.traces_datasets() Tuple[flask.wrappers.Response, int][source]

The /traces-datasets resource.

Returns

A list of traces datasets or a list of ids of the traces datasets or deletes the datasets

csle_rest_api.resources.traces_datasets.routes.traces_datasets_ids() Tuple[flask.wrappers.Response, int][source]
Returns

An HTTP response with all traces datasets ids

Module contents