def init_vars(WorkspaceID, HeartbeatIntervalSeconds, PerfCounterObject):
    init_paths(WorkspaceID)
    init_omi_map()
    if (WorkspaceID is not None):
        WorkspaceID = WorkspaceID.encode('ascii', 'ignore')
    else:
        WorkspaceID = ''
    if (PerfCounterObject is not None):
        for perf in PerfCounterObject:
            new_perfs = []
            if len(perf['PerformanceCounter'].value):
                for perf_counter in perf['PerformanceCounter'].value:
                    new_perfs.append(perf_counter.encode('ascii', 'ignore'))
                perf['PerformanceCounter'] = new_perfs
            if (perf['InstanceName'].value is None):
                perf['InstanceName'] = ''
            else:
                perf['InstanceName'] = perf['InstanceName'].value.encode('ascii', 'ignore')
            if (perf['ObjectName'].value is None):
                perf['ObjectName'] = ''
            else:
                perf['ObjectName'] = perf['ObjectName'].value.encode('ascii', 'ignore')
            if (perf['AllInstances'].value is None):
                perf['AllInstances'] = False
            elif (perf['AllInstances'].value.value == 1):
                perf['AllInstances'] = True
            else:
                perf['AllInstances'] = False
            perf['IntervalSeconds'] = perf['IntervalSeconds'].value.value
def init_vars(WorkspaceID, HeartbeatIntervalSeconds, PerfCounterObject):
    init_paths(WorkspaceID)
    init_omi_map()
    if (WorkspaceID is not None):
        WorkspaceID = WorkspaceID.encode('ascii', 'ignore')
    else:
        WorkspaceID = 
    if (PerfCounterObject is not None):
        for perf in PerfCounterObject:
            new_perfs = []
            if len(perf['PerformanceCounter'].value):
                for perf_counter in perf['PerformanceCounter'].value:
                    new_perfs.append(perf_counter.encode('ascii', 'ignore'))
                perf['PerformanceCounter'] = new_perfs
            if (perf['InstanceName'].value is None):
                perf['InstanceName'] = 
            else:
                perf['InstanceName'] = perf['InstanceName'].value.encode('ascii', 'ignore')
            if (perf['ObjectName'].value is None):
                perf['ObjectName'] = 
            else:
                perf['ObjectName'] = perf['ObjectName'].value.encode('ascii', 'ignore')
            if (perf['AllInstances'].value is None):
                perf['AllInstances'] = False
            elif (perf['AllInstances'].value.value == 1):
                perf['AllInstances'] = True
            else:
                perf['AllInstances'] = False
            perf['IntervalSeconds'] = perf['IntervalSeconds'].value.value