print_debug

Descripción

Imprime cualquier lista, dict, string, float o integer como un json

Parámetros

Nombre  Tipo Requerido Descripción
var
str Si Variable a imprimir
print_errors
bool No Imprime o no los errores. Por defecto es False.

Return 

Tipo
None

Versión

Ejemplo

import pandoraPlugintools as pt

# Monitoring data in dictionary format
monitoring_data = {
    "disk_usage": {
        "drive": "/dev/sda1",
        "usage": "85%"
    },
    "cpu_usage": {
        "core_1": "50%",
        "core_2": "45%"
    }
}

# Print the monitoring data using the print_debug function
pt.print_debug(monitoring_data)

Revision #8
Created 16 August 2023 08:01:04 by alejandro.sanchez
Updated 14 February 2024 14:30:48 by alejandro.sanchez