csle_rest_api.resources.statistics_datasets package

Submodules

csle_rest_api.resources.statistics_datasets.routes module

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

csle_rest_api.resources.statistics_datasets.routes.download_dataset_file(statistics_dataset: csle_common.dao.datasets.statistics_dataset.StatisticsDataset) Tuple[flask.wrappers.Response, int][source]

Downloads a dataset file

Parameters

statistics_dataset – the dataset file to download

Returns

the HTTP response

csle_rest_api.resources.statistics_datasets.routes.statistics_dataset(statistics_dataset_id: int) Tuple[flask.wrappers.Response, int][source]

The /statistics-datasets/id resource.

Parameters

statistics_dataset_id – the id of the statistics dataset

Returns

The given statistics dataset or deletes the statistics dataset

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

The /statistics-datasets resource.

Returns

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

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

An HTTP response with all statistics datasets ids

Module contents