from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal.Types import DataType
from ......Internal.ArgSingleList import ArgSingleList
from ......Internal.ArgSingle import ArgSingle
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DetailedCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("detailed", core, parent)
[docs]
def get(self, idn: int, start: str=None, end: str=None, resolution: int=None) -> bytes:
"""
``DIAGnostic:HUMS:UTILization:HISTory:DETailed`` \n
Snippet: ``value: bytes = driver.diagnostic.hums.utilization.history.detailed.get(idn = 1, start = 'abc', end = 'abc', resolution = 1)`` \n
No help available
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('idn', idn, DataType.Integer), ArgSingle('start', start, DataType.String, None, is_optional=True), ArgSingle('end', end, DataType.String, None, is_optional=True), ArgSingle('resolution', resolution, DataType.Integer, None, is_optional=True))
response = self._core.io.query_bin_block_ERROR(f'DIAGnostic:HUMS:UTILization:HISTory:DETailed? {param}'.rstrip())
return response