perun.backend.util

Backend util.

Module Contents

Functions

getHostMetadata(→ Dict[str, Any])

Return dictionary with the platform related metadata.

getBackendMetadata(→ Dict[str, Any])

Get backend related metadata dictionary based on the current sensor configuration.

Attributes

log

perun.backend.util.log
perun.backend.util.getHostMetadata() Dict[str, Any]

Return dictionary with the platform related metadata.

Returns

Dict[str, Any]

Dictionary with host metadata.

perun.backend.util.getBackendMetadata(backends: Dict[str, perun.backend.backend.Backend], backendConfig: Dict[str, Set[str]]) Dict[str, Any]

Get backend related metadata dictionary based on the current sensor configuration.

Parameters

backendsList[Backend]

List with available backends.

backendConfigDict[str, Set[str]]

Sensor backend configuration to include in the metadata object.

Returns

Dict[str, Any]

Backend metadata dictionary.