powermon.outputformats.json_fmt module

powermon / outputformats / json_fmt.py

class powermon.outputformats.json_fmt.Json(config)

Bases: AbstractFormat

simple format - {name}={value}{unit} format

format(command=None, result: Result = None, device_info=None) list

entry point for all formats

classmethod from_dto(dto: AbstractFormatDTO)

build class object from dto

get_options()

return a dict of all options and defaults