def Set(WorkspaceID, HeartbeatIntervalSeconds, PerfCounterObject):
    if (Test(HeartbeatIntervalSeconds, PerfCounterObject) == [0]):
        return [0]
    if UpdateOMSAgentConf(WorkspaceID, HeartbeatIntervalSeconds, PerfCounterObject):
        return [0]
    else:
        return [(- 1)]
def Set(WorkspaceID, HeartbeatIntervalSeconds, PerfCounterObject):
    if (Test(HeartbeatIntervalSeconds, PerfCounterObject) == [0]):
        return [0]
    if UpdateOMSAgentConf(WorkspaceID, HeartbeatIntervalSeconds, PerfCounterObject):
        return [0]
    else:
        return [(- 1)]