shyft.dashboard.apps.dtss_viewer.dtsc_helper_functions
Functions
|
This function evaluates if the url belogns to a running dts server :param host_port: url of dtss like localhost:20000 |
|
Just a helper to illustrate multiple axis based on unit |
|
This function returns a list of time series names and urls for each Time Series in the container of the dtss at the ts_url. |
|
This function evaluates if the url belogs to a running dts server :param host_port: url of dtss like localhost:20000 |
Classes
|
A very primitive synchronous dtss adapter to keep it simple |
- shyft.dashboard.apps.dtss_viewer.dtsc_helper_functions.check_dtss_url(host_port: str) bool [source]
This function evaluates if the url belogns to a running dts server :param host_port: url of dtss like localhost:20000
- Return type:
True if dtss reachable with given url, False if not
- shyft.dashboard.apps.dtss_viewer.dtsc_helper_functions.try_dtss_connection(host_port: str) bool [source]
This function evaluates if the url belogs to a running dts server :param host_port: url of dtss like localhost:20000
- Return type:
True if dtss reachable with given url
- Raises:
RuntimeError if no dtss can be found under given url –
- shyft.dashboard.apps.dtss_viewer.dtsc_helper_functions.detect_unit_of(url: str) str [source]
Just a helper to illustrate multiple axis based on unit
- shyft.dashboard.apps.dtss_viewer.dtsc_helper_functions.find_all_ts_names_and_url(*, host_port: str, container: str, pattern: str) List[Tuple[str, str]] [source]
This function returns a list of time series names and urls for each Time Series in the container of the dtss at the ts_url.
- Parameters:
host_port – host_port to dtss
container – dtss data container to search in
pattern – what time-series to match, regular expression
- Return type:
List of Tuple with (ts_url, name) for each ts in the container
- Raises:
RuntimeError if no dtss can be found under given url –