spark_plugin.py
def _dimensions_str_to_dict(dimensions_str):
    """
    convert str config of dimensions into dictionary

    Args:
    dimensions_str (str): String representing custom dimensions
    """

    dimensions = {}
    dimensions_list = dimensions_str.strip().split(",")

    for dimension in dimensions_list:
        kv = dimension.strip().split("=")
        if _validate_kv(kv):
            dimensions[kv[0]] = kv[1]
        else:
            collectd.info(
                "Could not validate key-val in dimensions \
             from configuration file."
            )
    return dimensions

    convert str config of dimensions into dictionary

    Args:
    dimensions_str (str): String representing custom dimensions
    
convert str config of dimensions into dictionary
Args:
dimensions_str (str): String representing custom dimensions
convert str config of dimensions into dictionary Args : dimensions_str ( str ) : String representing custom dimensions
def _dimensions_str_to_dict(dimensions_str):
    dimensions = {}
    dimensions_list = dimensions_str.strip().split(",")
    for dimension in dimensions_list:
        kv = dimension.strip().split("=")
        if _validate_kv(kv):
            dimensions[kv[0]] = kv[1]
        else:
            collectd.info(
                "Could not validate key-val in dimensions \
             from configuration file."
            )
    return dimensions
def _dimensions_str_to_dict ( dimensions_str ) : dimensions = { } dimensions_list = dimensions_str . strip ( ) . split ( "," ) for dimension in dimensions_list : kv = dimension . strip ( ) . split ( "=" ) if _validate_kv ( kv ) : dimensions [ kv [ 0 ] ] = kv [ 1 ] else : collectd . info ( "Could not validate key-val in dimensions \
             from configuration file." ) return dimensions
convert str config of dimensions into dictionary
Args:
dimensions_str (str): String representing custom dimensions
convert str config of dimensions into dictionary Args : dimensions_str ( str ) : String representing custom dimensions
"""
    convert str config of dimensions into dictionary

    Args:
    dimensions_str (str): String representing custom dimensions
    """
dimensions_str