O2-DQ User Interface 1.0.0
Loading...
Searching...
No Matches
monitoring.py
Go to the documentation of this file.
1#!/usr/bin/env python
2# PYTHON_ARGCOMPLETE_OK
3# -*- coding: utf-8 -*-
4
5# Copyright 2019-2020 CERN and copyright holders of ALICE O2.
6# See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
7# All rights not expressly granted are reserved.
8#
9# This software is distributed under the terms of the GNU General Public
10# License v3 (GPL Version 3), copied verbatim in the file "COPYING".
11#
12# In applying this license CERN does not waive the privileges and immunities
13# granted to it by virtue of its status as an Intergovernmental Organization
14# or submit itself to any jurisdiction.
15
16# \Author: ionut.cristian.arsene@cern.ch
17# \Interface: cevat.batuhan.tolon@cern.ch
18
19import logging
20from .stringOperations import listToString
21
22
23def dispArgs(configuredCommands: dict):
24 """Display all configured commands you provided in CLI
25
26 Args:
27 configuredCommands (dict): configured commands in CLI
28 """
29 logging.info("Args provided configurations List")
30 print("====================================================================================================================")
31 for key, value in configuredCommands.items():
32 if value is not None:
33 if isinstance(value, list):
34 listToString(value)
35 logging.info("--%s : %s ", key, value)
36 print("====================================================================================================================")